How can S32R41 define a variable in a specified address?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How can S32R41 define a variable in a specified address?

ソリューションへジャンプ
706件の閲覧回数
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 解決策
698件の閲覧回数
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 返信
699件の閲覧回数
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 件の賞賛
返信