cancel
Showing results for 
Search instead for 
Did you mean: 

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

BCHEN.1
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Sebastien DENOUAL
ST Employee

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.

View solution in original post

4 REPLIES 4
BCHEN.1
Associate II

0693W00000KdA2yQAF.png 

Above is the error message window.

BCHEN.1
Associate II

Figured out:

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

Sebastien DENOUAL
ST Employee

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
Associate II

Thanks.

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