This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Erase Failed: Flash Download Failed - Flashing SoftDevice with Keil (CMSIS-DAP)

Hello!

I'm trying to flash my SeeedStudio Tiny BLE board (nRF51822 QFAA) with SoftDevice S110 using Keil but it doesn't look like it's going to let me. I'm just getting the following error:

Erase Failed! Error: Flash Download Failed - "Cortex-M0"

I've read that it happens when you try to flash a program over SoftDevice but I'm actually trying to flash SoftDevice itself...

It's letting me do a full chip erase but it's not helping at all, I just keep getting that error whenever I try to flash something, SoftDevice or any program, really. The IROM1 and IRAM1 settings are correct, they match the information provided in the datasheet: IROM1: 0x0 (size: 0x40000) IRAM1: 0x20000000 (size: 0x4000)

I'd appreciate any sort of advice here. Thank you

Parents
  • Hi! I'm glad you got i working. I have been asking around and think I might have found the cause to your original problem. Try the following:

    1. Open "Target options -> Debug -> Settings -> Flash Download".
    2. Remove the entry in the "Programming Algorithm" list.
    3. Click "Add" and add "nRF51xxx External Connectivity Board" instead to the list.
    4. Make sure "Erase Full Chip" is enabled in "Download Function".
Reply
  • Hi! I'm glad you got i working. I have been asking around and think I might have found the cause to your original problem. Try the following:

    1. Open "Target options -> Debug -> Settings -> Flash Download".
    2. Remove the entry in the "Programming Algorithm" list.
    3. Click "Add" and add "nRF51xxx External Connectivity Board" instead to the list.
    4. Make sure "Erase Full Chip" is enabled in "Download Function".
Children
Related