Errors while flashing a custom nrf52840 board

Dear Team DevZone,

We are facing some problems while flashing our protoypes ( custom board whit nRF52840 chip ),

We are using nRF Connect for Desktop v4.1.1, The Toolchain Manager v1.2.4 and nRF connect SDK 2.2.0 to generate our Hex files (that works in DK). 

We are using Programmer (v3.0.8) to flash the custom board ( nRF52840 xxAA REV2 ) whit a ( nRF52840DK xxAA REV3) as a JLINK ( V7.80c ).

We use the Tag-Connect ( TC2030-CTX ) a 10pins to 6pins connector. 

The reset pin P0.18 in our chip is not connected. We look to disable it in the software also, can we do it whit the register PSELRESET(0x200)?.

While flashing any of our test programs we face two problems (sometimes the jlink recognize the customboard but does not communicate properly ) : 

First : Unsupported device. The detected device could not be recognized as neither JLink device nor Nordic USB device.

Second : [error] [SeggerBackend] - 10 second timeout elapsed, no time left to wait for debug port to power up.

We are locked at this point, so that we open this ticket.

Thank you in advance,

Kinds regards.

Parents
  • Hi,

    I have tested a new protoype, whit the normal setup ( P19 ), For the first time connection the jlink board recognize our custom board and read it whitout any problem, but when we flash a simple blinky code the led doesnt blink and the custom board stick in protection mode, we try to recover and erase using the commands programmer and vscode, the custom board stick in protection mode and the jlink show an unknow board.  /cfs-file/__key/communityserver-discussions-components-files/4/Log_5F00_file_5F00_nrf52.txt

    The problems after flashing a simple code : 

    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    Failed to read device memories.[error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".

    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [ nRF52] - Failed when checking readback protect status.
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "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:\nordicsemi\MyApps2\blinky\build\zephyr\zephyr.hex' --chiperase --verify -f NRF52 --snr 1050248226

Reply
  • Hi,

    I have tested a new protoype, whit the normal setup ( P19 ), For the first time connection the jlink board recognize our custom board and read it whitout any problem, but when we flash a simple blinky code the led doesnt blink and the custom board stick in protection mode, we try to recover and erase using the commands programmer and vscode, the custom board stick in protection mode and the jlink show an unknow board.  /cfs-file/__key/communityserver-discussions-components-files/4/Log_5F00_file_5F00_nrf52.txt

    The problems after flashing a simple code : 

    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    Failed to read device memories.[error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".

    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [ nRF52] - Failed when checking readback protect status.
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [error] [SeggerBackend] - JLinkARM.dll reported "-1", "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:\nordicsemi\MyApps2\blinky\build\zephyr\zephyr.hex' --chiperase --verify -f NRF52 --snr 1050248226

Children
Related