Hi all,
I have a K60FN1M with CW 10.5 and MQX 4.0.2 using PE for flash tools.
I need to write 0x00000000 at an address (code entry point called from BOOT FNET) to "clear" the user firmware to enable next download. So I created a flash driver with PE and it works.
When the write is done I want to send back to computer the status of this action, so I read back the address and check that value is really 0x00000000. I have some issues in that step.
What I tried:
- loop of 10 times read with _time_delay(20)
- read until FTFE_FSTAT_RDCOLERR_MASK becomes FALSE.
- wait FTFE_FSTAT_CCIF_MASK becomes TRUE.
All this solutions doesn't guarantee that I successful read 0x00000000. But the write is correct, in debug I can step few times and see in the memory window that suddenly the values change.
Could someone help me with that ?
Thanks
BR
Stéphan