This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Placing data at a specific memory address with Segger Embedded Studio

Hi all, I'm having problem porting some project from Keil to SES since our project use absolute memory location to put some variable that will be share between main application and the bootloader and it seems i can't do it in SES, at least in an easy way.

With Keil, i can use attribute((at(0x20002000))), for example, to place a variable at memory location 0x20002000 but since the "at" attribute is a Keil-specific feature, i can't use it with SES. In SES, i can use attribute__((section("name"))) to put them in a section defined in the section placement xml file but there is no guarantee that the variable will be place at exactly the memory address that i want it to be unless i modified the linker script and define separate named section and address for each variable.

Is there any easier method to place data (eg: a variable) in a specific memory address in RAM in SES ?

Related