I have the same problem here with the twr-km35z512VL. I was messing with the linker script and, after a flash, the JLinkExe detects the probe no more. It says: "No emulators connected via USB" even "lsusb" shows me the device "ID 0d28:0204 NXP ARM mbed".
In case someone found these useful:
The header of the last ihex binary flashed:
:1000000000C0002085020000E9020000ED020000AF
:1000100000000000000000000000000000000000E0
:10002000000000000000000000000000F1020000DD
:100030000000000000000000F5020000BD0E0000FE
:10004000FD02000001030000050300000903000099
:100050000D030000E5020000E5020000E5020000DB
:10006000E5020000E5020000E5020000E5020000F4
:10007000E5020000E5020000E5020000E5020000E4
:10008000E5020000E5020000E502000011030000A7
:10009000E5020000E5020000E5020000E5020000C4
The memory map used:
Name Origin Length Attributes
m_interrupts 0x0000000000000000 0x0000000000000200 xr
m_flash_config 0x0000000000000200 0x0000000000000010 xr
m_text 0x0000000000000210 0x0000000000032000 xr
m_sram 0x000000001fffc000 0x0000000000010000 rw
*default* 0x0000000000000000 0xffffffffffffffff
EDITED:
I've been trying to update OpenSDA Bootloader following this instrucction with no success: https://www.nxp.com/design/software/development-software/sensor-toolbox-sensor-development-ecosystem...
EDITED 2:
If I create a file named "assert.act" into the MSD root folder, the bootloader responds with an ASSERT.TXT (see msd commands doc
Assert
File: (file)
Line: 151
Source: Bootloader
The file DETAILS.TXT contains the following:
# DAPLink Firmware - see https://mbed.com/daplink
Unique ID: 0000000048824e45002f7008dd8900378761000097969900
HIC ID: 97969900
Auto Reset: 0
Automation allowed: 1
Overflow detection: 0
Daplink Mode: Bootloader
Bootloader Version: 0243
Git SHA: 2f498feb503c4396822ef00f6fbf8c5289dfa9c0
Local Mods: 1
USB Interfaces: MSD
Bootloader CRC: 0xf95f84e6
Interface CRC: 0x308c203a
Remount count: 0
EDITED 3:
I finally solved it reflashing both micros with an external JTAG (JLink EDU). I used the "k20dx_twrkm35z75m_if_crc_combined.bin" binary for the K20 (you can found it in here) and a working "blinking.hex" for the KM35.