Flashed the wrong code onto my PCB

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Flashed the wrong code onto my PCB

跳至解决方案
1,266 次查看
Bouras
Contributor II

Hi all,

I am using a cyclone FX to flash and debug the PCB project that I am working on. The PCB is using a mk64fn1m0vll12 processor. 

I accidentally hit the 'upload image'/'start' button on the Cyclone. The image that was loaded on the cyclone was for the old ColdFire processor. The PCB is now unresponsive and I cannot flash or reconnect to it at all. I have checked the watchdog/reset pins and they are set to active.

Is there a solution to this issue or should I just replace the microprocessor?

标记 (5)
0 项奖励
回复
1 解答
1,262 次查看
ErichStyger
Specialist I

It depends. You need to check what you wrote with your ColdFire image to the flash protection area (around 0x410), see https://mcuoneclipse.com/2012/11/04/how-not-to-secure-my-microcontroller/ .

If you still have flash mass erase enabled, you are ok. Otherwise you need to replace the device.

If are still able to erase, it could be that the device is constantly resetting. PEMicro has a Kinetis Recovery tool which you can use in this case. I believe you can find it on their web site, and this tool recovered many Kinetis devices for me. It constantly tries to connect to the device, and usually after several seconds I'm able to get control over it.

I hope this helps,

Erich

在原帖中查看解决方案

3 回复数
1,263 次查看
ErichStyger
Specialist I

It depends. You need to check what you wrote with your ColdFire image to the flash protection area (around 0x410), see https://mcuoneclipse.com/2012/11/04/how-not-to-secure-my-microcontroller/ .

If you still have flash mass erase enabled, you are ok. Otherwise you need to replace the device.

If are still able to erase, it could be that the device is constantly resetting. PEMicro has a Kinetis Recovery tool which you can use in this case. I believe you can find it on their web site, and this tool recovered many Kinetis devices for me. It constantly tries to connect to the device, and usually after several seconds I'm able to get control over it.

I hope this helps,

Erich

1,239 次查看
Bouras
Contributor II

Thanks for the suggestion mate. Flashing a blank sketch allowed me to clear it and then I was able to reflash the right code onto it.

0 项奖励
回复
1,245 次查看
ErichStyger
Specialist I

Hi @Bouras ,

just in case with the hope this is helpful for your case too: https://mcuoneclipse.com/2021/05/20/recovering-cortex-m-microcontroller-with-a-power-glitch/

 

Erich

0 项奖励
回复