mke18f512 locked out after chip erase

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

mke18f512 locked out after chip erase

Jump to solution
1,054 Views
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 Kudos
Reply
1 Solution
980 Views
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.

View solution in original post

0 Kudos
Reply
2 Replies
981 Views
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 Kudos
Reply
1,006 Views
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 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1863318%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Emke18f512%20locked%20out%20after%20chip%20erase%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1863318%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20series%20of%20the%20factory%20new%20mke18f512%20chips%20that%20i%20try%20to%20program.%3C%2FP%3E%3CP%3E%3CSPAN%3EInitially%2C%20they%20can%20be%20connected%20to%20and%20read%20with%20J-Flash%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22boguc_0-1715330401866.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22boguc_0-1715330401866.png%22%20style%3D%22width%3A%20974px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F278169iC3C996DDC90015E0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22boguc_0-1715330401866.png%22%20alt%3D%22boguc_0-1715330401866.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ERead%20blank%20output%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22boguc_1-1715331097038.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22boguc_1-1715331097038.png%22%20style%3D%22width%3A%20667px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F278173i2185C850FAC726C0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22boguc_1-1715331097038.png%22%20alt%3D%22boguc_1-1715331097038.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EHowever%2C%20after%20erasing%20the%20first%20sector%20(or%20attempting%20to%20program)%2C%20J-Link%20is%20unable%20to%20establish%20a%20connection%20to%20the%20MCU%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22boguc_2-1715331183004.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22boguc_2-1715331183004.png%22%20style%3D%22width%3A%20631px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F278174iFAD0BA062C430FF1%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22boguc_2-1715331183004.png%22%20alt%3D%22boguc_2-1715331183004.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Eunlock%20Kinetis%20command%20in%20j-flash%20did%20not%20helped.%20%3CSPAN%3ERunning%20it%20on%20a%20new%2C%20not%20locked%20device%20caused%20a%20lock.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EWhat%20could%20be%20the%20source%20of%20my%20problem%3F%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1869435%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20mke18f512%20locked%20out%20after%20chip%20erase%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1869435%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20I%20found%20the%20issue.%20The%20poor%20design%20of%20the%20filter%20circuit%20for%20the%20VDDA%20supply%20caused%20a%201V%20oscillation%20on%20that%20line.%20This%20had%20an%20effect%20of%20sporadic%20loss%20of%20connection%20with%20the%20MCU.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22boguc_0-1716274537454.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22boguc_0-1716274537454.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F279786i4DD3DE9222014BAF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22boguc_0-1716274537454.png%22%20alt%3D%22boguc_0-1716274537454.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EReplacing%20L2%20with%20a%200-ohm%20resistor%20fixed%20the%20problem.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1865417%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20mke18f512%20locked%20out%20after%20chip%20erase%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1865417%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20it%20looks%20you%20locket%20device%20by%20writing%2011%20value%20into%20FSEC.SEC%20register.%20Kindly%20check%20the%20AN4507%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN4507.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN4507.pdf.%3C%2FA%3E%26nbsp%3B%20Chapter%202.1.1%20FSEC%20register%20and%20field%20settings.%20Are%20you%20able%20to%20erase%20and%20program%20device%20directly%20from%20MCUXpresso%20or%20IAR%20or%20Keil%3F%20Did%20mass%20erase%20solved%20your%20issue%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E