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 ?
Thanks in advance.
Hi,
I've attached the bitmap.
Where can I download debug I/f guide from ?
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.
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!
-----------------------------------------------------------------------------------------------------------------------
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.
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!
-----------------------------------------------------------------------------------------------------------------------