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

  • 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
  • so now, I can reprogram the device no problem, just the steps seem rather odd. I suspect maybe it is something to do with with reset pins? referring to this datasheet for the TC2030 connector, it seems pin 3 could be used as nRESET, which is missing from my wiring

  • I've never experienced anything like that, so I'm not really sure what is going on. The reset pin is not really needed since the device is reset through the SWDIO pin. Actually on the nRF51 chip nRESET and SWDIO is the same pin, so in order to reset, the J-Link goes out of debug mode and then pulls the SWDIO pin low. Are you sure you bought a genuine Segger? It is a lot of copies out there.

    You can try to download the latest drivers for your J-Link, www.segger.com/jlink-software.html, and then flash it with the newest firmware (Using J-Link Configurator).

    You also mentioned that you had a pull up on the SWDIO, you can try to remove this as it is not really needed. There is an internal pull up on the chip.

    Other than that, the only thing I can think of is HW issues. If it turns out it is the HW on the beacon, you can open up a case in the support portal and get a replacement.

Related