nrfconnect-programmer fails randomly while uploading image via SDFU

nrf-programmer app fails randomly ot upload image using SDFU to pca10059 target, I have to repeat process several times to get job done.

Version 3.0.4, OS Debian GNU/Linux bookworm/sid.

Previous versions were working correctly.

Log:

2022-11-21T09:58:31.123Z DEBUG Application data folder: /home/ask/.config/nrfconnect/pc-nrfconnect-programmer
2022-11-21T09:58:31.293Z INFO Using nrf-device-lib-js version: 0.4.13
2022-11-21T09:58:31.294Z INFO Using nrf-device-lib version: 0.12.8
2022-11-21T09:58:31.294Z INFO Using nrfjprog DLL version: 10.16.0
2022-11-21T09:58:31.294Z INFO Using JLink version: JLink_V7.66e
2022-11-21T09:58:31.339Z DEBUG App pc-nrfconnect-programmer v3.0.4 official
2022-11-21T09:58:31.340Z DEBUG App path: /home/ask/.nrfconnect-apps/node_modules/pc-nrfconnect-programmer
2022-11-21T09:58:31.340Z DEBUG nRFConnect 3.12.0, required by the app is (^3.12.0)
2022-11-21T09:58:31.340Z DEBUG nRFConnect path: /tmp/.mount_nrfconaowLZx/resources/app.asar
2022-11-21T09:58:31.340Z DEBUG HomeDir: /home/ask
2022-11-21T09:58:31.340Z DEBUG TmpDir: /tmp
2022-11-21T09:58:31.342Z INFO Installed JLink version does not match the provided version (V7.66a)
2022-11-21T09:58:36.130Z DEBUG Client Id: 0f133aa6-340c-4e39-a5c7-3acb61a304d5
2022-11-21T09:58:36.209Z DEBUG Google Analytics for category pc-nrfconnect-programmer has initialized
2022-11-21T09:58:42.511Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"architecture","label":"x64"}
2022-11-21T09:58:42.513Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open device","label":"nordicUsb"}
2022-11-21T09:58:42.518Z INFO Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via USB SDFU protocol
2022-11-21T09:58:42.518Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device family","label":"NRF52_FAMILY"}
2022-11-21T09:58:42.519Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device version","label":"nRF52840"}
2022-11-21T09:58:42.520Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device board version","label":"PCA10059"}
2022-11-21T09:58:43.692Z INFO Update files regions according to Application core
2022-11-21T09:58:43.693Z INFO Parse memory regions for file
2022-11-21T09:58:54.493Z INFO Parsing HEX file:  /home/ask/dev/macrix/cptech/sw3/firmware/SW_Inclinometer/deploy/inclinometer_pca10059_sd_0.3.0-83.hex
2022-11-21T09:58:54.552Z INFO File was last modified at  11/21/2022, 10:58:10 AM
2022-11-21T09:58:54.699Z INFO Update files regions according to Application core
2022-11-21T09:58:54.699Z INFO Parse memory regions for file
2022-11-21T09:58:54.700Z INFO SoftDevice detected, id 0x100 (S140 v7.2.0)
2022-11-21T09:58:58.064Z INFO Does not need to be reloaded:  /home/ask/dev/macrix/cptech/sw3/firmware/SW_Inclinometer/deploy/inclinometer_pca10059_sd_0.3.0-83.hex
2022-11-21T09:58:58.067Z INFO SdReq for SoftDevice is set as 0x00.
2022-11-21T09:58:58.068Z INFO Hash is generated by SHA256
2022-11-21T09:58:58.068Z INFO Hash is generated by SHA256
2022-11-21T09:58:58.074Z INFO Performing DFU. This may take a few seconds
2022-11-21T09:58:58.113Z INFO Opening serial port for SDFU programming: 0%
2022-11-21T09:58:58.514Z INFO Opening serial port for SDFU programming: 100%
2022-11-21T09:58:58.515Z INFO Uploading image through SDFU: 0%
2022-11-21T09:58:58.689Z INFO Uploading image through SDFU: 1%
2022-11-21T09:58:58.689Z INFO Uploading image through SDFU: 2%
2022-11-21T09:58:58.850Z INFO Uploading image through SDFU: 3%
2022-11-21T09:58:58.851Z INFO Uploading image through SDFU: 4%
2022-11-21T09:58:58.851Z INFO Uploading image through SDFU: 5%
2022-11-21T09:58:59.012Z INFO Uploading image through SDFU: 6%
2022-11-21T09:58:59.012Z INFO Uploading image through SDFU: 7%
2022-11-21T09:58:59.012Z INFO Uploading image through SDFU: 8%
2022-11-21T09:58:59.173Z INFO Uploading image through SDFU: 9%
2022-11-21T09:58:59.173Z INFO Uploading image through SDFU: 10%
2022-11-21T09:58:59.334Z INFO Uploading image through SDFU: 11%
2022-11-21T09:58:59.334Z INFO Uploading image through SDFU: 12%
2022-11-21T09:58:59.334Z INFO Uploading image through SDFU: 13%
2022-11-21T09:58:59.495Z INFO Uploading image through SDFU: 14%
2022-11-21T09:58:59.495Z INFO Uploading image through SDFU: 15%
2022-11-21T09:58:59.495Z INFO Uploading image through SDFU: 16%
2022-11-21T09:58:59.656Z INFO Uploading image through SDFU: 17%
2022-11-21T09:58:59.656Z INFO Uploading image through SDFU: 18%
2022-11-21T09:58:59.817Z INFO Uploading image through SDFU: 19%
2022-11-21T09:58:59.817Z INFO Uploading image through SDFU: 20%
2022-11-21T09:58:59.818Z INFO Uploading image through SDFU: 21%
2022-11-21T09:58:59.978Z INFO Uploading image through SDFU: 22%
2022-11-21T09:58:59.979Z INFO Uploading image through SDFU: 23%
2022-11-21T09:58:59.979Z INFO Uploading image through SDFU: 24%
2022-11-21T09:59:00.139Z INFO Uploading image through SDFU: 25%
2022-11-21T09:59:00.140Z INFO Uploading image through SDFU: 26%
2022-11-21T09:59:00.301Z INFO Uploading image through SDFU: 27%
2022-11-21T09:59:00.301Z INFO Uploading image through SDFU: 28%
2022-11-21T09:59:00.301Z INFO Uploading image through SDFU: 29%
2022-11-21T09:59:00.462Z INFO Uploading image through SDFU: 30%
2022-11-21T09:59:00.462Z INFO Uploading image through SDFU: 31%
2022-11-21T09:59:00.462Z INFO Uploading image through SDFU: 32%
2022-11-21T09:59:00.623Z INFO Uploading image through SDFU: 33%
2022-11-21T09:59:00.623Z INFO Uploading image through SDFU: 34%
2022-11-21T09:59:00.785Z INFO Uploading image through SDFU: 35%
2022-11-21T09:59:00.785Z INFO Uploading image through SDFU: 36%
2022-11-21T09:59:00.785Z INFO Uploading image through SDFU: 37%
2022-11-21T09:59:00.945Z INFO Uploading image through SDFU: 38%
2022-11-21T09:59:00.945Z INFO Uploading image through SDFU: 39%
2022-11-21T09:59:00.946Z INFO Uploading image through SDFU: 40%
2022-11-21T09:59:01.106Z INFO Uploading image through SDFU: 41%
2022-11-21T09:59:01.107Z INFO Uploading image through SDFU: 42%
2022-11-21T09:59:01.268Z INFO Uploading image through SDFU: 43%
2022-11-21T09:59:01.268Z INFO Uploading image through SDFU: 44%
2022-11-21T09:59:01.268Z INFO Uploading image through SDFU: 45%
2022-11-21T09:59:01.429Z INFO Uploading image through SDFU: 46%
2022-11-21T09:59:01.429Z INFO Uploading image through SDFU: 47%
2022-11-21T09:59:01.429Z INFO Uploading image through SDFU: 48%
2022-11-21T09:59:01.590Z INFO Uploading image through SDFU: 49%
2022-11-21T09:59:01.590Z INFO Uploading image through SDFU: 50%
2022-11-21T09:59:01.751Z INFO Uploading image through SDFU: 51%
2022-11-21T09:59:01.751Z INFO Uploading image through SDFU: 52%
2022-11-21T09:59:01.752Z INFO Uploading image through SDFU: 53%
2022-11-21T09:59:01.912Z INFO Uploading image through SDFU: 54%
2022-11-21T09:59:01.912Z INFO Uploading image through SDFU: 55%
2022-11-21T09:59:01.912Z INFO Uploading image through SDFU: 56%
2022-11-21T09:59:02.073Z INFO Uploading image through SDFU: 57%
2022-11-21T09:59:02.073Z INFO Uploading image through SDFU: 58%
2022-11-21T09:59:02.235Z INFO Uploading image through SDFU: 59%
2022-11-21T09:59:02.235Z INFO Uploading image through SDFU: 60%
2022-11-21T09:59:02.235Z INFO Uploading image through SDFU: 61%
2022-11-21T09:59:02.396Z INFO Uploading image through SDFU: 62%
2022-11-21T09:59:02.396Z INFO Uploading image through SDFU: 63%
2022-11-21T09:59:02.396Z INFO Uploading image through SDFU: 64%
2022-11-21T09:59:02.557Z INFO Uploading image through SDFU: 65%
2022-11-21T09:59:02.557Z INFO Uploading image through SDFU: 66%
2022-11-21T09:59:02.718Z INFO Uploading image through SDFU: 67%
2022-11-21T09:59:02.718Z INFO Uploading image through SDFU: 68%
2022-11-21T09:59:02.718Z INFO Uploading image through SDFU: 69%
2022-11-21T09:59:02.879Z INFO Uploading image through SDFU: 70%
2022-11-21T09:59:02.879Z INFO Uploading image through SDFU: 71%
2022-11-21T09:59:02.879Z INFO Uploading image through SDFU: 72%
2022-11-21T09:59:03.040Z INFO Uploading image through SDFU: 73%
2022-11-21T09:59:03.040Z INFO Uploading image through SDFU: 74%
2022-11-21T09:59:03.201Z INFO Uploading image through SDFU: 75%
2022-11-21T09:59:03.202Z INFO Uploading image through SDFU: 76%
2022-11-21T09:59:03.202Z INFO Uploading image through SDFU: 77%
2022-11-21T09:59:03.363Z INFO Uploading image through SDFU: 78%
2022-11-21T09:59:03.363Z INFO Uploading image through SDFU: 79%
2022-11-21T09:59:03.363Z INFO Uploading image through SDFU: 80%
2022-11-21T09:59:03.524Z INFO Uploading image through SDFU: 81%
2022-11-21T09:59:03.524Z INFO Uploading image through SDFU: 82%
2022-11-21T09:59:03.685Z INFO Uploading image through SDFU: 83%
2022-11-21T09:59:03.686Z INFO Uploading image through SDFU: 84%
2022-11-21T09:59:03.686Z INFO Uploading image through SDFU: 85%
2022-11-21T09:59:03.847Z INFO Uploading image through SDFU: 86%
2022-11-21T09:59:03.847Z INFO Uploading image through SDFU: 87%
2022-11-21T09:59:03.847Z INFO Uploading image through SDFU: 88%
2022-11-21T09:59:04.008Z INFO Uploading image through SDFU: 89%
2022-11-21T09:59:04.008Z INFO Uploading image through SDFU: 90%
2022-11-21T09:59:04.169Z INFO Uploading image through SDFU: 91%
2022-11-21T09:59:04.170Z INFO Uploading image through SDFU: 92%
2022-11-21T09:59:04.170Z INFO Uploading image through SDFU: 93%
2022-11-21T09:59:04.332Z INFO Uploading image through SDFU: 94%
2022-11-21T09:59:04.332Z INFO Uploading image through SDFU: 95%
2022-11-21T09:59:04.333Z INFO Uploading image through SDFU: 96%
2022-11-21T09:59:04.492Z INFO Uploading image through SDFU: 97%
2022-11-21T09:59:04.492Z INFO Uploading image through SDFU: 98%
2022-11-21T09:59:04.653Z INFO Uploading image through SDFU: 99%
2022-11-21T09:59:04.653Z INFO Uploading image through SDFU: 100%
2022-11-21T09:59:04.782Z INFO Waiting for serial port to be attached: 0%
2022-11-21T09:59:05.265Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Close device","label":""}
2022-11-21T09:59:05.267Z INFO Target device closed
2022-11-21T09:59:07.444Z INFO Device was attached: 100%
2022-11-21T09:59:07.444Z INFO Opening serial port for SDFU programming: 0%
2022-11-21T09:59:07.445Z INFO Opening serial port for SDFU programming: 100%
2022-11-21T09:59:07.445Z INFO Uploading image through SDFU: 0%
2022-11-21T09:59:07.445Z INFO Uploading image through SDFU: 1%
2022-11-21T09:59:07.445Z INFO Uploading image through SDFU: 3%
2022-11-21T09:59:07.445Z INFO Uploading image through SDFU: 4%
2022-11-21T09:59:07.445Z INFO Uploading image through SDFU: 6%
2022-11-21T09:59:07.445Z INFO Uploading image through SDFU: 7%
2022-11-21T09:59:07.445Z INFO Uploading image through SDFU: 9%
2022-11-21T09:59:07.445Z INFO Uploading image through SDFU: 10%
2022-11-21T09:59:07.445Z INFO Uploading image through SDFU: 12%
2022-11-21T09:59:09.286Z ERROR  (Origin: "Error when running fw program.")

Parents
  • Hello,

    So there seems to be a variety of issues going on here. 

    Unfortunately nRF Connect for Desktop, along with the nRF Programmer, is only supported on Windows, Mac and Ubuntu. Even though this is bookworm/sid which is what supported versions of Ubuntu is based on, we do not provide support for this. You might be able to fix this yourself (people running exotic linux distributions often do), though you will be a bit on your own doing so.

    If you're able to reproduce this on Ubuntu however I'll look into it for you.

    Regards,

    Elfving

Reply
  • Hello,

    So there seems to be a variety of issues going on here. 

    Unfortunately nRF Connect for Desktop, along with the nRF Programmer, is only supported on Windows, Mac and Ubuntu. Even though this is bookworm/sid which is what supported versions of Ubuntu is based on, we do not provide support for this. You might be able to fix this yourself (people running exotic linux distributions often do), though you will be a bit on your own doing so.

    If you're able to reproduce this on Ubuntu however I'll look into it for you.

    Regards,

    Elfving

Children
No Data
Related