Unable to program flash in K60 TWR

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

Unable to program flash in K60 TWR

884 次查看
neerav
Contributor II

Hello,

I am working with the TWR-K60D100M tower system and CodeWarrior IDE. When I build my project in CW, an executable is generated with the .elf extension. I was able to debug the project on the tower system. Also, I was able to program the flash of MCU with the .elf file and the program would run fine on the MCU. Everything was good so far.

Then, I programmed the flash with a different file by mistake. This was a binary file with '.project' extension. No error was shown in the CW console when this was done. However, after this I am unable to either debug on the tower or write any other file to the MCU's flash.

  1. When I try to debug, the process is stuck while initializing the .arp file. CW has to be restarted to debug again.

error1.jpg

  

     2. If I try to write the program to the MCU's flash using the 'Flash file to target' option, the process stops with the following error:

error2.jpg

This happens for both the 'Erase whole device' and 'Erase and Program' options.

What is this flash ID? Where is it trying to read it from?

     3. The earlier error was while programming using the JTAG connection. If I use the P&E Universal multilink connection, it fails with this error:

error3.jpg

My work is completely halted right now as I unable to test any code I write. Please give any inputs that might be helpful.

Thanks and regards,

Neerav

0 项奖励
回复
1 回复

573 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

I would recommend customer to use J-Link tool and use Segger provided J-Link Commander tool and use "unlock Kinetis" command to unlock the Kinetis.

I am worry about the Flash configuration address 0x40C was written incorrect value, which cause Kinetis chip was secured and with mass erase disabled (That means the chip is permenently locked).

Segger provided J-Link Commander tool could be downloaded from below link:

SEGGER - The Embedded Experts - J-Link Beta software version


Wish it help.

best regards,
Ma Hui

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复