store data or array in memory MPC5748G DEVKIT

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

store data or array in memory MPC5748G DEVKIT

463 Views
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 Kudos
1 Reply

429 Views
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 Kudos