diff --git a/hw/bsp/ada_feather_stm32f405/link/include/mcu_config.ld.h b/hw/bsp/ada_feather_stm32f405/link/include/mcu_config.ld.h new file mode 100644 index 0000000000..3596fc2cc1 --- /dev/null +++ b/hw/bsp/ada_feather_stm32f405/link/include/mcu_config.ld.h @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/* + * Memory regions placed in CCM + * If stack or core data or other section should be place in RAM + * /link/include/target_config.ld.h should just do: + * #undef BSSNZ_RAM + * #undef COREBSS_RAM + * #undef COREDATA_RAM + * #undef STACK_REGION + */ + +#define BSSNZ_RAM CCM +#define COREBSS_RAM CCM +#define COREDATA_RAM CCM +#define STACK_REGION CCM diff --git a/hw/bsp/ada_feather_stm32f405/link/include/memory_regions.ld.h b/hw/bsp/ada_feather_stm32f405/link/include/memory_regions.ld.h new file mode 100644 index 0000000000..b57bad83db --- /dev/null +++ b/hw/bsp/ada_feather_stm32f405/link/include/memory_regions.ld.h @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +#ifdef STACK_REGION + CCM (rwx) : ORIGIN = 0x10000000, LENGTH = (64K - STACK_SIZE) + STACK_RAM (rw) : ORIGIN = 0x10010000 - STACK_SIZE, LENGTH = STACK_SIZE +#else + CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K +#endif diff --git a/hw/bsp/black_vet6/link/include/mcu_config.ld.h b/hw/bsp/black_vet6/link/include/mcu_config.ld.h new file mode 100644 index 0000000000..3596fc2cc1 --- /dev/null +++ b/hw/bsp/black_vet6/link/include/mcu_config.ld.h @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/* + * Memory regions placed in CCM + * If stack or core data or other section should be place in RAM + * /link/include/target_config.ld.h should just do: + * #undef BSSNZ_RAM + * #undef COREBSS_RAM + * #undef COREDATA_RAM + * #undef STACK_REGION + */ + +#define BSSNZ_RAM CCM +#define COREBSS_RAM CCM +#define COREDATA_RAM CCM +#define STACK_REGION CCM diff --git a/hw/bsp/black_vet6/link/include/memory_regions.ld.h b/hw/bsp/black_vet6/link/include/memory_regions.ld.h new file mode 100644 index 0000000000..b57bad83db --- /dev/null +++ b/hw/bsp/black_vet6/link/include/memory_regions.ld.h @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +#ifdef STACK_REGION + CCM (rwx) : ORIGIN = 0x10000000, LENGTH = (64K - STACK_SIZE) + STACK_RAM (rw) : ORIGIN = 0x10010000 - STACK_SIZE, LENGTH = STACK_SIZE +#else + CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K +#endif diff --git a/hw/bsp/nucleo-f413zh/link/include/mcu_config.ld.h b/hw/bsp/nucleo-f413zh/link/include/mcu_config.ld.h new file mode 100644 index 0000000000..3596fc2cc1 --- /dev/null +++ b/hw/bsp/nucleo-f413zh/link/include/mcu_config.ld.h @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/* + * Memory regions placed in CCM + * If stack or core data or other section should be place in RAM + * /link/include/target_config.ld.h should just do: + * #undef BSSNZ_RAM + * #undef COREBSS_RAM + * #undef COREDATA_RAM + * #undef STACK_REGION + */ + +#define BSSNZ_RAM CCM +#define COREBSS_RAM CCM +#define COREDATA_RAM CCM +#define STACK_REGION CCM diff --git a/hw/bsp/nucleo-f413zh/link/include/memory_regions.ld.h b/hw/bsp/nucleo-f413zh/link/include/memory_regions.ld.h new file mode 100644 index 0000000000..b57bad83db --- /dev/null +++ b/hw/bsp/nucleo-f413zh/link/include/memory_regions.ld.h @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +#ifdef STACK_REGION + CCM (rwx) : ORIGIN = 0x10000000, LENGTH = (64K - STACK_SIZE) + STACK_RAM (rw) : ORIGIN = 0x10010000 - STACK_SIZE, LENGTH = STACK_SIZE +#else + CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K +#endif diff --git a/hw/bsp/nucleo-f439zi/link/include/mcu_config.ld.h b/hw/bsp/nucleo-f439zi/link/include/mcu_config.ld.h new file mode 100644 index 0000000000..3596fc2cc1 --- /dev/null +++ b/hw/bsp/nucleo-f439zi/link/include/mcu_config.ld.h @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/* + * Memory regions placed in CCM + * If stack or core data or other section should be place in RAM + * /link/include/target_config.ld.h should just do: + * #undef BSSNZ_RAM + * #undef COREBSS_RAM + * #undef COREDATA_RAM + * #undef STACK_REGION + */ + +#define BSSNZ_RAM CCM +#define COREBSS_RAM CCM +#define COREDATA_RAM CCM +#define STACK_REGION CCM diff --git a/hw/bsp/nucleo-f439zi/link/include/memory_regions.ld.h b/hw/bsp/nucleo-f439zi/link/include/memory_regions.ld.h new file mode 100644 index 0000000000..b57bad83db --- /dev/null +++ b/hw/bsp/nucleo-f439zi/link/include/memory_regions.ld.h @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +#ifdef STACK_REGION + CCM (rwx) : ORIGIN = 0x10000000, LENGTH = (64K - STACK_SIZE) + STACK_RAM (rw) : ORIGIN = 0x10010000 - STACK_SIZE, LENGTH = STACK_SIZE +#else + CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K +#endif diff --git a/hw/bsp/olimex_stm32-e407_devboard/link/include/mcu_config.ld.h b/hw/bsp/olimex_stm32-e407_devboard/link/include/mcu_config.ld.h new file mode 100644 index 0000000000..3596fc2cc1 --- /dev/null +++ b/hw/bsp/olimex_stm32-e407_devboard/link/include/mcu_config.ld.h @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/* + * Memory regions placed in CCM + * If stack or core data or other section should be place in RAM + * /link/include/target_config.ld.h should just do: + * #undef BSSNZ_RAM + * #undef COREBSS_RAM + * #undef COREDATA_RAM + * #undef STACK_REGION + */ + +#define BSSNZ_RAM CCM +#define COREBSS_RAM CCM +#define COREDATA_RAM CCM +#define STACK_REGION CCM diff --git a/hw/bsp/olimex_stm32-e407_devboard/link/include/memory_regions.ld.h b/hw/bsp/olimex_stm32-e407_devboard/link/include/memory_regions.ld.h new file mode 100644 index 0000000000..b57bad83db --- /dev/null +++ b/hw/bsp/olimex_stm32-e407_devboard/link/include/memory_regions.ld.h @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +#ifdef STACK_REGION + CCM (rwx) : ORIGIN = 0x10000000, LENGTH = (64K - STACK_SIZE) + STACK_RAM (rw) : ORIGIN = 0x10010000 - STACK_SIZE, LENGTH = STACK_SIZE +#else + CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K +#endif diff --git a/hw/bsp/stm32f429discovery/link/include/mcu_config.ld.h b/hw/bsp/stm32f429discovery/link/include/mcu_config.ld.h new file mode 100644 index 0000000000..3596fc2cc1 --- /dev/null +++ b/hw/bsp/stm32f429discovery/link/include/mcu_config.ld.h @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/* + * Memory regions placed in CCM + * If stack or core data or other section should be place in RAM + * /link/include/target_config.ld.h should just do: + * #undef BSSNZ_RAM + * #undef COREBSS_RAM + * #undef COREDATA_RAM + * #undef STACK_REGION + */ + +#define BSSNZ_RAM CCM +#define COREBSS_RAM CCM +#define COREDATA_RAM CCM +#define STACK_REGION CCM diff --git a/hw/bsp/stm32f429discovery/link/include/memory_regions.ld.h b/hw/bsp/stm32f429discovery/link/include/memory_regions.ld.h new file mode 100644 index 0000000000..b57bad83db --- /dev/null +++ b/hw/bsp/stm32f429discovery/link/include/memory_regions.ld.h @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +#ifdef STACK_REGION + CCM (rwx) : ORIGIN = 0x10000000, LENGTH = (64K - STACK_SIZE) + STACK_RAM (rw) : ORIGIN = 0x10010000 - STACK_SIZE, LENGTH = STACK_SIZE +#else + CCM (rwx) : ORIGIN = 0x10000000, LENGTH = 64K +#endif