Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
panda
Level 1
Level 1
5 sign-ins 5 replies posted Welcome!
Hi
How can I place of special group of variable in a determined part of memory?
0 Likes
4 Replies
cwunder
Employee
Employee
5 likes given 50 likes received 50 solutions authored
The method to do this depends on the tool chain being used. Typically you would create a section at a location in the linker file and use this section in your code when defining the variables.
0 Likes
panda
Level 1
Level 1
5 sign-ins 5 replies posted Welcome!
Thank you for your reply...
Do you know any examples which i can study or any docs for high-tech?
If not, then also ok
Many thanks
0 Likes
cwunder
Employee
Employee
5 likes given 50 likes received 50 solutions authored
For the HIghTec,

As an example to locate a data struct that you created. Located at an absolute location in global LMU memory (non-cached at 0xB0040000) on a TC39x device.

In the LSL file create a section:
SECTIONS { .myData   (0xB0040000) : { KEEP (*(.myData )); } > lmuram_nc  }


Then in your source code declare it:
myStruct_type  __attribute__((section (".myData "))) myDataStruct;
0 Likes
panda
Level 1
Level 1
5 sign-ins 5 replies posted Welcome!
thank you

br
0 Likes