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

Problem updating firmware for nRF9160 DK

Hi, 

I'm trying to update the firmware on my nRF9160 development kit

I downloaded the modem firmware and DFU tool 

And then tried to follow these instructions:

However, when I run nrf9160_mdm_dfu --update  

I get the following:

C:\Nordic nRF9160>nrf9160_mdm_dfu --update
Traceback (most recent call last):
File "c:\python38\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\python38\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Python38\Scripts\nrf9160_mdm_dfu.exe\__main__.py", line 9, in <module>
File "c:\python38\lib\site-packages\nrf9160_mdm_dfu\bin\nrf9160_mdm_dfu.py", line 50, in main
if nrf_dfu.init(args.snr, args.ipcpath) < 0:
File "c:\python38\lib\site-packages\nrf9160_mdm_dfu\api\nrf_dfu_API.py", line 44, in init
self.api.connect_to_emu_without_snr()
File "c:\python38\lib\site-packages\pynrfjprog\API.py", line 541, in connect_to_emu_without_snr
raise APIError(result)
pynrfjprog.API.APIError: An error was reported by NRFJPROG DLL: -13 NO_EMULATOR_CONNECTED.

Your help is very much appreciated!

Regards,

Alan

Parents
  • Hi Alan.

    pynrfjprog.API.APIError: An error was reported by NRFJPROG DLL: -13 NO_EMULATOR_CONNECTED.

     Looks like the issue is that your computer can't detect your board.

    Can you try this:

    1. Make sure that no other DK's are connected to your computer and that no other SW is reserving J-Link.

    2. Make sure that you have the latest J-Link downloaded.

    3. Make sure that the USB cable you use to the DK is not broken in any way.

    4. Download and unzip the latest modem firmware, and enter the unzipped folder.

    5. Make sure that you are running Python 3 and check that you have the latest installed pip version (python -m pip install --upgrade pip).

    6. Make sure that you are running the latest nrfutil version (pip install nrfutil).

    7. Try to install the upgrade firmware tool again, by unzipping the nrf9160_mdm_dfu.zip folder, enter it and run pip install nrf9160_mdm_dfu-0.10.1+dev-py3-none-any.whl

    8. Go back to the mfwnrf916007029alpha folder and run nrf9160_mdm_dfu --update

    If this does not work, are you able to program the board from Segger Embedded Studio? What does nrfjprog -i returns when you run it in CMD?

    Best regards,

    Andreas

Reply
  • Hi Alan.

    pynrfjprog.API.APIError: An error was reported by NRFJPROG DLL: -13 NO_EMULATOR_CONNECTED.

     Looks like the issue is that your computer can't detect your board.

    Can you try this:

    1. Make sure that no other DK's are connected to your computer and that no other SW is reserving J-Link.

    2. Make sure that you have the latest J-Link downloaded.

    3. Make sure that the USB cable you use to the DK is not broken in any way.

    4. Download and unzip the latest modem firmware, and enter the unzipped folder.

    5. Make sure that you are running Python 3 and check that you have the latest installed pip version (python -m pip install --upgrade pip).

    6. Make sure that you are running the latest nrfutil version (pip install nrfutil).

    7. Try to install the upgrade firmware tool again, by unzipping the nrf9160_mdm_dfu.zip folder, enter it and run pip install nrf9160_mdm_dfu-0.10.1+dev-py3-none-any.whl

    8. Go back to the mfwnrf916007029alpha folder and run nrf9160_mdm_dfu --update

    If this does not work, are you able to program the board from Segger Embedded Studio? What does nrfjprog -i returns when you run it in CMD?

    Best regards,

    Andreas

Children
Related