STEVAL-IDB011V1 board CMSIS-DAP debugger: Failed to connect to CPU on IAR workbench
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-17 8:35 AM
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
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-21 5:57 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-18 5:12 AM
Above is the error message window.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-18 8:49 AM
Figured out:
The processor must be erase first before use under IAR: Project->Download->Erase memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-21 5:57 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-21 6:01 AM
Thanks.
I figured out if their is no sleep, everything is fine.
