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.