How to write variables to flash library files

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

How to write variables to flash library files

570 Views
zenging
Contributor I

I am using S32k311 and I want to import library files into the project. But when I import the library file, I get an error that tells me I'm out of memory.

3.png

So I want to store the library file variables in flash. I should know how to do it.

 

0 Kudos
Reply
1 Reply

538 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

So I want to store the library file variables in flash

This is not very standard. Flash is not designed for variables as they change a lot and you have only limited cycles of flash programming.

You should use RAM for store of variables.

If the variables need to survive destructive reset, you can use EEPROM for such purpose or registers which are not affected by destructive reset.

Best regards,

Peter

0 Kudos
Reply