Hello
I am implementing a Firmware downloader on a custom MK10 board. I need Flash_EraseSector() and Flash_SetLongFlash() for this functionality.
The command EraseSector does not work as expected.
When I step with the debugger through the code the Flash_EraseSector() function normally works but sometimes I get a RDCOLERR in the FTFL_STAT Register. (I erase only sectors that are not used by the actual running program).
If I do not step and let the Program run at normal speed, it restarts and shows the LOCKUP bit in the SRS1 of the RCM. (The interrupts are disabled during the erase call)
Does anybody have a good advise for this Problem?
已解决! 转到解答。
Well I have been doing some research and I have some questions, I would like to have more information:
I hope you find this information useful
Have a nice day,
Perla Moncada
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Well I have been doing some research and I have some questions, I would like to have more information:
I hope you find this information useful
Have a nice day,
Perla Moncada
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Perla
Thank you for the information. I solved the problem this morning. We use the MK10DN32 in our project. This device has one memory block only and the problem was a RWW issue as you described in the second point. I had to do two things to solve the problem. 1st put the start and wait for done routine into a RAM function and 2nd disable interrupts during call of this RAM function. The Firmware downloader works fine now.
Thank you very match for your support.