Skip to main content
BCHEN.1
Associate II
March 17, 2022
Solved

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

  • March 17, 2022
  • 4 replies
  • 2504 views

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.
Best answer by Sebastien DENOUAL

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
March 18, 2022

0693W00000KdA2yQAF.png 

Above is the error message window.

BCHEN.1
BCHEN.1Author
Associate II
March 18, 2022

Figured out:

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

Sebastien DENOUAL
ST Employee
March 21, 2022

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
March 21, 2022

Thanks.

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