I ported an example project from IAR to KDS 3.2.0, when I try to debug I get:
Open On-Chip Debugger 0.8.0-dev (2015-01-09-16:22)
Licensed under GNU GPL v2
For bug reports, read
Info : only one transport option; autoselect 'cmsis-dap'
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : add flash_bank kinetis kinetis.flash
cortex_m reset_config sysresetreq
adapter speed: 1000 kHz
Started by GNU ARM Eclipse
Info : CMSIS-DAP: FW Version = 1.0
Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : DAP_SWJ Sequence (reset: 50+ '1' followed by 0)
Info : CMSIS-DAP: Interface ready
Info : clock speed 1000 kHz
Info : IDCODE 0x0bc11477
Info : kinetis.cpu: hardware has 2 breakpoints, 2 watchpoints
Info : accepting 'gdb' connection from 3333
Error: MCU is unsupported
Error: auto_probe failed
Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.
Error: attempted 'gdb' connection rejected
Thas also happens if I create a blank project for FRDM-KW40Z and try to debug it... What is going on?
Yes! I did try with Segger debug firmware (SEGGER - The Embedded Experts - Downloads ) but the .bin file seems to be bigger than available flash on the debugger chip.
I did not find the required P&E bootloader, I did download a package with a lot of versions (http://www.pemicro.com/downloads/main_downloads_temp/201611090418336442563/Pemicro_OpenSDA_Debug_MSD... ) but I cannot see KW40Z anywhere.
I read in an other thread that I can dra and drop a .bin file to the DAPLink, I did, great, but I really need to debug, step-by-step and memory, how can I peek inside KW40 with KDS?
Hi Carlos Rodriguez
About Segger debug firmware, user guide says that FRDM-KW40Z uses openSDA v2.1, could you try with J-Link OpenSDA - Generic Firmwares instead of Board-Specific Firmwares? then it should works.
About debugging step-by-step and memory, could you look in the following link, maybe it could guide you in how use KDS:
Hope this information helps you
Have a great day,
your poblem is
"Error: MCU is unsupported"
So your device is not supported by OpenOCD, as OpenOCD needs to be implemented for your microcontroller. Have you tried P&E and Segger debug firmware on the FRDM already? They should support the KW40.