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

How to setup Keil Uvision for Redbearlab BLE Nano?

I am having problem to download SDK NRF51 12.0 example firmware onto Redbearlab BLE Nano nrf51822. The compilation and build is fine. It is shown as

Erased Failed!
Error: Flash download failed - "Cortex M0" 

This BLE Nano is not using JLink but CMSIS-DAP Debugger. I have uploaded these bootloader here by drag and drop onto the mbed USB drive.

The SDK project points to the flash_s130nrf51_2.0.1_softdevice by default as another flash download option. I usually download the built firmware instead of this soft device. Should I change this, if so how?

Here are my setup for uVision

Device

Target

Output

Listing

Debug

Debug Settings

Flash download

Parents
  • In order to solve the bootloader issue, I just downloaded a PCA10028 nRF51422 example project .hex which includes softdevice S130 V2, app and bootloader by drag and drop the .hex into mbed USB drive. This will wipe off the Redbearlab S130 V1, bootloader and my app. I then pretty much maintain the same IROM and IRAM settings (for S130 V2) in the SDK PCA10028 nRF51422 examples for my nRF51822. At least for now, 2 SDK examples work on BLE Nano board. I would deep dive bootloader and settings for next time.

    For other users, the advice is to save the IRAM & IROM settings of the SDK projects prior to changing the Device from nRF51422 to nRF51822 because Keil will set to default settings which cause the error in flashing.

Reply
  • In order to solve the bootloader issue, I just downloaded a PCA10028 nRF51422 example project .hex which includes softdevice S130 V2, app and bootloader by drag and drop the .hex into mbed USB drive. This will wipe off the Redbearlab S130 V1, bootloader and my app. I then pretty much maintain the same IROM and IRAM settings (for S130 V2) in the SDK PCA10028 nRF51422 examples for my nRF51822. At least for now, 2 SDK examples work on BLE Nano board. I would deep dive bootloader and settings for next time.

    For other users, the advice is to save the IRAM & IROM settings of the SDK projects prior to changing the Device from nRF51422 to nRF51822 because Keil will set to default settings which cause the error in flashing.

Children
No Data
Related