How can S32R41 define a variable in a specified address?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can S32R41 define a variable in a specified address?

Jump to solution
624 Views
HyunungPark
Contributor III

I need to define a variable in a specified address using S32 Design studio, but how to do this?

I want that the format of the output file is Raw Binary.

BRs.

Hyunung Park

 

0 Kudos
Reply
1 Solution
616 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

the easiest way is create section in memory and use the - for example: 

__attribute__ ((section(".my_data")))uint8_t logo_hires[]="My test text";

 

Here is section definition in linker script file: 

jiri_kral_1-1670231779365.png

 

Related to binary output - you can enable it in project properties (right click on project name -> Properties -> C/C++ Build -> Settings:

jiri_kral_2-1670231940850.png

jiri_kral_3-1670232010143.png

 

 

 

 

View solution in original post

0 Kudos
Reply
1 Reply
617 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

the easiest way is create section in memory and use the - for example: 

__attribute__ ((section(".my_data")))uint8_t logo_hires[]="My test text";

 

Here is section definition in linker script file: 

jiri_kral_1-1670231779365.png

 

Related to binary output - you can enable it in project properties (right click on project name -> Properties -> C/C++ Build -> Settings:

jiri_kral_2-1670231940850.png

jiri_kral_3-1670232010143.png

 

 

 

 

0 Kudos
Reply