Skip to main content
BCHEN.1
Associate II
Mar 17, 2022 3:35 PM UTC
Solved

STEVAL-IDB011V1 board CMSIS-DAP debugger: Failed to connect to CPU on IAR workbench

1. Rebuild example code is OK.

2. Download and Debug failed.  Failed to connect to CPU on IAR workbench

3. Navigator flash programing is OK. But the default load seems not ok such as "Beacon"

Did I miss some settings from "EWARM_blueNRG-lp_flasher_2.0.0.zip" . My IAR version is 8.50.4

This topic has been closed for replies.
Sebastien DENOUAL
ST Employee
Mar 21, 2022 12:57 PM UTC

Hi @BCHEN.1​ ,

Looks you already fixed your pb .

Reason is sleep mode - As soon as you are flashing BlueNRG-LP with a fw implementing sleep mode (as per the one you copy - microHelloWorld- Cortex-M0 core is switched off because of sleep mode .. so you can not attached debug/flash probe to thiis core.

  • As you did, a mass erase can solve the problem (no more sleep mode - so can connect probe for reflash)
  • Alternatively, you can use boot pin (PA10) to force bootloader activation (hence be sure device is active)
    • On STEVAL-IDB011, for this you just need to hold PUSH1 button and press "reset button. Then release PUSH1 button - you can now attach or reflash your device.
  • During prototyping/dev phase, you can also deactivate SleepMode

Regards,

Sebastien.

4 replies

BCHEN.1
BCHEN.1Author
Associate II
Mar 18, 2022 12:12 PM UTC

0693W00000KdA2yQAF.png 

Above is the error message window.

BCHEN.1
BCHEN.1Author
Associate II
Mar 18, 2022 3:49 PM UTC

Figured out:

The processor must be erase first before use under IAR: Project->Download->Erase memory.

Sebastien DENOUAL
ST Employee
Mar 21, 2022 12:57 PM UTC

Hi @BCHEN.1​ ,

Looks you already fixed your pb .

Reason is sleep mode - As soon as you are flashing BlueNRG-LP with a fw implementing sleep mode (as per the one you copy - microHelloWorld- Cortex-M0 core is switched off because of sleep mode .. so you can not attached debug/flash probe to thiis core.

  • As you did, a mass erase can solve the problem (no more sleep mode - so can connect probe for reflash)
  • Alternatively, you can use boot pin (PA10) to force bootloader activation (hence be sure device is active)
    • On STEVAL-IDB011, for this you just need to hold PUSH1 button and press "reset button. Then release PUSH1 button - you can now attach or reflash your device.
  • During prototyping/dev phase, you can also deactivate SleepMode

Regards,

Sebastien.

BCHEN.1
BCHEN.1Author
Associate II
Mar 21, 2022 1:01 PM UTC

Thanks.

I figured out if their is no sleep, everything is fine.