Can't use OpenOCD with MKW24 Kinetis MCU

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

Can't use OpenOCD with MKW24 Kinetis MCU

695 Views
matthieuremacle
Contributor III

Hello everybody,

I have a problem using the MKW24 MCU with OpenOCD.

When I plug openocd and I use it, it seems to work properly (it discover the processor successfully):

Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
     http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
Info : add flash_bank kinetis k22.flash
adapter speed: 1000 kHz
cortex_m reset_config sysresetreq
srst_only separate srst_nogate srst_open_drain connect_assert_srst
COM_PROGRAM_V7
Info : clock speed 1000 kHz
Info : JTAG tap: k22.cpu tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x4)
Info : k22.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : MDM: Chip is unsecured. Continuing.
Info : accepting 'telnet' connection on tcp/4444
Initializing..
 INFO  Mass Erasing...
 INFO  Mass Erasing... Done
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
Info : JTAG tap: k22.cpu tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x4)
Info : MDM: Chip is unsecured. Continuing.
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc

But when I try to flash it, I always get the following error message:

Arbitrary Flash Configuration Field writes enabled.
Protection info writes to FCF disabled.
Warn : BEWARE: incorrect flash configuration may permanently lock the device.
auto erase enabled
Error: Unsupported K-family FAMID
Error: MCU is unsupported, SDID 0x00009265
Error: auto_probe failed

I don't understand why I have this error message because when I do the exact same operation with the MKW21, MKW22 and the MK22FX512 (the other MCUs used by my company, I can flash the memory...)

What is this SDID ? What does it mean ? Do I miss a configuration file or something ?

Thank you for your help,

Best regards,

Matthieu.

Labels (1)
0 Kudos
1 Reply

453 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Matthieu.

Which flash programmer or IDE do you used ?

Have you select the right chip configuration when flash ?

And what about the debug interface inside OpenOCD, check it in the Device Manager :

pastedImage_1.png

BR

Alice

0 Kudos