Hello,
I'm trying to re-flash few sectors of MKL03 internal flash in software. When I run the flash_example out of the SDK1.3 example drivers, the flash sectors are programmed correctly. However, when I add the flash component to my project through Processor Expert, and I try to use the same logic as the example, the desired sectors are not being flashed. I already checked that the flash configuration is done correctly and my FlashCommandSequence function is relocated to RAM, but its execution does not change the content of the flash. Are there any other settings (power, clk, etc.) that I need to change in order to get the re-flashing working?
Thank you
Solved! Go to Solution.
Jingjing,
I was able to resolve my issue. In addition to disabling global interrupts, I had to re-configure my my clock configuration with proper Bus/Flash clock. Once I had the clock correct, I was able to in-software program the internal flash.
Thank you for your help
Hi Artur,
You can't write the data to the flash, did you meet any problem when debug it?
Did you disable the interrupt before you do the flash operation?
You can refer to this post at first, make sure you disable the global interrupt:
https://community.nxp.com/message/597793
The code you can refer to the KSDK1.3.0 flash demo.
If you still have question, please contact me!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Jingjing,
I was able to resolve my issue. In addition to disabling global interrupts, I had to re-configure my my clock configuration with proper Bus/Flash clock. Once I had the clock correct, I was able to in-software program the internal flash.
Thank you for your help
Please,can you specify wich are the right and the bad clock configurations?Thanks
Hi Diego,
If you have the KL03 problem, please create your own question post, we will help you in your own post.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks Kerry Zhou,
i already did it but i 'm even more confused
https://community.nxp.com/thread/478394
Best regards
Diego