AnsweredAssumed Answered

Porting __ramfunc from IAR to Atollic

Question asked by Aakash Menon on Aug 10, 2017

Hello,

 

I am working on porting code from IAR EWARM to Atollic Truestudio for STM32F103RD microcontroller. For the __ramfunc IAR directive I have added __attribute__((long_call,section(".RAMFN"))) and modified the linker script to

 

.data :
{
. = 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. I am new to linker script and low level programming. Any advise when it comes to porting and references for the same would be helpful.

 

Thanks,

Aakash

Outcomes