Failure to Program or Successfully Recover nrf5340dk

I am having issues programming my nrf5340dk through VSCode or the nrfjprog tools. I have tried as many remedies I can find on the DevZone but not of them seem to correct my issue.

When I attempt to flash my board, the terminal indicates JLink is not supported by current CPU + target interface combination and exits with error code: 33. I sometimes see the same error when issuing the 'nrfjprog --recover' command.

One DevZone ticket indicated I may have erased my JLink Chip and I tried the remedy suggested but was not able to see my nrf5340dk come up as a bootloader.

I will add some logs below. Any help is welcome, thank you in advance.

Parents
  • VSCode terminal output after attempting to flash:

    WARNING: Specifying runner options for multiple domains is experimental.
    If problems are experienced, please specify a single domain using '--domain <domain>'
    -- west flash: using runner nrfjprog
    -- runners.nrfjprog: reset after flashing requested
    -- runners.nrfjprog: Flashing file: C:\jldts_repos\ncs_sandbox\sid_end_device\build_5340\merged_CPUNET.hex
    [error] [  JLink] - Not supported by current CPU + target interface combination.
    [error] [  JLink] - Not supported by current CPU + target interface combination.
    [error] [  JLink] - Not supported by current CPU + target interface combination.
    [error] [  JLink] - Not supported by current CPU + target interface combination.
    [error] [  JLink] - Not supported by current CPU + target interface combination.
    [error] [  JLink] - Not supported by current CPU + target interface combination.
    [error] [  JLink] - Not supported by current CPU + target interface combination.
    [error] [  JLink] - Not supported by current CPU + target interface combination.
    [error] [  JLink] - Not supported by current CPU + target interface combination.
    [error] [  JLink] - Not supported by current CPU + target interface combination.
    [error] [  JLink] - Not supported by current CPU + target interface combination.
    [error] [ Client] - Encountered error -102: Command enable_coprocessor executed for 1229 milliseconds with result -102
    Failed to enable coprocessor with unknown error.
    [error] [  JLink] - Not supported by current CPU + target interface combination.
    [error] [ Worker] - Failed to read access port 0 register 0.
    This indicates that the debug port is available, but the access port is not.
    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.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.
    FATAL ERROR: command exited with status 33: nrfjprog --program 'C:\jldts_repos\ncs_sandbox\sid_end_device\build_5340\merged_CPUNET.hex' --sectorerase --verify -f NRF53 --coprocessor CP_NETWORK --snr 960199690
    
     *  The terminal process terminated with exit code: 33.

    'nrfjprog --recover' output:

    [error] [ JLink] - Not supported by current CPU + target interface combination.
    [error] [ JLink] - Not supported by current CPU + target interface combination.
    [error] [ JLink] - Not supported by current CPU + target interface combination.
    [error] [ JLink] - Not supported by current CPU + target interface combination.
    [error] [ JLink] - Not supported by current CPU + target interface combination.
    [error] [ JLink] - Not supported by current CPU + target interface combination.
    [error] [ JLink] - Not supported by current CPU + target interface combination.
    [error] [ JLink] - Not supported by current CPU + target interface combination.
    [error] [ JLink] - Not supported by current CPU + target interface combination.
    [error] [ JLink] - Not supported by current CPU + target interface combination.
    [error] [ JLink] - Not supported by current CPU + target interface combination.
    [error] [ JLink] - Not supported by current CPU + target interface combination.
    [error] [ JLink] - Not supported by current CPU + target interface combination.
    [error] [ JLink] - Not supported by current CPU + target interface combination.
    [error] [ JLink] - Not supported by current CPU + target interface combination.
    [error] [ JLink] - Not supported by current CPU + target interface combination.
    [error] [ JLink] - Not supported by current CPU + target interface combination.
    [error] [ Client] - Encountered error -102: Command enable_coprocessor executed for 1227 milliseconds with result -102
    Failed to enable coprocessor with unknown error.
    [error] [ JLink] - Not supported by current CPU + target interface combination.
    [error] [ Worker] - Failed to read access port 0 register 0.
    This indicates that the debug port is available, but the access port is not.
    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.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.

  • Hi,

    Which version is the nRF5340DK? (Can be found on the white sticker)

    Regards,
    Sigurd Hellesvik

Reply Children
No Data
Related