Hello.
I'm making my own RAMCode for my board on stm32f103 with w25q spi flash.
As an example from wiki (wiki.segger.com/Open_Flashloader), I try wiki.segger.com/File:ST_STM32F205RC_ES_V310a.zip
I added the minimum code I needed to work with w25q and it works.
Total size of Template_CortexM.bin is 5752 bytes.
To debug some functions, I try to add output data to UART. To format the strings, I add a small xsprintf() function (similar to sprintf(), but simplified). And got the error:
Display All
As far as I understand, the reason is that the "strlen" function is not placed in the section "PrgCode".
I don't have enough experience with SES yet, so I couldn't find where it can be configured.
I'm making my own RAMCode for my board on stm32f103 with w25q spi flash.
As an example from wiki (wiki.segger.com/Open_Flashloader), I try wiki.segger.com/File:ST_STM32F205RC_ES_V310a.zip
I added the minimum code I needed to work with w25q and it works.
Total size of Template_CortexM.bin is 5752 bytes.
To debug some functions, I try to add output data to UART. To format the strings, I add a small xsprintf() function (similar to sprintf(), but simplified). And got the error:
Source Code
- Building 'Template_CortexM' from solution 'Template_CortexM' in configuration 'Release'
- 1> Compiling 'FlashPrg.c'
- 2> Compiling 'FlashDev.c'
- 3> Compiling 'spi.c'
- 4> Compiling 'w25q.c'
- 1> Compiling 'rcc.c'
- 2> Compiling 'uart.c'
- 4> Compiling 'xprintf.c'
- 1> Link Time Optimization
- 1> Generating linker script 'Template_CortexM.ld'
- 1> Linking Template_CortexM.elf
- 1> /opt/SEGGER/segger_embedded_studio_for_arm_5.32a/gcc/arm-none-eabi/bin/ld: Output/Release/Exe/Template_CortexM.elf section `.text.libc.strlen' will not fit in region `UNPLACED_SECTIONS'
- 1> /opt/SEGGER/segger_embedded_studio_for_arm_5.32a/gcc/arm-none-eabi/bin/ld: region `UNPLACED_SECTIONS' overflowed by 96 bytes
- Build failed
I don't have enough experience with SES yet, so I couldn't find where it can be configured.