MC56F8323   how to write data on data flash before  main function run。

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

MC56F8323   how to write data on data flash before  main function run。

633 Views
锋方
Contributor I

I want to write some data on the addrress of data flash 0x1000-0x1FFF,before main。

how can I do?

 

 

Thanks for your help。

Labels (1)
0 Kudos
1 Reply

497 Views
TICS_Fiona
NXP Employee
NXP Employee

Hi

Are these data constant? If yes, just define the data as constants in your application code, and place the constants in data flash by link command file.  Indeed, you do not need to modify the link command file manually, just select the build target with ‘xROM’ in its name.

If the data are not constant, you can write the data flash after the hardware initialization at the beginning of main function.

For how to write the flash, please refer to the reference manual:

http://cache.nxp.com/files/dsp/doc/user_guide/MC56F8300UM.pdf 

And you can add Processor Experts’s IntFlash Component into the project to implement flash operation. 

Best Regards

Fiona Kuang

TIC - Technical Information Center

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 Kudos