Problem with KDS debugging FRDM-KW40Z

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem with KDS debugging FRDM-KW40Z

1,667 Views
lokuate
Contributor III

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
http://openocd.sourceforge.net/doc/doxygen/bugs.html
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?

 

Kindest Regards,

Carlos

Labels (1)
0 Kudos
Reply
4 Replies

1,121 Views
lokuate
Contributor III

Hello Erich,

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.

Please help!

Kindest Regards,

Carlos

0 Kudos
Reply

1,121 Views
lokuate
Contributor III

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?

0 Kudos
Reply

1,121 Views
jorge_a_vazquez
NXP Employee
NXP Employee

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:

KDS Frequently Asked Questions (FAQ) 


Hope this information helps you
Have a great day,
Jorge Alcala

0 Kudos
Reply

1,121 Views
BlackNight
NXP Employee
NXP Employee

Hi Carlos,

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.

Erich

0 Kudos
Reply