cancel
Showing results for 
Search instead for 
Did you mean: 

SWD connection to BlueNRG-LP failed - IDB011V1 CMSIS-DAP, RF Flasher Utility

GBedn.1
Associate II

I'm working with (still) IDB011V1. There is an issue with using SWD connection to BlueNRG-LP. I can connect to the device via SWD, when the device is erased via UART, but after I flash the BlueNRG-LP, I can't connect it via SWD anymore.

Any solution for it?

******MASS ERASE OPERATION******

Mass Erase Boards: COM8 (ST DK)

10:01:56.838: Device COM8 (ST DK) -> Mass Erase: Started

10:01:58.548: Device COM8 (ST DK) -> Mass Erase: Finished

10:01:58.548: Device COM8 (ST DK) -> Mass Erase: Flash memory successfully erased.

******START FLASH OPERATION******

Flash Boards: COM8 (ST DK)

10:02:33.064: Device COM8 (ST DK) -> Device Identification

10:02:34.406: Device COM8 (ST DK) -> Flash Programming...

10:02:36.414: Device COM8 (ST DK) -> Flash Programming: SUCCESS.

10:02:36.438: Device COM8 (ST DK) -> Flash Memory Verifying...

10:02:39.422: Device COM8 (ST DK) -> Flash Memory Verifying: SUCCESS.

******END FLASH OPERATION******

******FLASH READ OPERATION******

Read of n.1 device connected by SWD (ST-Link/V2, CMSIS-DAP, J-Link)

10:02:47.741: Waiting device to read (device connected by CMSIS-DAP) ->FAILED. (It's not possible to connect to the device)

******MASS ERASE OPERATION******

Mass Erase Boards: COM8 (ST DK)

10:03:00.834: Device COM8 (ST DK) -> Mass Erase: Started

10:03:02.531: Device COM8 (ST DK) -> Mass Erase: Finished

10:03:02.531: Device COM8 (ST DK) -> Mass Erase: Flash memory successfully erased.

******FLASH READ OPERATION******

Read of n.1 device connected by SWD (ST-Link/V2, CMSIS-DAP, J-Link)

10:03:08.133: Waiting device to read (device connected by CMSIS-DAP) ->Device Connected

10:03:09.345: Device Identification -> BlueNRG-LP

10:03:10.444: Read Flash Memory -> SUCCESS

10:03:12.528: Device Disconnection -> SUCCESS

******FLASH OPERATION******

Flash of n.1 device connected by SWD (ST-Link/V2, CMSIS-DAP, J-Link)

10:03:27.531: Device connection by CMSIS-DAP -> Device connected

10:03:28.641: Device Identification -> BlueNRG-LP

10:03:29.707: Device Flash Programming -> SUCCESS (Flash Programmed in 2.763541 sec.)

10:03:32.471: Flash Verify Operation -> SUCCESS

10:03:33.783: Device Disconnection -> SUCCESS

10:03:35.484: Flash operation finished!

******END FLASH OPERATION******

******FLASH READ OPERATION******

Read of n.1 device connected by SWD (ST-Link/V2, CMSIS-DAP, J-Link)

10:03:39.981: Waiting device to read (device connected by CMSIS-DAP) ->FAILED. (It's not possible to connect to the device)

2 REPLIES 2
Laurent LOUAZON
ST Employee

Hello,

I guess it could be related to the use of PA10.

When a FW is flashed having sleep mode enabled, SWD interface is disabled.

So you should enter bootloader mode in order to use SWD.

Bootloader is activated by hardware by forcing PA10 high during hardware reset

So you can use

  • Press and hold the PUSH1 button
  • Press the RESET button.

Regards

Laurent

GBedn.1
Associate II

Thank you, Laurent - it works like you explained, and it also works fine with my custom board :)