How can S32R41 define a variable in a specified address?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How can S32R41 define a variable in a specified address?

跳至解决方案
1,174 次查看
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 项奖励
回复
1 解答
1,166 次查看
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 项奖励
回复
1 回复
1,167 次查看
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 项奖励
回复