Ways of Storing data in non-volatile memory?

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

Ways of Storing data in non-volatile memory?

1,269 Views
vigneshbalaji
Senior Contributor I

Hi,

    I want to store data in non-volatile memory?Can you suggest me ways to do it in KEA-128???

Tags (1)
6 Replies

970 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,

After had a brief look through the statement above, to be honest, I'm not very clear with your requirement.

So I'd like to know what exactly purpose you want to achieve.

Do you want to create a data section in flash which starts the specific address or not?

I'm looking forward to your reply.
Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

970 Views
vigneshbalaji
Senior Contributor I

Hi jeremyzhou,

                         I want to store some variable values in memory and that value will change in runtime.So that after The controller resets and comes up the last set value of the variable should remain for that particular variable instead of the default variable set on the code.How to do that???

Is my requirement clear to you now???

what are the ways to do it???

I thought of creating a seperate data segment in the memory by partioning the existing.

0 Kudos

970 Views
scottm
Senior Contributor II

The Processor Expert IntFlash component makes this pretty easy.  You'll just want to place your non-volatile data in a reserved section, and make sure the section aligns with flash erase block boundaries.  KSDK has its C90TFS flash driver but I don't think I've used that one yet.

Scott

0 Kudos

969 Views
mjbcswitzerland
Specialist V

Hi

The KEA devices have essentially the same Flash as all other Kinetis parts (just some slightly different command sequences) and you can create a parameter system in it (to emulate EEPROM).

If you don't want to do this yourself you can directly use the uParameterSystem in the uTasker KEA project:

http://www.utasker.com/docs/uTasker/uTaskerFileSystem_3.PDF

This can be tested at http://www.utasker.com/kinetis/TRK-KEA128.html

Regards

Mark

969 Views
vigneshbalaji
Senior Contributor I

Hi Mark,

             I am not using uTasker. Can you send me things related to codeWarrior???

0 Kudos

970 Views
mjbcswitzerland
Specialist V

Hi

The uTasker project builds with Codewarrior so you can download the code from the link and directly work with it.

Regards

Mark

0 Kudos