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

I am having trouble running the debugger on a STM32F205ZG using µVision4 and the ULINK2. I keep getting the error message "Could not stop Cortex-M device! Please check the JTAG cable." I am using the SW port. Any help with this would be greatly appreciated.

Parents
  • I remembered a bit more now, I was generating an exception which was not handled causing the default handler to be called, this is simply a branch back to itself which seems to hang the bus.
    I modified the default handler to have a small loop with nop instructions instead of a branch back to itself so that the debugger can gain access.

    since then I haven't needed to use the LPCXpresso .

    regards

    Phil.

Reply
  • I remembered a bit more now, I was generating an exception which was not handled causing the default handler to be called, this is simply a branch back to itself which seems to hang the bus.
    I modified the default handler to have a small loop with nop instructions instead of a branch back to itself so that the debugger can gain access.

    since then I haven't needed to use the LPCXpresso .

    regards

    Phil.

Children