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

AURIX™ Development Studio Forum Discussions

juanjqh
Level 1
5 sign-ins First reply posted First like given
Level 1
 
 
I wonder how this example can be used with the external gcc compiler.

I would like to use the LMU ram for initialized and uninitialized variables. 
Do I have to modify the linker file for it?
0 Likes
1 Solution
dw
Moderator
Moderator 250 sign-ins 100 solutions authored First question asked
Moderator

Hi juanjqh,

If you use ADS(Aurix Development Studio), the default compiler is Tasking.

i.e.

dw_0-1660115642275.png

You can get details from compiler user manual here

The prefix depends on the type of the section and determines if the section is initialized, constant or uninitialized and which addressing mode is used. The symbol_name is either the name of an object or the name of a function.

You can also use Hightec compiler and do migrate as this link: https://free-entry-toolchain.hightec-rt.com/

For other compiler, do you have specific requirement? Please ask for 3rd party to consult.

dw

View solution in original post

4 Replies
dw
Moderator
Moderator 250 sign-ins 100 solutions authored First question asked
Moderator

Hi juanjqh,

If you use ADS(Aurix Development Studio), the default compiler is Tasking.

i.e.

dw_0-1660115642275.png

You can get details from compiler user manual here

The prefix depends on the type of the section and determines if the section is initialized, constant or uninitialized and which addressing mode is used. The symbol_name is either the name of an object or the name of a function.

You can also use Hightec compiler and do migrate as this link: https://free-entry-toolchain.hightec-rt.com/

For other compiler, do you have specific requirement? Please ask for 3rd party to consult.

dw

juanjqh
Level 1
5 sign-ins First reply posted First like given
Level 1

Ok, thank you for you reply, I´m using ADS with Free entry HTC.

I try to put uninitialized and initilized variables using that, but don´t  works.

 

#pragma section ".zbss" awzB
uint32 var1;
#pragma section

#pragma section ".zdata" awz
uint32 var2 = 0xAA;
#pragma section

0 Likes
dw
Moderator
Moderator 250 sign-ins 100 solutions authored First question asked
Moderator

Hi juanjqh,

What I have posted is for Tasking compiler, for Hightec, please refer to appropriate user manual.

For #pragma, could you please refer to below thread

https://community.infineon.com/t5/AURIX/Aurix-Development-studio-pragma-data-core-association/td-p/3...

dw

juanjqh
Level 1
5 sign-ins First reply posted First like given
Level 1

thanks 😁

0 Likes