This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Converting examples to nrf51822

Hi I am struggling to change the device type on examples setup for nrf51422 to nrf51822. If I change the setting in "options for target"/device I get the failure message: Error: Flash Download failed - "Cortex-M0"

Even though I have done a full erase (in studio) and reprogrammed the soft device.

I am specifically using the ble_app_uart and s110 softdevice, both from SDK 8.0.0

Do I need to change the device, it seems to work OK as nrf51422 on my nrf51822FAB hardware?

Thank you

Parents
  • everytime i get that error, i do "nrfjprog -e" on command line and first program the softdevice and app, it mostly helps. If it doesn't like Hoan said your flash sizes aren't right in settings and the Keil is trying to overwrite the softdevice when you try to flash the application. There are safe guards in the flash algorithm that nordic provided for Keil that will not allow it.

Reply
  • everytime i get that error, i do "nrfjprog -e" on command line and first program the softdevice and app, it mostly helps. If it doesn't like Hoan said your flash sizes aren't right in settings and the Keil is trying to overwrite the softdevice when you try to flash the application. There are safe guards in the flash algorithm that nordic provided for Keil that will not allow it.

Children
No Data
Related