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

nrf51 smart beacon kit jtag programming

Hi,

I have just received my smart beacon kit (nRF51822 based), I have wired up my JLink programmer according to devzone.nordicsemi.com/.../

However I am having trouble detecting the beacon kit on nRFgo Studio. nRFgo studio keeps saying that no device detected.

Normally, after inserting the battery, the beacon's LED will start flashing. If I plug in the programmer afterwards, nRFgo studio doesn't detect the device.

After a few tries, I managed to find 1 particular condition that allows the nRFgo studio to detect the device, which is connecting the JTAG programmer first, and then put the battery in. Now the LED doesnt turn on at all. When I click the refresh button for the first time on nRFgo studio, the device is detected, with the correct IDs, SD version etc. Then the LED would start flashing. However, if I click the refresh button again, the device is no longer detected.

I suspect that once the device is booted and the application is running, it somehow cuts out the JTAG interface.

Could anyone share some light in this issue? Cheers.

Warm regards, Mike

Parents
  • I have did some further testing and managed to program it, but in an rather odd way.

    To erase in nrfgo studio,

    1. connect jtag to device while battery is out
    2. put in battery and click refresh (now nrfstudio would show the device)
    3. take battery battery and put it back again
    4. click erase and wait for nrfgo studio
    5. the device is now erase so basically whenever I need to do some operation in nrfgo studio, I have to take the battery out between each click, so if I wanted to program the softdevice, I would do that in step 4

    now to program in keil, using the jtag interface, (not through nrfjprog), this gets even more interesting

    1. connect jtag to device while battery is out
    2. put in battery and click program
    3. wait for program to finish and it is done for any subsequent programming, I don't need to take the battery out anymore, until if I hit the refresh button in nrfgo studio
Reply
  • I have did some further testing and managed to program it, but in an rather odd way.

    To erase in nrfgo studio,

    1. connect jtag to device while battery is out
    2. put in battery and click refresh (now nrfstudio would show the device)
    3. take battery battery and put it back again
    4. click erase and wait for nrfgo studio
    5. the device is now erase so basically whenever I need to do some operation in nrfgo studio, I have to take the battery out between each click, so if I wanted to program the softdevice, I would do that in step 4

    now to program in keil, using the jtag interface, (not through nrfjprog), this gets even more interesting

    1. connect jtag to device while battery is out
    2. put in battery and click program
    3. wait for program to finish and it is done for any subsequent programming, I don't need to take the battery out anymore, until if I hit the refresh button in nrfgo studio
Children
No Data
Related