Hi Erich,
I had a look at those links yesterday and can't get anything to work.
As far as I can tell the Segger stuff requires a J-Link device, but I don't have one.
Creating a project using the K20DX128xxx5 isn't possible because that chip isn't available. I made a stub project using the MK20DX128xxx10 instead. I used the flash tool in MCUXpresso with the k20dx_frdmkl26z_if_crc.bin from OpenSDAv2.2_DAPLink_frdmkl26z_rev0242.zip downloaded from https://www.nxp.com/design/microcontrollers-developer-resources/ides-for-kinetis-mcus/opensda-serial... It seems to have flashed the K20 using the J12 header, but it doesn't seem to change anything. Mac sees no USB device, no MSD etc. I tried to re-flash it and got lots of errors. Both logs are below.
What can be done now?
Thank you very much,
Andre.
Executing flash operation 'Program' (Program file into flash: k20dx_frdmkl26z_if_crc.bin) - Mon Mar 22 12:00:08 EDT 2021
Checking MCU info...
Scanning for targets...
Executing flash action...
MCUXpresso IDE RedlinkMulti Driver v11.3 (Jan 11 2021 15:42:37 - crt_emu_cm_redlink build 9)
( 0) Reading remote configuration
Wc(03). No cache support.
Found chip XML file in /Users/high/Documents/MCUXpressoIDE_11.3.0/workspace/MK20D10_Project/MK20DX128xxx10.xml
( 5) Remote configuration complete
Reconnected to existing LinkServer process.
============= 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: 00
MDM-AP Control (Debug Request): 0x00000004
MDM-AP Status: 0x0001003A
MDM-AP Core Halted
============= END SCRIPT =============================
Probe Firmware: DAPLink CMSIS-DAP (ARM)
Serial Number: 040900009c13c22800000000000000000000000097969906
VID:PID: 0D28:0204
USB Path: USB_0d28_0204_fd132120_ff00
Using memory from core 0 after searching for a good core
( 30) Emulator Connected
( 40) Debug Halt
( 50) CPU ID
debug interface type = CoreSight DP (DAP DP ID 2BA01477) over SWD TAP 0
processor type = Cortex-M4 (CPU ID 00000C24) on DAP AP 0
number of h/w breakpoints = 6
number of flash patches = 2
number of h/w watchpoints = 4
Probe(0): Connected&Reset. DpID: 2BA01477. CpuID: 00000C24. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Content of CoreSight Debug ROM(s):
RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM (type 0x1)
ROM 1 E000E000: CID B105E00D PID 04000BB000 Gen SCS (type 0x0)
ROM 1 E0001000: CID B105E00D PID 04003BB002 Gen DWT (type 0x0)
ROM 1 E0002000: CID B105E00D PID 04002BB003 Gen FPB (type 0x0)
ROM 1 E0000000: CID B105E00D PID 04003BB001 Gen ITM (type 0x0)
ROM 1 E0040000: CID B105900D PID 04000BB9A1 CSt TPIU type 0x11 Trace Sink - TPIU
NXP: MK20DX128xxx10
DAP stride is 4096 bytes (1024 words)
XML Error - no license-type XML file 'crt_common.xme' on path.
note - part information contained no product license-type data
Inspected v.2 On chip Kinetis Flash memory module FTFL_2K.cfx
Image 'Kinetis SemiGeneric Dec 17 2020 10:03:38'
Opening flash driver FTFL_2K.cfx
Sending VECTRESET to run flash driver
Flash variant 'K 24 FTFL Generic 2K' detected (128KB = 64*2K at 0x0)
Closing flash driver FTFL_2K.cfx
( 65) Chip Setup Complete
Connected: was_reset=true. was_stopped=true
( 70) License Check Complete
Loading 'k20dx_frdmkl26z_if_crc.bin' Binary 0x00000000 len 0x17C00
Opening flash driver FTFL_2K.cfx (already resident)
Sending VECTRESET to run flash driver
Flash variant 'K 24 FTFL Generic 2K' detected (128KB = 64*2K at 0x0)
Writing 97280 bytes to address 0x00000000 in Flash
1 of 1 ( 0) Writing sectors 0-47 at 0x00000000 with 97280 bytes
( 0) at 00000000: 0 bytes - 0/97280
( 2) at 00000000: 2048 bytes - 2048/97280
( 4) at 00000800: 2048 bytes - 4096/97280
( 6) at 00001000: 2048 bytes - 6144/97280
( at 00001800: 2048 bytes - 8192/97280
( 10) at 00002000: 2048 bytes - 10240/97280
( 12) at 00002800: 2048 bytes - 12288/97280
( 14) at 00003000: 2048 bytes - 14336/97280
( 16) at 00003800: 2048 bytes - 16384/97280
( 18) at 00004000: 2048 bytes - 18432/97280
( 21) at 00004800: 2048 bytes - 20480/97280
( 23) at 00005000: 2048 bytes - 22528/97280
( 25) at 00005800: 2048 bytes - 24576/97280
( 27) at 00006000: 2048 bytes - 26624/97280
( 29) at 00006800: 2048 bytes - 28672/97280
( 31) at 00007000: 2048 bytes - 30720/97280
( 33) at 00007800: 2048 bytes - 32768/97280
( 35) at 00008000: 2048 bytes - 34816/97280
( 37) at 00008800: 2048 bytes - 36864/97280
( 40) at 00009000: 2048 bytes - 38912/97280
( 42) at 00009800: 2048 bytes - 40960/97280
( 44) at 0000A000: 2048 bytes - 43008/97280
( 46) at 0000A800: 2048 bytes - 45056/97280
( 98) at 0000B000: 51200 bytes - 96256/97280
(100) at 00017800: 2048 bytes - 98304/97280
Sectors written: 23, unchanged: 25, total: 48
Erased/Wrote sector 0-47 with 97280 bytes in 3009msec
Closing flash driver FTFL_2K.cfx
(100) Finished writing Flash successfully.
Flash Write Done
Loaded 0x17C00 bytes in 3236ms (about 30kB/s)
Reset target (system)
Starting execution using system reset
state - running or following reset request - re-read of state failed - rc Nn(05). Wire ACK Fault in DAP access
error closing down debug session - Nn(05). Wire ACK Fault in DAP access
Executing flash operation 'Program' (Program file into flash: k20dx_frdmkl26z_if_crc.bin) - Mon Mar 22 12:04:03 EDT 2021
Checking MCU info...
Scanning for targets...
Executing flash action...
MCUXpresso IDE RedlinkMulti Driver v11.3 (Jan 11 2021 15:42:37 - crt_emu_cm_redlink build 9)
( 0) Reading remote configuration
Wc(03). No cache support.
Found chip XML file in /Users/high/Documents/MCUXpressoIDE_11.3.0/workspace/MK20D10_Project/MK20DX128xxx10.xml
( 5) Remote configuration complete
Reconnected to existing LinkServer process.
============= 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: 00
MDM-AP Control (Debug Request): 0x00000004
MDM-AP Status: 0x00000032
MDM-AP Core Halt Failed
MDM-AP Control (Debug Request): 0x00000004
MDM-AP Status: 0x00000032
MDM-AP Core Halt Failed
MDM-AP Control (Debug Request): 0x00000004
MDM-AP Status: 0x00000032
MDM-AP Core Halt Failed
============= END SCRIPT =============================
Probe Firmware: DAPLink CMSIS-DAP (ARM)
Serial Number: 040900009c13c22800000000000000000000000097969906
VID:PID: 0D28:0204
USB Path: USB_0d28_0204_fd132120_ff00
Using memory from core 0 after searching for a good core
On debug connection - reset using system reset
Warning - processor did not halt - gave up waiting
( 30) Emulator Connected
Cannot halt processor
Request debug reset of DAP
( 40) Debug Halt
( 50) CPU ID
debug interface type = CoreSight DP (DAP DP ID 2BA01477) over SWD TAP 0
processor type = Cortex-M4 (CPU ID 00000C24) on DAP AP 0
number of h/w breakpoints = 6
number of flash patches = 0
number of h/w watchpoints = 0
Probe(0): Connected&Reset. DpID: 2BA01477. CpuID: 00000C24. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled.
Content of CoreSight Debug ROM(s):
RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM (type 0x1)
ROM 1 E000E000: CID B105E00D PID 04000BB000 Gen SCS (type 0x0)
ROM 1 E0001000: CID B105E00D PID 04003BB002 Gen DWT (type 0x0)
ROM 1 E0002000: CID B105E00D PID 04002BB003 Gen FPB (type 0x0)
ROM 1 E0000000: CID B105E00D PID 04003BB001 Gen ITM (type 0x0)
ROM 1 E0040000: CID B105900D PID 04000BB9A1 CSt TPIU type 0x11 Trace Sink - TPIU
NXP: MK20DX128xxx10
DAP stride is 4096 bytes (1024 words)
XML Error - no license-type XML file 'crt_common.xme' on path.
note - part information contained no product license-type data
Inspected v.2 On chip Kinetis Flash memory module FTFL_2K.cfx
Image 'Kinetis SemiGeneric Dec 17 2020 10:03:38'
Opening flash driver FTFL_2K.cfx
Sending VECTRESET to run flash driver
Warning - processor did not halt - gave up waiting
target failed to halt after flash driver reset - (null)
flash start - disabling IRQs failed - rc Ep(08). Cannot access core regs when target running.
chip initialization failed - Ep(08). Cannot access core regs when target running.
failed to initialize flash driver FTFL_2K.cfx
( 65) Chip Setup Complete
(100) Target Connection Failed
Unable to perform operation!
Command failed with exit code 1