ello,
Thank you for your suggestions.
When I try to perform Mass Erase or Resurrect Locked device, I get same “Could not connect to core” error. Here's the debug log:
Executing flash operation 'Resurrect locked Kinetis device' (Resurrect locked Kinetis device) - Mon Apr 08 10:41:41 IST 2019
Checking MCU info...
Scanning for targets...
Executing flash action...
MCUXpresso IDE RedlinkMulti Driver v10.3 (Nov 28 2018 02:33:57 - crt_emu_cm_redlink.exe build 748)
( 0) Reading remote configuration
Wc(03). No cache support.
Found part description in XML file MK60D10_internal.xml
( 5) Remote configuration complete
Reconnected to existing link server
Connecting to probe 1 core 0 (using server started externally) gave 'Ee(42). Could not connect to core.'
Connecting to probe 1 core 0 (using server started externally) gave 'Ee(42). Could not connect to core.'
Connecting to probe 1 core 0 (using server started externally) gave 'Ee(42). Could not connect to core.'
Server OK but no connection to probe 1 core 0 (after 3 attempts) - Ee(42). Could not connect to core.
Failed on connect: Ee(42). Could not connect to core.
No connection to chip's debug port
(100) Target Connection Failed
Unable to perform operation!
Command failed with exit code 1
So, I thought perhaps my reset RC delay is huge (R = 47K, C = 4.7u). So, I put a parallel 10K and RC delay reduces but I still get same error. I replaced FREEDOMK64F board with LPC-LINK2 and same story.
I did one more experiment and this is where it gets interesting. When I insert FREEDOMK64F into USB slot, at the DAPLINK: prompt, I open the folder. I took the small binary of a basic empty project, dragged and dropped into the DAPLINK: folder. Intent is to see if it writes into my flash. Now, the saw tooth waveform on the reset pin vanishes and reset pin goes to much higher voltage – I didn’t measure it though. Now, when I debug a project, the debugger is able to detect core and goes much farther but still fails with following log:
MCUXpresso IDE RedlinkMulti Driver v10.3 (Nov 28 2018 02:33:57 - crt_emu_cm_redlink build 748)
Found part description in XML file MK60D10_internal.xml
Reconnected to existing link server
Connecting to probe 1 core 0 (using server started externally) gave 'OK'
============= SCRIPT: kinetisconnect.scp =============
Kinetis Connect Script
Connecting to Probe Index = 1
This probe = 1
This TAP = 0
This core = 0
DpID = 2BA01477
Assert NRESET
Reset pin state: 00
Power up Debug
MDM-AP APID: 0x001C0000
MDM-AP System Reset/Hold Reset/Debug Request
MDM-AP Control: 0x0000001C
MDM-AP Status (Flash Ready) : 0x00000032
Part is not secured
MDM-AP Control: 0x00000014
Release NRESET
Reset pin state: 01
Wire Ack Fault - target connected?
MDM-AP Control (Debug Request): 0x00000004
Wire Ack Fault - target connected?
Wire Ack Fault - target connected?
.....
Wire Ack Fault - target connected?
Wire Ack Fault - target connected?
MDM-AP Status: 0x00000001
MDM-AP Core Halt Failed
Wire Ack Fault - target connected?
....
Wire Ack Fault - target connected?
MDM-AP Control (Debug Request): 0x00000004
Wire Ack Fault - target connected?
Wire Ack Fault - target connected?
....
Wire Ack Fault - target connected?
Wire Ack Fault - target connected?
MDM-AP Status: 0x00000001
MDM-AP Core Halt Failed
Wire Ack Fault - target connected?
....
Wire Ack Fault - target connected?
MDM-AP Control (Debug Request): 0x00000004
Wire Ack Fault - target connected?
....
Wire Ack Fault - target connected?
MDM-AP Status: 0x00000001
MDM-AP Core Halt Failed
Wire Ack Fault - target connected?
Wire Ack Fault - target connected?
Wire Ack Fault - target connected?
Wire Ack Fault - target connected?
Wire Ack Fault - target connected?
Wire Ack Fault - target connected?
Wire Ack Fault - target connected?
============= END SCRIPT =============================
Failed on connect: Ee(42). Could not connect to core.
No connection to chip's debug port
So, it does not look like my part is locked. Right?
When I turn off the power supply of my board and turn it back on, the sawtooth waveform reappears on the reset pin. So, the drag-n-drop didn’t actually update the flash. Now, I wonder why the sawtooth disappears after drag-n-drop !!!
I think there is some funny interaction with reset pin going on here. I even tried to keep reset pin low when power supply ramps up (to workaround the known Kinetis power supply POR ERRATA ID 4949) but it didn’t help. Are there any specs for RESET pin?
Any clues as to what is going on?
Appreciate your help.
Satish