MK22FN128 fashing failed

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

MK22FN128 fashing failed

1,746 Views
shuichiy
Contributor III

Hi all,

I have a custom board which has a MK22FN128VLH10.

On uVision V5 with J-Link, I'm trying to flash a sample program but fails as follows:

Target info:
------------
Device: MK22FN128VLH10
VTarget = 3.270V
State of Pins:
TCK: 0, TDI: 0, TDO: 0, TMS: 1, TRES: 1, TRST: 0
Hardware-Breakpoints: 6
Software-Breakpoints: 8192
Watchpoints:          4
JTAG speed: 5000 kHz
 
Erase Done.
Programming Done.
Contents mismatch at: 0000001CH  (Flash=00H  Required=96H) !
Contents mismatch at: 0000001DH  (Flash=00H  Required=E6H) !
Contents mismatch at: 0000001EH  (Flash=00H  Required=FEH) !
Contents mismatch at: 0000001FH  (Flash=00H  Required=DFH) !
Verify Failed!
Error: Flash Download failed  -  "Cortex-M4"
Flash Load finished at 15:29:08

I think MK22FN128VLH10 has 128KB flash which address is from 0x00000000 to 0x0001FFFF.

However, according to above messages, flash writing seems to be uncompleted.

May be I have something mistakes on settings, I'm still uncertain them.

Could someone advise me to solve the issue ?

target.jpg

jlink.jpg

Thanks in advance.

Labels (1)
0 Kudos
Reply
5 Replies

1,517 Views
shuichiy
Contributor III

Hi,

I've attached the bitmap.

jlink.jpg

Where can I download debug I/f guide from ?

0 Kudos
Reply

1,517 Views
shuichiy
Contributor III

I have confirmed this problem also occurs using ULINK2.

I have also noticed program can run if Flash Verify is disabled.

If someone meets the same issue and have solution for avoiding errors, let me know.

0 Kudos
Reply

1,517 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
I was wondering if you can share the schematic of debug interface, in addition, whether the K22 would be recognized in J-link Commander, if yes, please input 'unlock kinetis' to free the chip, then try to program the K22 again, please give a try.
Have a great day,
TIC

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

0 Kudos
Reply

1,517 Views
shuichiy
Contributor III

Hi,

Thanks for your reply.

I have input 'unlock kinetis' then it succeeds, but the situation has not been changed.

I've attached the schematics.

k22.jpg

0 Kudos
Reply

1,517 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,

I was wondering if you can share the screenshot of inputting 'unlock kinetis' in the J-link Commander.
From the experience, I guess it's the hardware issue, so I've attached a guide of design debug interface, please refer to it for details.
Have a great day,
TIC

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

0 Kudos
Reply