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

Programming failed, flash is not erased in nrf51822 how can we fix this issue?

Hi Team,

i am working on nrf51822 customized board, the SDK version is 12.3.0 (soft-device is s130 ) and Developing environment in keil 5.26 (on windows).

 i am trying to load the program using nRFgo studio using j-link segger i am getting issue.

Before loading i have erased everything, i am able to load the soft device hex when i load main application hex its throwing one error like  : Programming failed flash is not erased.

what could be the problem , how can i fix the problem please suggest me ?

i am kindly waiting for your reply ....

Parents
  • Sounds to me that you may have setup the project wrong or have mixed wrong softdevice binary with the SDK example. If done correctly there should be no overlap in memory (flash) between the two, however if you compile the projects with the wrong compiler settings or wrong softdevice, then you may get such problem. Have you followed the getting started in the sdk on how to compile and program one of the BLE examples as-is?

    Best regards,
    Kenneth

Reply
  • Sounds to me that you may have setup the project wrong or have mixed wrong softdevice binary with the SDK example. If done correctly there should be no overlap in memory (flash) between the two, however if you compile the projects with the wrong compiler settings or wrong softdevice, then you may get such problem. Have you followed the getting started in the sdk on how to compile and program one of the BLE examples as-is?

    Best regards,
    Kenneth

Children
Related