This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Could not stop cortex-M device. Please check the JTAG cable

Hi everyone,
Yesterday I upload code on my board(STM32F303k8T6) one time.I use STlink V2 mini SWD programmer(SWDCLK,SWDIO,3.3v, gnd) After I try to upload new code in uc but keil say "device not found" but its connected. After I think keil try to erase code in flash so its get error.I connect nrst pin with rst pin in STlink V2 mini. After keil send error "Could not stop cortex-M device. Please check the JTAG cable". Can someone help me?
Thanks.

Parents Reply Children
  • Most frequently these errors occur if you break the pins the debugger is using, ie reprogramming GPIOA PA13, PA14, or going into a low power or sleep mode where the core powers down along with the gates the debugger is trying to communicate with.

    Remove broken code, and look at connection settings, select "connect under reset"

    In worst situations pull BOOT0 high so it doesn't run your broken code.

    Make sure to select SWD and not JTAG as the communications protocol.