how to write datas into flash when programming

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

how to write datas into flash when programming

626 Views
zhujiuzhujiu
Contributor I

Hi,

I want write the configuration datas into flash when download the *.srec file。

e.g.  

   I want write data 0x12 into adress 0x70000;

   S12 series MCU can use  @0x70000 = 0x12 ;

But S32K144,I don't know how to operation。

Thanks, BR!

0 Kudos
1 Reply

419 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

the only option is create custom section in linker file and put your constants in that section. For inspiration you can look at this example: https://community.nxp.com/docs/DOC-335619 

Jiri

0 Kudos