nrfjprog failures

I'm working on custom test software for use in production programming/testing of my product containing a nRF9160. I'm using the nrfjprog executable, but with problems, every second call to nrfjprog --program is failing:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
D:\[path here]\nrfjprog\nrfjprog
--ini D:\[path here]\nrfjprog\nrfjprog.ini
-f NRF91
-c 4000
-s [serial here]
--program D:\[path here]\temp_files\74e8207a-5983-41e5-b1e6-45eaa2d0f0fb.hex
--sectorerase
--verify
--log
[error] [ Client] - Encountered error -102: Command program_file executed for 188 milliseconds with result -102
[error] [ nRF91] - The write access failed, but no cause could be determined.
[error] [ nRF91] - It may be due to an unaligned access, accessing a nonexistent memory, or a communication issue.
[error] [ nRF91] - Failed while performing 'Write' operation on target address 0x00000000. -102: An unknown error.
[error] [ nRF91] - Failed while reading device information.
[error] [ Worker] - An unknown error. ERROR: JLinkARM DLL reported an error. Try again. If error condition ERROR: persists, run the same command again with argument --log, contact Nordic ERROR: Semiconductor and provide the generated log.log file to them.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

The log file is attached.

nrfjprog v10.22.1

JLINK v7.80c

nrf connect system report:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# nRFConnect System Report - 2023-07-17T12-26-40.066Z
- System: Acer Aspire TC-885
- BIOS: American Megatrends Inc ACRSYS - 1072009
- CPU: 1 x Intel Core™ i7-8700 3.2 GHz 12 cores (6 physical)
- Memory: 5.3 GB free of 15.9 GB total
- Filesystem: C: (NTFS) 930.9 GB 47.6% used
- OS: Microsoft Windows 10 Home (10.0.19045) Windows x64
- Versions
- kernel: 10.0.19045
- git: 2.30.0.windows.1
- node: 16.17.1
- python: 3.11.0
- python3: 3.10.11
- nrf-device-lib-js: 0.6.12
- nrf-device-lib: 0.15.3
- nrfjprog DLL: 10.19.1
- JLink: JLink_V7.80c
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

6712.log.log

Parents
  • I checked my application, I do not set APPROTECT anywhere. The --recover works, but triggers a full flash erase (?), i do not want this, because it erases all my settings etc.

    I also have the problem with programming from VSCode. Program + erase always works. Program with --sectorerase does not work, the same 'unknown error (-102)'.  The error occurs after 'erasing sector 2':

    [ #############        ]   0.259s | Erasing non-volatile memory - block 2 of 2   

    The erase of block1 succeeded,  so i do not think the problem is with APPROTECT. I'm also able to connect with J-LINK commander, so the debug port is working.

    I did not have these errors in the past, but I do not known what caused the errors to happen.

  • Hello again,

    Could you try upgrading your JLink driver? It may have gotten fixed around 7.82.

    Best regards,

    Michal

  • Any news? Came across this error again today.

    Tried 10.18.1 today, as suggested, and this version seems to work (limited testing).

  • I don't have any news yet unfortunately, except for that our developers are looking into it.

    Please use any workarounds that you have found for now.

    Best regards,

    Michal

  • HI  

     Is there any new from this issue?

    I've got the same kind of issue with the last nrf command line tools release (nrf-command-line-tools_10.24.2_amd64.deb) on Linux. This package is bundled with JLink_Linux_V794e_x86_64.

    best 

  • No update I'm afraid.

    Are you able to use the 10.18.1 version instead?

  • Yes 10.18.1 works.

    Would it be possible to know what is the issue ?

Reply Children