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

Programm and debug beacon using Dk

Hi, I want to debug nrf51822 beacon using DK.I made the necessary connections between dk and beacon.I managed to flash the beacon using nrfgoStudio , but if I want to do flash/debug using the Keil,i receive "Error:Flash Download Failed-"Cortex M0"".If I erase all using NrfGoStudio,no longer receive this error,but the program not work.Can you help me,which is the problem?

  • did you try to flash and program beacon application using Keil? The most common reason you get that error is when you are trying to flash to a protected area. Check your IROM values and see if they are compatible with your softdevice.

  • Yes,I tried to flash and program beacon application using Keil,but I receive this ERROR.The problem is that: when I try to flash the beacon using original hex using NrfGoStudio(from \Nordic Semiconductor\nRF51822 Beacon v1.1.0\Precompiled hex),it works,but when I try to program beacon using file hex generated by keil ,I have a problem (error:this hex file has data in softDevice Region.Try programm using SoftDevice or erase all before programming).Why not works?

  • Keil's flash algorithm will not allow to flash an application which tries to write to softdevice reserved address space or UICR registers. I think nRFgo will allow to write to UICR registers.

    try this, go to command prompt and type "nrfjprog -e". After this try to flash again with Keil. If this works then it means either your target IROM settings are wrong or your application is trying to write to UICR register. Tell me what happens and we can proceed from there.

  • Thanks Aryan,I resolve the problem.I modified IROM settings and now I can flash and debug beacon using DK an Keil.Thank you very much!