I want to write some data on the addrress of data flash 0x1000-0x1FFF,before main。
how can I do?
Thanks for your help。
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!
-----------------------------------------------------------------------------------------------------------------------