Can't connect to cortex-M4 k60

Hello.

I’m encountering issues on my board, with a kinetis k60. My script works, I could program the flash memory.

But I interrupted the flash programming (by error) before the end, and now the JTAG can"t connect to the board.

I have theses messages :

Error: JTAG-DP STICKY ERROR

Error: MEM_AP_CSW 0x23000012, MEM_AP_TAR 0xe000ed00

I can’t program flash, I can’t halt the board, etc.

I’m wondering if a “mass erase” could solve my problem, but I don’t know how to write on registers with openocd and a “broken jtag”.

If someone have a idea on this problem…

Thanks !

I solved my problem alone.

Mass erase should be done by openocd at init, but it couldnt because SRST was not configured.

I added “reset_config trst_and_srst”, push reset button on board several times and it worked…

(and sorry, I can’t explain it better … )

Hi,

I also use the K60 and I have the same error as you. But I can not seem to resolve the error. :?

Can you send me your script so that I comparre with mine?

thank you.

Best Regards.

I am trying to create a manufacturing process whereby our CM uses an Olimex arm-usb-odc-h and openocd 0.80 (or any other linux tool) and programs a Kietis K60 (MK60DX256VMD10). You stated you were able to do this. Would you share your script that accomplished this?