cancel
Showing results for 
Search instead for 
Did you mean: 

Debug doesn't work at KAIL. ''Could not stop Coretex-M device!''

Takayoshi Ishii
Associate III
Posted on February 28, 2018 at 12:21

Hello,

When I run my project as debug mode, following error come up.

------------------------------------

Debugger - Coretex-M Error

Could not stop Coretex-M device!

Please check the JTAG cable.

------------------------------------

I can debug other project by the same hard ware environment. I changed many times the debugger and cable, but the same error come up.

When I run it as LOAD and RUN, it works well. Just couldn't stop the debug mode running.

The environment is 

-STM32L051C8T6

-Kail v5.24

-Cube-MX

-ST-Link V2-1 and the setting speed is 1MHz for STM32L0.

Thank you.

12 REPLIES 12
Posted on March 01, 2018 at 08:18

Looks like a magic (something internal to the MCU) unless the FET does not interact with SWD pins...

Posted on March 01, 2018 at 08:32

Perhaps does a reconfiguration of PB3 nonetheless affect the SWD functionality.

I would try debugging with all code touching PB3 removed.

Posted on March 01, 2018 at 11:54

a similar problem

https://arm-stm.blogspot.com/2016/04/stm32f0-stm32f042-boot-problem-user.html