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 5.11 st-link usb communication error

Hi,
Just upgraded the Keil 5.10 to 5.11 to have STM32L0 support.

When trying to debug my application I get: "st-link usb communication error" and debug fails.

I have no problem connecting to my board using ST-Link Utility.

The 5.10 works fine - no issues with connecting to the ST-link.

I use the latest ST-link drivers and firmware (STLinkUSBDriver.dll v4.3.3.0, ST-LINK Firmware version : V2J21M5)

Bogdan

Parents
  • I tested some driver versions:
    1. Keil 5.11 delivers STLinkUSBDriver.dll v4.3.2.0
    The latest STLinkUSBDriver.dll is v4.3.3.0 does NOT help
    Also the 5.10 STLinkUSBDriver.dll v4.3.1.0 does NOT help.

    2. So I stayed with the Keil 5.11 STLinkUSBDriver.dll v4.3.2.0
    and replaced the Keil 5.11 ST-LINKIII-KEIL_SWO.dll v2.0.6.0 with
    the Keil 5.10 ST-LINKIII-KEIL_SWO.dll v2.0.4.0.

    After this there is no USB errors - it successfully connect to the board.

    It seems that something wrong is with ST-LINKIII-KEIL_SWO.dll v2.0.6.0

    ===
    Unfortunatelly v2.0.4.0 cannot debug in SRAM when interupts are used (I guess VTOC is not updated for some reason). When I update manually I get write errors...

    Anyway the Keil MDK team should look into the issue with the ST-LINKIII-KEIL_SWO.dll v2.0.6.0.

    Thanks,
    Bogdan

Reply
  • I tested some driver versions:
    1. Keil 5.11 delivers STLinkUSBDriver.dll v4.3.2.0
    The latest STLinkUSBDriver.dll is v4.3.3.0 does NOT help
    Also the 5.10 STLinkUSBDriver.dll v4.3.1.0 does NOT help.

    2. So I stayed with the Keil 5.11 STLinkUSBDriver.dll v4.3.2.0
    and replaced the Keil 5.11 ST-LINKIII-KEIL_SWO.dll v2.0.6.0 with
    the Keil 5.10 ST-LINKIII-KEIL_SWO.dll v2.0.4.0.

    After this there is no USB errors - it successfully connect to the board.

    It seems that something wrong is with ST-LINKIII-KEIL_SWO.dll v2.0.6.0

    ===
    Unfortunatelly v2.0.4.0 cannot debug in SRAM when interupts are used (I guess VTOC is not updated for some reason). When I update manually I get write errors...

    Anyway the Keil MDK team should look into the issue with the ST-LINKIII-KEIL_SWO.dll v2.0.6.0.

    Thanks,
    Bogdan

Children