Issue with programming multiple nRF52840 boards – J-Link DLL error after first programming in Programmer v4.6.2

Hello,

I am experiencing a recurring issue when programming multiple nRF52840 boards using the nRF Programmer.

  • Problem description:
    When programming the first board, everything works fine.
    However, when I try to program the second and subsequent boards, after performing Reset and Erase & Write, I always get the following error:

13:04:07.646 Failed "loading core information for application core". Error: code: 1, description: Generic, message: Batch task core-info failed, Device error: Failed to read from memory address 0x10000130: Failed to write DebugPort register 0x08: Unknown Error in J-Link DLL (error code = -1) 13:04:07.663 Error: Failed with exit code 1. One or more batch tasks failed: * 801050888: Device error: Failed to read from memory address 0x10000130: Failed to write DebugPort register 0x08: Unknown Error in J-Link DLL (error code = -1)

If I press reset and run Erase & Write again, the programming works successfully.
Then on the next board, the same error appears again, and I need to repeat the reset/erase cycle.

  • Additional information:
    This issue only started appearing with the current version of the software.
    In the previous version of nRF Programmer, I did not have this problem.

Could you please help me understand what is causing this error and how to fix it?

Thank you in advance.

Parents
  • Hello, 

    Thank you for your patience while waiting for us to respond. 

    Could you please let me know which version of the nRF Programmer which was the last version without this issue? 

    Also, please let me know what your programming setup is: 

    • Are you working with an nRF52840 DK as the programmer? If yes: what is the board version? 
    • Are you using another device as a programmer? I.e. a dedicated J-Link programmer.

    Best regards,

    Maria 

  • Hello,

    I am programming my own custom board based on the nRF52840.
    I always use nRF Connect for Desktop v5.2.0 (Programmer v4.6.2) on Windows 11. On Programmer v4.6.0 I did not have this issue.

    I am using J-Link v8.18. I also tried with J-Link v8.64, but the error is still the same.

    Here is the error and when it appears (after programming the first board, when trying the next one):

    12:08:21.843 Recovering Application core completed
    12:08:21.845 Loading core information for Application core
    12:08:21.845 Loading core information for Application core 0%
    12:08:21.845 Update files regions according to Application core
    12:08:21.845 Parse memory regions for file
    12:08:21.886 Failed "loading core information for application core". Error: code: 1, description: Generic, message: Batch task core-info failed, Device error: Failed to read from memory address 0x10000130: Failed to write DebugPort register 0x08: Unknown Error in J-Link DLL (error code =-1)
    12:08:21.904 Error: Failed with exit code 1. One or more batch tasks failed: * 801050888: Device error: Failed to read from memory address 0x10000130: Failed to write DebugPort register 0x08: Unknown Error in J-Link DLL (error code =-1) (Generic) Message: Batch task core-info failed, Device error: Failed to read from memory address 0x10000130: Failed to write DebugPort register 0x08: Unknown Error in J-Link DLL (error code =-1).


  • Hello,

    Tomasz Chudy said:
    I am using J-Link v8.18. I also tried with J-Link v8.64, but the error is still the same.

    Pardon me if I misunderstand, but this is just the software and not a debugging device, right? 

    I am still missing information about which device is acting as a debugger between your PC and your custom nRF52840 board. Or perhaps you have a debugger on your custom board? 

    Thank you for the information you shared about your versions for nRF Connect for Desktop, the Programmer application and your Windows version. 

    Best regards,

    Maria

  • Hello Maria,

    Thank you for your reply. I am using a J-Link Mini as the debugger between my PC and the custom nRF52840 board.

Reply Children
Related