Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 2 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:
2 Answers
10 years, 2 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 11 Nov 2014Sorry, 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 11 Nov 201410 years, 2 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 12 Nov 2014If 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 13 Nov 2014