Flash algorithm could not execute completely - k61 chip

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

Flash algorithm could not execute completely - k61 chip

1,544 Views
abiabi
Contributor I

I am working on MK61FN1M0VMJ15 chip. I was trying to access internal flash memory using Flash_SetByteFlash API. With this change, when I try to erase the existing firmware using  flash.reprogram.all /erase, I am getting the error "Flash algorithm could not execute completely". Not sure if something got messed from this memory. 

 

Can someone let me know how to recover from this error?

#kinetisk60#firmware update#firmware

0 Kudos
Reply
1 Reply

1,310 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi Abi Abi

This is a brief description about your issue, I'm not sure what's wrong, so could you explain a little more your problem. How did you set this "Flash_SetByteFlash API" that you mentioned?

Accesses to flash memory should be done from RAM. If the FLASH memory is made up of multiple banks it is possible to run code from one bank while programming the other, but as you want to erase all the memory, then you need to make this access from ram


Have a great day,
Jorge Alcala

0 Kudos
Reply