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
  • Hi Sharon,

    Is it a custom board that is using our nRF52840? have you ever been successful in flashing the program into this chip? If not, then the biggest suspect now could be something wrong with your schematics design or soldering.

    If the chip was detectable before and is not anymore, then it is possible that you might have bricked the chip with you application trying to make the chip go to system off too early.

    To give you more assistance, we need to know more about your board and what tests you did on that board that resulted in its failure (if it was working before)

  • Hi sir,

    yes it is a custom board..yes i have flashed using Raspberry pi3.. but Im doing with segger j-link now also tried with nRFgo studio..with j-link i am not able to connect to target.. 

  • sir,

    1. we have flashed using  Raspberry Pi3 openocd  normal blinky.hex file. It works fine as per the code. (we ordered Segger mean time tried with Raspberry pi3 programmer)

    2. We do not want to use Raspberry Pi3 as programmer/debugger.

    3. We have flashed module with same hex file through segger J-link EDU to the same target Device nRF52840 but we are unable to connect the target.

    suggest for the same.

    details:

    a.JLink V.33g

    b.Segger J-link EDU 

  • sharanbasappa said:
    We have flashed module with same hex file through segger J-link EDU to the same target Device nRF52840 but we are unable to connect the target.

    If you flashed the device using Segger J-Link EDU, which means that you were able to connect to it once. And if you are  not able to connect to it later, then like I said, it could be the application that might have caused this. But if this is the default blinky hex file that comes with the SDK, then i will rule this out.

    Could it be possible that the board is dead, with an unintentional short when you touched the board somewhere? 

    Just try the "nrfjprog --recover" option on the command prompt (after installing nRF5 commandline tools). If this did not work, then most likely you have bricked you chip. Also make sure that if someone has cut the SB9 bridge on your DK to do power measurements, then make sure that you connect them back using a wire.

  • sir,

    sorry for the misinterpretation we have not flashed we are trying to flash but could not connect the target.

    even we used another target device nRF52840. 

  • OK, then it might not be the problem on Nordic side. 

    Are you testing this on custom board? in that case, check your schematics again and make sure that the device is getting powered. Also in your snapshot you see a "Recover" option. Click that to see if that helps.

  • Yes sir we are testing on custom board.

     We have flashed blinky.hex file using openocd software running on  Raspberry Pi3 , it works fine as per the code. Which means that the schematic we are using is correct.

     We are trying to flash the module with same hex file through segger J-link EDU to the same target device nRF52840 but we are unable to connect the target.

    and now we are using J-Link command prompt not nRFgo Studio. 

Reply
  • Yes sir we are testing on custom board.

     We have flashed blinky.hex file using openocd software running on  Raspberry Pi3 , it works fine as per the code. Which means that the schematic we are using is correct.

     We are trying to flash the module with same hex file through segger J-link EDU to the same target device nRF52840 but we are unable to connect the target.

    and now we are using J-Link command prompt not nRFgo Studio. 

Children
  • please follow the instructions in this post to see if you can use nordic DK (if you have any) to try to connect to your custom board. If you are not able to communicate then its most likely something wrong on your custom board, then follow HĂĄkon's recommendations to try to fix this. I am not aware of any problem on Nordic side for JTAG

  • 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