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

nrf51822 Not Running

We have 2 identical development boards and have been using only one until now. I was able to download code into the 2nd board successfully but it will not run. It does not run in either standalone or debug mode (PICKit3). What are the likely causes? 

  • Hi,

     

    My apologies for the delayed answer.

     

    If your application does not rely on the SoftDevice, you can then omit it.

    A softdevice application will be offset wrt. to flash and RAM, like 0x18000 for flash and 0x20002000 for RAM. If there is no softdevice present in flash then, you will never start your application, as there's nothing at address 0 (and onward).

      

    Tom said:
    I placed a breakpoint at the first instruction in main(). After clicking on RUN icon it immediately stops and never gets to the breakpoint.

    Where is it stuck if you break (or pause) the debug session?

    Tom said:
    I just unsuccessfully tried using nRFgo with the Segger JTAG. If I remember correctly there is other hardware used for this purpose. What is it?

     Try using nrfjprog directly:

    nrfjprog -e # this will erase the device

    nrfjprog --program <hex file> -f nrf51 --reset # program a .hex and reset the device afterwards.

     

    Kind regards,

    Håkon

Related