mke18f512 locked out after chip erase

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

mke18f512 locked out after chip erase

跳至解决方案
917 次查看
boguc
Contributor I

I have series of the factory new mke18f512 chips that i try to program.

Initially, they can be connected to and read with J-Flash:

boguc_0-1715330401866.png

Read blank output:

boguc_1-1715331097038.png

However, after erasing the first sector (or attempting to program), J-Link is unable to establish a connection to the MCU:

boguc_2-1715331183004.png

unlock Kinetis command in j-flash did not helped. Running it on a new, not locked device caused a lock.

What could be the source of my problem?

 

 

 

0 项奖励
回复
1 解答
843 次查看
boguc
Contributor I

Hello, I found the issue. The poor design of the filter circuit for the VDDA supply caused a 1V oscillation on that line. This had an effect of sporadic loss of connection with the MCU. 

boguc_0-1716274537454.png

Replacing L2 with a 0-ohm resistor fixed the problem.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
844 次查看
boguc
Contributor I

Hello, I found the issue. The poor design of the filter circuit for the VDDA supply caused a 1V oscillation on that line. This had an effect of sporadic loss of connection with the MCU. 

boguc_0-1716274537454.png

Replacing L2 with a 0-ohm resistor fixed the problem.

0 项奖励
回复
869 次查看
PavelM
NXP Employee
NXP Employee

Hello, it looks you locket device by writing 11 value into FSEC.SEC register. Kindly check the AN4507 https://www.nxp.com/docs/en/application-note/AN4507.pdf.  Chapter 2.1.1 FSEC register and field settings. Are you able to erase and program device directly from MCUXpresso or IAR or Keil? Did mass erase solved your issue?

0 项奖励
回复