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

SWD communication issue

I'm using LoRa development board from Acsip based on STM32L073RZ micocontroller (ARM Cortex M0+ family). SWD pins on this board is as following: 3.3V, SWD(/A13), SWC(/A14), GND.

Initially swd connection was working fine, but after I flashed a simple blink program on pins A13 and A14, SWD is not detecting. Now I'm getting a message showing STLink USB communication error and STLink utility software got hanged.

Checked with cable replacement but no use. No problem with STlink device as it is working fine with other boards.

Is it the problem caused by flashing blink program? if so, how can I overcome it?

Parents
  • If the STLink utility has problems, then you know that this is nothing specifically to do with Keil - there is some underlying problem in the USB comms between the PC and the STLink, and/or some problem in the comms between the STLink and the target.

    As already noted, low-power modes can disrupt the comms between the STLink and the target.

    Also, if your code reconfigures the pins used by the SWD interface ...

Reply
  • If the STLink utility has problems, then you know that this is nothing specifically to do with Keil - there is some underlying problem in the USB comms between the PC and the STLink, and/or some problem in the comms between the STLink and the target.

    As already noted, low-power modes can disrupt the comms between the STLink and the target.

    Also, if your code reconfigures the pins used by the SWD interface ...

Children