From a1c159e0b5c82798d975ef927421060c42ccac02 Mon Sep 17 00:00:00 2001 From: jeromecoutant Date: Tue, 24 Mar 2020 17:32:13 +0100 Subject: [PATCH] STM32 GCC Unspecified RTOS error --- .../TARGET_STM32G030xx/TOOLCHAIN_GCC_ARM/stm32g030xx.ld | 5 +---- .../TARGET_STM32G031xx/TOOLCHAIN_GCC_ARM/stm32g031xx.ld | 5 +---- .../TARGET_STM32G041xx/TOOLCHAIN_GCC_ARM/stm32g041xx.ld | 5 +---- .../TARGET_STM32G070xx/TOOLCHAIN_GCC_ARM/stm32g070xx.ld | 5 +---- .../TARGET_STM32G071xx/TOOLCHAIN_GCC_ARM/stm32g071xx.ld | 5 +---- .../TARGET_STM32G081xx/TOOLCHAIN_GCC_ARM/stm32g081xx.ld | 5 +---- .../TARGET_STM32L552xx/TOOLCHAIN_GCC_ARM/stm32l552xx.ld | 5 +---- .../TARGET_STM32L562xx/TOOLCHAIN_GCC_ARM/stm32l562xx.ld | 5 +---- .../TARGET_STM32WB50xx/TOOLCHAIN_GCC_ARM/stm32wb50xx.ld | 5 +---- .../TARGET_STM32WB55xx/TOOLCHAIN_GCC_ARM/stm32wb55xx.ld | 5 +---- 10 files changed, 10 insertions(+), 40 deletions(-) diff --git a/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G030xx/TOOLCHAIN_GCC_ARM/stm32g030xx.ld b/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G030xx/TOOLCHAIN_GCC_ARM/stm32g030xx.ld index fd05c82aaf..214dccf361 100644 --- a/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G030xx/TOOLCHAIN_GCC_ARM/stm32g030xx.ld +++ b/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G030xx/TOOLCHAIN_GCC_ARM/stm32g030xx.ld @@ -111,10 +111,7 @@ SECTIONS } > FLASH __exidx_end = .; - /* Location counter can end up 2byte aligned with narrow Thumb code but - __etext is assumed by startup code to be the LMA of a section in RAM - which must be 8-byte aligned */ - __etext = ALIGN (8); + __etext = .; _sidata = .; .data : AT (__etext) diff --git a/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G031xx/TOOLCHAIN_GCC_ARM/stm32g031xx.ld b/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G031xx/TOOLCHAIN_GCC_ARM/stm32g031xx.ld index fd05c82aaf..214dccf361 100644 --- a/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G031xx/TOOLCHAIN_GCC_ARM/stm32g031xx.ld +++ b/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G031xx/TOOLCHAIN_GCC_ARM/stm32g031xx.ld @@ -111,10 +111,7 @@ SECTIONS } > FLASH __exidx_end = .; - /* Location counter can end up 2byte aligned with narrow Thumb code but - __etext is assumed by startup code to be the LMA of a section in RAM - which must be 8-byte aligned */ - __etext = ALIGN (8); + __etext = .; _sidata = .; .data : AT (__etext) diff --git a/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G041xx/TOOLCHAIN_GCC_ARM/stm32g041xx.ld b/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G041xx/TOOLCHAIN_GCC_ARM/stm32g041xx.ld index fd05c82aaf..214dccf361 100644 --- a/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G041xx/TOOLCHAIN_GCC_ARM/stm32g041xx.ld +++ b/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G041xx/TOOLCHAIN_GCC_ARM/stm32g041xx.ld @@ -111,10 +111,7 @@ SECTIONS } > FLASH __exidx_end = .; - /* Location counter can end up 2byte aligned with narrow Thumb code but - __etext is assumed by startup code to be the LMA of a section in RAM - which must be 8-byte aligned */ - __etext = ALIGN (8); + __etext = .; _sidata = .; .data : AT (__etext) diff --git a/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G070xx/TOOLCHAIN_GCC_ARM/stm32g070xx.ld b/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G070xx/TOOLCHAIN_GCC_ARM/stm32g070xx.ld index fd05c82aaf..214dccf361 100644 --- a/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G070xx/TOOLCHAIN_GCC_ARM/stm32g070xx.ld +++ b/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G070xx/TOOLCHAIN_GCC_ARM/stm32g070xx.ld @@ -111,10 +111,7 @@ SECTIONS } > FLASH __exidx_end = .; - /* Location counter can end up 2byte aligned with narrow Thumb code but - __etext is assumed by startup code to be the LMA of a section in RAM - which must be 8-byte aligned */ - __etext = ALIGN (8); + __etext = .; _sidata = .; .data : AT (__etext) diff --git a/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G071xx/TOOLCHAIN_GCC_ARM/stm32g071xx.ld b/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G071xx/TOOLCHAIN_GCC_ARM/stm32g071xx.ld index fd05c82aaf..214dccf361 100644 --- a/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G071xx/TOOLCHAIN_GCC_ARM/stm32g071xx.ld +++ b/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G071xx/TOOLCHAIN_GCC_ARM/stm32g071xx.ld @@ -111,10 +111,7 @@ SECTIONS } > FLASH __exidx_end = .; - /* Location counter can end up 2byte aligned with narrow Thumb code but - __etext is assumed by startup code to be the LMA of a section in RAM - which must be 8-byte aligned */ - __etext = ALIGN (8); + __etext = .; _sidata = .; .data : AT (__etext) diff --git a/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G081xx/TOOLCHAIN_GCC_ARM/stm32g081xx.ld b/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G081xx/TOOLCHAIN_GCC_ARM/stm32g081xx.ld index fd05c82aaf..214dccf361 100644 --- a/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G081xx/TOOLCHAIN_GCC_ARM/stm32g081xx.ld +++ b/targets/TARGET_STM/TARGET_STM32G0/TARGET_STM32G081xx/TOOLCHAIN_GCC_ARM/stm32g081xx.ld @@ -111,10 +111,7 @@ SECTIONS } > FLASH __exidx_end = .; - /* Location counter can end up 2byte aligned with narrow Thumb code but - __etext is assumed by startup code to be the LMA of a section in RAM - which must be 8-byte aligned */ - __etext = ALIGN (8); + __etext = .; _sidata = .; .data : AT (__etext) diff --git a/targets/TARGET_STM/TARGET_STM32L5/TARGET_STM32L552xx/TOOLCHAIN_GCC_ARM/stm32l552xx.ld b/targets/TARGET_STM/TARGET_STM32L5/TARGET_STM32L552xx/TOOLCHAIN_GCC_ARM/stm32l552xx.ld index fd05c82aaf..214dccf361 100644 --- a/targets/TARGET_STM/TARGET_STM32L5/TARGET_STM32L552xx/TOOLCHAIN_GCC_ARM/stm32l552xx.ld +++ b/targets/TARGET_STM/TARGET_STM32L5/TARGET_STM32L552xx/TOOLCHAIN_GCC_ARM/stm32l552xx.ld @@ -111,10 +111,7 @@ SECTIONS } > FLASH __exidx_end = .; - /* Location counter can end up 2byte aligned with narrow Thumb code but - __etext is assumed by startup code to be the LMA of a section in RAM - which must be 8-byte aligned */ - __etext = ALIGN (8); + __etext = .; _sidata = .; .data : AT (__etext) diff --git a/targets/TARGET_STM/TARGET_STM32L5/TARGET_STM32L562xx/TOOLCHAIN_GCC_ARM/stm32l562xx.ld b/targets/TARGET_STM/TARGET_STM32L5/TARGET_STM32L562xx/TOOLCHAIN_GCC_ARM/stm32l562xx.ld index fd05c82aaf..214dccf361 100644 --- a/targets/TARGET_STM/TARGET_STM32L5/TARGET_STM32L562xx/TOOLCHAIN_GCC_ARM/stm32l562xx.ld +++ b/targets/TARGET_STM/TARGET_STM32L5/TARGET_STM32L562xx/TOOLCHAIN_GCC_ARM/stm32l562xx.ld @@ -111,10 +111,7 @@ SECTIONS } > FLASH __exidx_end = .; - /* Location counter can end up 2byte aligned with narrow Thumb code but - __etext is assumed by startup code to be the LMA of a section in RAM - which must be 8-byte aligned */ - __etext = ALIGN (8); + __etext = .; _sidata = .; .data : AT (__etext) diff --git a/targets/TARGET_STM/TARGET_STM32WB/TARGET_STM32WB50xx/TOOLCHAIN_GCC_ARM/stm32wb50xx.ld b/targets/TARGET_STM/TARGET_STM32WB/TARGET_STM32WB50xx/TOOLCHAIN_GCC_ARM/stm32wb50xx.ld index fd05c82aaf..214dccf361 100644 --- a/targets/TARGET_STM/TARGET_STM32WB/TARGET_STM32WB50xx/TOOLCHAIN_GCC_ARM/stm32wb50xx.ld +++ b/targets/TARGET_STM/TARGET_STM32WB/TARGET_STM32WB50xx/TOOLCHAIN_GCC_ARM/stm32wb50xx.ld @@ -111,10 +111,7 @@ SECTIONS } > FLASH __exidx_end = .; - /* Location counter can end up 2byte aligned with narrow Thumb code but - __etext is assumed by startup code to be the LMA of a section in RAM - which must be 8-byte aligned */ - __etext = ALIGN (8); + __etext = .; _sidata = .; .data : AT (__etext) diff --git a/targets/TARGET_STM/TARGET_STM32WB/TARGET_STM32WB55xx/TOOLCHAIN_GCC_ARM/stm32wb55xx.ld b/targets/TARGET_STM/TARGET_STM32WB/TARGET_STM32WB55xx/TOOLCHAIN_GCC_ARM/stm32wb55xx.ld index 7c222be525..2035a3fedd 100644 --- a/targets/TARGET_STM/TARGET_STM32WB/TARGET_STM32WB55xx/TOOLCHAIN_GCC_ARM/stm32wb55xx.ld +++ b/targets/TARGET_STM/TARGET_STM32WB/TARGET_STM32WB55xx/TOOLCHAIN_GCC_ARM/stm32wb55xx.ld @@ -115,10 +115,7 @@ SECTIONS } > FLASH __exidx_end = .; - /* Location counter can end up 2byte aligned with narrow Thumb code but - __etext is assumed by startup code to be the LMA of a section in RAM - which must be 8-byte aligned */ - __etext = ALIGN (8); + __etext = .; _sidata = .; .data : AT (__etext)