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

NRF51822 programming with uVision and ST-link

I'm trying to connect to/program my nrf51822 module I just got. I've got it set up with my st-link but whenever I try to flash the device I keep getting: Error: Flash Download failed - "Cortex-M0"

In nRFgo studio the 'nrf51 programming' section in the device manager window is disabled, so I can't even try to wipe the device from there. (edit: I realise now I can't use this with the st-link)

Any idea how I can connect to this device?

EDIT: I can do a full chip erase in uVision before the programming. It seems to complete that successfully, but then says "Programming failed!", followed by the 'Flash download failed' error as before.

Parents
  • I can do a full chip erase in uVision before the programming. It seems to complete that successfully, but then says "Programming failed!", followed by the 'Flash download failed' error as before.

    EDIT: Okay, got it working! For anyone else that experiences this problem... All it seems I had to do was update my programming algorithm in the debugger menu. Seemed to do the trick when I switched it to "nrf51xxx External Connectivity Board". I changed to that, set it up to do a full chip erase, managed to program it a few times.

    I then switched back to the original programming algorithm and put the other settings back the way I had them before too, seems to still be working.

Reply
  • I can do a full chip erase in uVision before the programming. It seems to complete that successfully, but then says "Programming failed!", followed by the 'Flash download failed' error as before.

    EDIT: Okay, got it working! For anyone else that experiences this problem... All it seems I had to do was update my programming algorithm in the debugger menu. Seemed to do the trick when I switched it to "nrf51xxx External Connectivity Board". I changed to that, set it up to do a full chip erase, managed to program it a few times.

    I then switched back to the original programming algorithm and put the other settings back the way I had them before too, seems to still be working.

Children
No Data
Related