9 years, 5 months ago.

How to revert interface MCU firmware back to the J-Link image?

As nRF51-DK User Guide said: "If you have swapped to the mbed image and want to revert back to the J-Link image, download the latest SEGGER J-Link software from www.segger.com and open a debug session to update to the latest J-Link OB firmware version."

I press Reset button and plug in the USB cable, then the LED5 is blinking. But how to download the J-Link image?

Thanks.

Question relating to:

The nRF51 Development Kit is a single-board development kit for Bluetooth Smart, ANT and 2.4GHz proprietary applications using the nRF51 Series SoC. This kit supports both development for both nRF51822 …

2 Answers

9 years, 5 months ago.

See post: nRF51822-mkit Hex vs Bin

Yes, you are right. The USB changed from MBED to JLINK. But it still can not be recognize by nRFgo or Keil. Why?

posted by aaron xu 11 Nov 2014

Sorry, I misunderstood. To remove the mbed or any softdevice you probably need to completely erase the nRF51822. The only way I know to do that is using [Erase all] button in nRFgo Studio while connected through the Segger IC. I don't have an nRF51-DK to try it on :(

The mbed changes the USB connection, hoping someone else can post how to undo that.

An option may be to upgrade mbed to FOTA DFU, then use the FOTA DFU to overwrite the mbed with a default app (if that's possible).

posted by Paul Russell 11 Nov 2014
9 years, 5 months ago.

Hi aaron xu,

If I have understood it correctly, you want to switch back to the J-Link interface firmware on your nRF51-DK board?

One approach you can follow is to download the J-Link OB image from the nordicsemi.com website: http://www.nordicsemi.com/eng/Products/nRF51-DK/(language)/eng-GB

You need to be logged in and also have the product key added for your nRF51-DK board so that the interface firmwares are available to you for downloading (nRF51-DK-J-Link-IF, and nRF51-DK-mbed-IF).

After you have acquired the interface firmware (nRF51-DK-J-Link-IF.bin), you can follow the approach you used earlier to swap back to the J-Link firmware.

  • Follow the approach in section 4.1 "IF Boot/Reset button" on page 8 to enter the bootloader (ie. to enter bootloader mode, press the boot/reset button (SW5) while the board is powered until the LED (LD5) starts to blink).
  • To swap the Interface MCU FW, drag and drop the Interface image (ie. the nRF51-DK-J-Link-IF.bin file) into the mounted bootloader drive on the connected computer.
  • Wait until the transfer is complete, and then power cycle the board (turn off and on again without holding the reset button). The new firmware should now be present.

I hope that this works for you.

EDIT: If the device (having the JLink firmware installed) is not showing up in Keil, ie. when you choose Options for Target: Debug tab: Use: J-LINK / J-TRACE Cortex: Settings: Port SW (the device should show up as J-Link / J-Trace Adapter SN: SERIALNUM. and the SW Device should have a device listed), then perhaps you need to download a newer segger software.

The Segger software can be found at https://segger.com/jlink-software.html

After installing this, try again and see if the device appears.

- If the nRFgo Studio does not work for your DK board, you might have to update it. The newest version is 1.17.1. Just open the nRFgo Studio and press help: Check for updates and download the lastest version and run the install. That should make the DK board show up in the studio and you should be able to erase and program it.

Yes, I just did what you say. But the nRFgo studio not recognize the Jlink OB. I can not use nRFgo studio to flash or erase nRF51822, or even use Keil to debug it.

posted by aaron xu 12 Nov 2014

If the device (having the JLink firmware installed) is not showing up in Keil, ie. when you choose Options for Target: Debug tab: Use: J-LINK / J-TRACE Cortex: Settings: Port SW (the device should show up as J-Link / J-Trace Adapter SN: SERIALNUM. and the SW Device should have a device listed), then perhaps you need to download a newer segger software.

The Segger software can be found at https://segger.com/jlink-software.html

After installing this, try again and see if the device appears.

Let me know if it this works.

EDIT: If the nRFgo Studio does not work for you DK board, you might have to update it. The newest version is 1.17.1. Just open the nRFgo Studio and press help: Check for updates and download the lastest version. That should make the DK board show up in the studio and you should be able to erase and program it.

posted by Gaute Gamnes 13 Nov 2014

Unfortunately, I can not use it in nRFgo studio or Keil. It's still looks like mbed interface, just can be used by dragging image file on it.

I think maybe this is not respond of mbed, so I also send a question on NORDIC DEVELOPMENT ZONE.

posted by aaron xu 18 Nov 2014