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

could not update firmware in nrf52840 using j-link

sir,

help me in firmware updateing using j-link in nRF52840 .i have tried using both j-link and nRfgo studio. in nRFgo studio i could not find the nRF52 development dongle.

help me in updating firware

Parents Reply Children
  • Sir,

    There was an issue with my target device nRF52840.

    We were not able to connect the target device nRF52840 while updating firmware with segger j-link, we are able to connect the target now. What are further steps if you can guide me..

  • If you really want to use JLink.exe rather than nrfGo, then please download this script and run the documented commands.

  • Hello Sir,

    Thanks for help.

    The problem got solved

    Steps are attached in nrf52840.txt file.

    .

    UPDATING FIRMWARE IN nRF52840 USING J-LINK COMMAND PROMPT.
    
    Steps are:
    1.Connect J-Link to the PC.
    2.Connect target system (nRF52840) to J-Link
    3.Start J-Link Commander.
    Type the following commands:
    
    J-Link> loadbin <PathToBinFile>, <programmingaddress>
    
    J-Link>loadbin D:\Exe\ble_app.hex, 0x0
    Halting CPU for downloading file.
    Downloading file [D:\Exe\ble_app.hex]...
    J-Link: Flash download: Bank 0 @ 0x00000000: 1 range affected (20480 bytes)
    J-Link: Flash download: Total time needed: 0.811s (Prepare: 0.038s, Compare: 0.105s, Erase: 0.423s, Program: 0.218s, Verify: 0.000s, Restore: 0.024s)
    O.K.
    J-Link>
    
    progamming address is: 0x0
    
    link for reference : 
    https://www.segger.com/products/debug-probes/j-link/technology/flash-download/

Related