2018-02-28 03:21 AM
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.
2018-03-01 12:18 AM
Looks like a magic (something internal to the MCU) unless the FET does not interact with SWD pins...
2018-03-01 12:32 AM
Perhaps does a reconfiguration of PB3 nonetheless affect the SWD functionality.
I would try debugging with all code touching PB3 removed.
2018-03-01 02:54 AM
a similar problem
https://arm-stm.blogspot.com/2016/04/stm32f0-stm32f042-boot-problem-user.html