store data or array in memory MPC5748G DEVKIT

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

store data or array in memory MPC5748G DEVKIT

1,267件の閲覧回数
turkmani_11
Contributor III

hello, i have a simple question, im new to the NXP microcontrollers , right now i have a MPC 5748G DEV KIT , i would like to store data in its memory, an array for example. how can i do it in S32 design studio code?

0 件の賞賛
返信
1 返信

1,233件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

if you have some data in srecord or hex format, you can follow:

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-download-separate-elf-srec-hex-f...

If you want to put some data to your project, simply define it as constant data like:

const unsigned int test_data[] = {0,1,2,3};

Then it will be added to default rodata section. Or you can modify the linker file and create own section.

Regards,

Lukas

 

0 件の賞賛
返信