2017-08-09 11:46 PM
Hello all,
I am working on porting code from IAR EWARM to Atollic Truestudio (based on GNU ARM toolchain) for STM32F103RD microcontroller. I have a few questions regarding porting of __ramfunc to Atollic.
I have added __attribute__((long_call,section('.RAMFN'))) to all function prototypes and definitions that need to be run out of RAM and modified the linker script to
{ . = ALIGN(4); _sdata = .; /* create a global symbol at data start */ *(.data) /* .data sections */
*(.data*) /* .data* sections */
. = ALIGN(4);
_ramfn_start = .;
*(.RAMFN)
*(.RAMFN*)
_ramfn_end = .;
_edata = .; /* define a global symbol at data end */
} >RAM AT> FLASH
However, I am not sure if/how the startup file needs to be modified to complete this port. It would be great if you could help me with this issue.
Thanks,
Aakash
#stm32-ram #stm32-startup #linker-script-stm32 #iar-stm32