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

Keil uVision: ST-LINK USB communication error

I'm using Keil uVision V5.22.0.0 and I'm trying to work with a STM32 Nucleo board, which has ST-LINK built into the board. When either debugging or downloading to flash using uVision, it works for about a minute (sometimes more, sometimes less) and then I get a small popup window saying "ST-LINK USB communication error". I can unplug the USB cable, plug it back in, and then it works again for a short period of time.

I'm not sure the best way to determine the ST-LINK driver version, but if I open the STM32 ST-LINK Utility Application and go to Help->About, it says that STLinkUSBDriver.dll is v4.4.0.0.

I've tried different USB cables and different USB ports on my computer. Same problem.

Any ideas?

Thanks.

Parents
  • Two quick updates:

    - I tried a different Nucleo board and one of the example programs from STMicro for this board. Same issue.

    - The error message in the popup window when it fails while in the middle of debug session is "Cannot access target. Shutting down debug session." In both this popup and the one I mentioned in the original post, the title bar of the popup window says "Debugger - Cortex-M Error".

    Thank you.

Reply
  • Two quick updates:

    - I tried a different Nucleo board and one of the example programs from STMicro for this board. Same issue.

    - The error message in the popup window when it fails while in the middle of debug session is "Cannot access target. Shutting down debug session." In both this popup and the one I mentioned in the original post, the title bar of the popup window says "Debugger - Cortex-M Error".

    Thank you.

Children