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

Nrf connect v3.3.0 for Mac with nrf9160 -

hi

im trying to program my nrf9160 using nRF connect 3.3.0 (with latest programming tool).I have jlink 6.56a installed

ive been occasionally able to wipe the nrf9160 but every time I try to update the firmware on the device it fails with almost endless errors

I assume im doing something wrong somewhere but having followed the instructions im not sure what

latest nrf connect for desktop for Mac, latest jlink code, etc no antivirus installed and it fails. any advise or debug that may help break this down?

Trevor

  • Hi Trevor,

    Is this related to when you are trying to update the modem firmware or when you are flashing regular applications to the nrf9160`?

    Could you provide the log output of the errors you are seeing?

    Please check which nrfjprog version you are using as well:

    Best regards,

    Martin L.

  • 2019-12-05T11:34:46.417Z INFO Application data folder: /Users/trevorwilson/Library/Application Support/nrfconnect/pc-nrfconnect-programmer
    2019-12-05T11:34:46.531Z DEBUG App pc-nrfconnect-programmer v1.3.1 official
    2019-12-05T11:34:46.531Z DEBUG App path: /Users/trevorwilson/.nrfconnect-apps/node_modules/pc-nrfconnect-programmer
    2019-12-05T11:34:46.531Z DEBUG nRFConnect 3.3.0 is supported by the app (^3.3.0)
    2019-12-05T11:34:46.531Z DEBUG nRFConnect path: /Applications/nRF Connect.app/Contents/Resources/app.asar
    2019-12-05T11:34:46.531Z DEBUG HomeDir: /Users/trevorwilson
    2019-12-05T11:34:46.531Z DEBUG TmpDir: /var/folders/x3/4qnzshtd741d7jpmcfm3pll80000gn/T/
    2019-12-05T11:34:46.570Z INFO Using nrfjprog library 10.5.0, pc-nrfjprog-js 1.6.0
    2019-12-05T11:34:46.570Z VERBOSE Could not fetch serial number for serial port at /dev/tty.Bluetooth-Incoming-Port
    2019-12-05T11:34:46.571Z VERBOSE Could not fetch serial number for serial port at /dev/tty.TrevorsAirPods-Wireless-3
    2019-12-05T11:34:49.012Z INFO Using nrfjprog to communicate with target
    2019-12-05T11:34:50.177Z INFO Using J-Link Software version 6.56
    2019-12-05T11:34:51.387Z INFO Segger serial:  260110308
    2019-12-05T11:34:51.388Z INFO Segger speed:  2000  kHz
    2019-12-05T11:34:51.388Z INFO Segger version:  J-Link V10 compiled Nov  8 2019 16:40:12
    2019-12-05T11:34:51.391Z INFO Core probed: 260110308.
    2019-12-05T11:34:51.391Z INFO Core RAM: 256KiB.
    2019-12-05T11:34:51.391Z INFO Core ROM: 1024KiB in pages of 4KiB.
    2019-12-05T11:34:51.631Z INFO Model: NRF9160_xxAA_REV1.
    2019-12-05T11:34:52.910Z INFO Core0: Reading device non-volatile memory. This may take a few seconds.
    2019-12-05T11:34:53.079Z INFO Core0: UICR has been read. Click read button to read full non-volatile memory.
    2019-12-05T11:34:59.491Z INFO Parsing HEX file:  /Users/trevorwilson/Dropbox/WBP - AmniTech/Binaries/30th October v2/merged_009.hex
    2019-12-05T11:34:59.515Z INFO File was last modified at  30/10/2019, 21:10:58
    2019-12-05T11:34:59.640Z INFO Data block: 0x00000000-0x00008E6C (0x00008E6C  bytes long)
    2019-12-05T11:34:59.640Z INFO Data block: 0x0000C000-0x000524CC (0x000464CC  bytes long)
    2019-12-05T11:35:05.084Z INFO Recovery procedure finished
    2019-12-05T11:35:05.088Z INFO Using nrfjprog to communicate with target
    2019-12-05T11:35:06.427Z INFO Using J-Link Software version 6.56
    2019-12-05T11:35:07.753Z INFO Segger serial:  260110308
    2019-12-05T11:35:07.753Z INFO Segger speed:  2000  kHz
    2019-12-05T11:35:07.753Z INFO Segger version:  J-Link V10 compiled Nov  8 2019 16:40:12
    2019-12-05T11:35:07.756Z INFO Core probed: 260110308.
    2019-12-05T11:35:07.756Z INFO Core RAM: 256KiB.
    2019-12-05T11:35:07.756Z INFO Core ROM: 1024KiB in pages of 4KiB.
    2019-12-05T11:35:07.917Z ERROR Error when closing nrfjprog: Error: Error occured when close opened device. Errorcode: CouldNotResetDevice (0x5)
    Lowlevel error: Unknown value (ffffff98)
    
    2019-12-05T11:35:07.917Z INFO Model: NRF9160_xxAA_REV1.
    2019-12-05T11:35:07.921Z ERROR Error when getting device info: Error: Error: Error occured when open device long term. Errorcode: CouldNotOpenDevice (0x4)
    Lowlevel error: INVALID_OPERATION (fffffffe)
    
    2019-12-05T11:35:07.922Z DEBUG getDeviceMemMap: r is not iterable
    2019-12-05T11:35:07.922Z INFO Writing procedure starts for core0
    2019-12-05T11:35:08.064Z ERROR Error when closing nrfjprog: Error: Error occured when close opened device. Errorcode: CouldNotOpenDevice (0x4)
    Lowlevel error: INVALID_OPERATION (fffffffe)
    
    2019-12-05T11:35:08.066Z ERROR HighLevel_probe_init
    2019-12-05T11:35:08.066Z ERROR . HighLevel_get_connected_probes
    2019-12-05T11:35:08.066Z ERROR . . nRFXX_enum_emu_snr
    2019-12-05T11:35:08.066Z ERROR . . . Segger_enum_emu_snr
    2019-12-05T11:35:08.066Z ERROR . . . . Segger_enum_emu_snr
    2019-12-05T11:35:08.067Z ERROR . . . . . Segger_get_num_emus
    2019-12-05T11:35:08.067Z ERROR HighLevel_probe_init:	jlink_path parameter is NULL, using default JLINKARM DLL path given with or obtained in NRFJPROG_dll_open() function.
    2019-12-05T11:35:08.067Z ERROR 
    2019-12-05T11:35:08.067Z ERROR HighLevel_probe_init:	Using JLINKARM DLL at "/Applications/SEGGER/JLink/libjlinkarm.6.56.1.dylib".
    2019-12-05T11:35:08.067Z ERROR 
    2019-12-05T11:35:08.067Z ERROR HighLevel_probe_init:	Creating new probe
    2019-12-05T11:35:08.067Z ERROR 
    2019-12-05T11:35:08.067Z ERROR Debug_Probe-260110308_logger_open
    2019-12-05T11:35:08.067Z ERROR Debug_Probe-260110308_logger_open:	nRFJProg logger opened to callback at address 0X114AE8C10
    2019-12-05T11:35:08.067Z ERROR HighLevel_probe_init:	A probe with id 260110308 is already initialized.
    2019-12-05T11:35:08.067Z ERROR 
    2019-12-05T11:35:08.067Z ERROR 
    2019-12-05T11:35:26.857Z INFO Target device closed.
    

    on a Mac OSX 10.15.1

  • nrfjprog version: 10.5.0 

    JLinkARM.dll version: 6.56a

  • I tried using command line on Mac with command

    nrfjprog --program merged.hex --log

    the output is attached

    5751.log.log

Related