Hello everyone,
i am trying to write a flashloader for a STM32F4 SPI-Flash. I included the CMSIS Libs (gpio, rcc and spi) to the build and copied the Flash Read/Write Functions, that use the CMSIS libs to the FlashPrg.c
The Debugbuild is successfull and works fine on the Platform.
When i switched to the Releasebuild the First error was:
C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.20a/gcc/arm-none-eabi/bin/ld: Output/Release/Exe/Template_CortexM.elf section .text.libc.__uint32_div' will not fit in region UNPLACED_SECTIONS'
C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.20a/gcc/arm-none-eabi/bin/ld: region UNPLACED_SECTIONS' overflowed by 40 bytes
I deleted all Divions in the Sourcecode and the error was gone. But after this, the linking just fails without any error. Does anyone got an idea where to search for mistakes?
I attached a few files, if it helps.
Greetings Thomas
i am trying to write a flashloader for a STM32F4 SPI-Flash. I included the CMSIS Libs (gpio, rcc and spi) to the build and copied the Flash Read/Write Functions, that use the CMSIS libs to the FlashPrg.c
The Debugbuild is successfull and works fine on the Platform.
When i switched to the Releasebuild the First error was:
C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.20a/gcc/arm-none-eabi/bin/ld: Output/Release/Exe/Template_CortexM.elf section .text.libc.__uint32_div' will not fit in region UNPLACED_SECTIONS'
C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.20a/gcc/arm-none-eabi/bin/ld: region UNPLACED_SECTIONS' overflowed by 40 bytes
I deleted all Divions in the Sourcecode and the error was gone. But after this, the linking just fails without any error. Does anyone got an idea where to search for mistakes?
I attached a few files, if it helps.
Greetings Thomas