Boards getting bricked

Hello,

I am trying to develop using a custom pcb. And after some time my boards stop connecting to the debugger. How do I unbrick the boards? I have read multiple solutions like connecting pin 18 to vdd which did not work. When I run nrfjrog --reset I get the following error message: 

[error] [ Worker] - An unknown error.
[error] [ Client] - Encountered error -102: Command connect_to_emu_with_snr executed for 221 milliseconds with result -102
ERROR: Unable to connect to a debugger.
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.
PS C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin>

I know it has something to do with reset pins or something, so I will be defining the reset pin in my boardfile, but does that fix the issue or is there a better fix.

Kind regards,

Niels Redegeld

Parents Reply
  • Niels Redegeld said:
    PS C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin> nrfjprog --recover --log
    WARNING: Logging is unavailable. nrfjprog.exe does not have write
    WARNING: permission for the log file
    ERROR: Unable to connect to a debugger.
    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.
    PS C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin>

    Could you try running "nrfjprog --recover --log" from an admin window to see if this will let you provide some logs?

    Niels Redegeld said:
    The DC/DC was set automatically to yes in the config file, so I turned it off: CONFIG_BOARD_ENABLE_DCDC=n
    The periods I could flash the chip was about a week to two weeks per chip,

    And in these periods the DC/DC was enabled?

Children
  • If I run nrfjprog --recover --log I get the following error:

    PS C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin> nrfjprog --recover --log
    WARNING: Logging is unavailable. nrfjprog.exe does not have write
    WARNING: permission for the log file
    ERROR: Unable to connect to a debugger.
    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.
    PS C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin>

    I can't upload to my boards so currently the DC/DC is not Disabled 

  • Niels Redegeld said:

    If I run nrfjprog --recover --log I get the following error:

    PS C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin> nrfjprog --recover --log
    WARNING: Logging is unavailable. nrfjprog.exe does not have write
    WARNING: permission for the log file
    ERROR: Unable to connect to a debugger.
    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.
    PS C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin>

    So I didn't make a difference running it from an admin window?

    Niels Redegeld said:
    I can't upload to my boards so currently the DC/DC is not Disabled

    What I tried to ask was if it was enabled when you were able to flash them?

  • No it didn´t make any difference,

    I don't think it was, cause for the custom board file it gave an error when i setted dc/dc to n in the config file.

  • I ended up getting a log file after a while, Ill add it below.8267.log.log

  • Hi, Niels.

    Thank you for the log files.

    It appears like you are using a DK as a debugger now. Do you power your custom board from the DK or externally? Could you try to power your custom board from the DK, as described here, if you haven't yet?

    You can also try to run "nrfjprog --recover --clockspeed 10" to lower the frequency of SWDCLK in case there is an issue with long cables, etc.

    Lastly, could you please upload the build/zephyr/.config folder? Then I'll be able to confirm if the DC/DC is enabled or not.

Related