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

  • Assuming the sticker is printed as follows:

    PCA10095

    Version

    Manufacture Month

    Serial Number

    Then my Version Number is 0.11.0

  • Hi,

    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.

    What do you mean "sometimes see the same when issuing nrfjprog --recover"?
    Does recovering work mormally?

    How about "nrfjprog -e", does that work?

Reply
  • Hi,

    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.

    What do you mean "sometimes see the same when issuing nrfjprog --recover"?
    Does recovering work mormally?

    How about "nrfjprog -e", does that work?

Children
  • To clarify my inconsistent behavior for the nrfjprog commands: When I plug in my nrf5340dk LED1 flickers for about 8s and if I initiate a command before the flickering is done - it behaves differently than if I initiate the same command after the flickering has finished.

    Regardless of how the nrfjprog --recover command proceeds, I am still not able to flash it with a build no matter how I try.

    nrfjprog -e does not work either.

  • samtday said:
    To clarify my inconsistent behavior for the nrfjprog commands: When I plug in my nrf5340dk LED1 flickers for about 8s and if I initiate a command before the flickering is done - it behaves differently than if I initiate the same command after the flickering has finished.

    The flickering is normal for like two seconds. 8s longer than normal.

    samtday said:
    Regardless of how the nrfjprog --recover command proceeds, I am still not able to flash it with a build no matter how I try.

    But does it ever work, or just different errors?

Related