Announcements

Robots are revolutionizing our lives in many ways. Join our webinar to learn about Infineon’s broad portfolio of robot building blocks.
Click here to register.

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

AURIX™ Forum Discussions

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
50 solutions authored 250 sign-ins 25 likes received
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
50 solutions authored 250 sign-ins 25 likes received
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