Cannot flash my board nrf5340

Hi, I have changed Vdd from 1.8 V to 3.3 V but now I cannot flash anymore my board (nrf5340). This is the output error:

* Executing task: nRF Connect: Flash: AppCore_RHS_SD_UI_v1B/build (active)

Flashing build to 1050081286

-- west flash: rebuilding
ninja: no work to do.
-- west flash: using runner nrfjprog
-- runners.nrfjprog: reset after flashing requested
-- runners.nrfjprog: Flashing file: c:\nordic\myapps\AppCore_RHS_SD_UI_v1B\build\zephyr\zephyr.hex
[error] [ Worker] - An unknown error.
[error] [ Client] - Encountered error -102: Command select_coprocessor executed for 137 milliseconds with result -102
ERROR: Failed when selecting coprocessor APPLICATION
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:\nordic\myapps\AppCore_RHS_SD_UI_v1B\build\zephyr\zephyr.hex' --sectorerase --verify -f NRF53 --coprocessor CP_APPLICATION --snr 1050081286

* The terminal process terminated with exit code: 33.
* Terminal will be reused by tasks, press any key to close it.

I have tried to erase the board but I get this message: Error erasing device. See the Output tab for more details.

What can I do?

Thanks

Parents
  • Try these things

    `nrfjprog --eraseall`

    `west flash --recover`

    Paste outputs 

  • These are the outputs I got in both cases.

    PS C:\nordic\myapps\AppCore_RHS_SD_UI_v1B> nrfjprog --eraseall
    [error] [ Client] - Encountered error -102: Command connect_to_emu_with_snr executed for 557 milliseconds with result -102
    ERROR: Unable to connect to a debugger.
    [error] [ Worker] - 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.

    PS C:\nordic\myapps\AppCore_RHS_SD_UI_v1B\build> west flash --recover
    -- west flash: rebuilding
    ninja: no work to do.
    -- west flash: using runner nrfjprog
    -- runners.nrfjprog: reset after flashing requested
    Using board 1050081286
    -- runners.nrfjprog: Recovering and erasing flash memory for both the network and application cores.
    [error] [ Client] - Encountered error -102: Command enable_coprocessor executed for 168 milliseconds with result -102
    Failed to enable coprocessor with unknown error.
    [error] [ Worker] - 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 --recover -f NRF53 --coprocessor CP_NETWORK --snr 1050081286

  • Hi, I didn't change anything else, just the power supply. When I try to return to 1.8 V I get another error. I don't have any other board. This is the output when I use "nrfutil": 

    PS C:\nordic\myapps\AppCore_RHS_SD_UI_v1B> .\nrfutil device recover --x-family nrf53
    >>
    x Failed to recover 1050081286, Device error: Failed to write DebugPort register 0x08: Unknown Error in J-Link DLL (error code =-1)
    Error: One or more recover tasks failed:
    * 1050081286: Device error: Failed to write DebugPort register 0x08: Unknown Error in J-Link DLL (error code =-1) (Generic)

    PS C:\nordic\myapps\AppCore_RHS_SD_UI_v1B> .\nrfutil device erase --all --x-family nrf53
    >>
    x Failed to erase 1050081286, Device error: Failed to write DebugPort register 0x08: Unknown Error in J-Link DLL (error code =-1)
    Error: One or more erase tasks failed:
    * 1050081286: Device error: Failed to write DebugPort register 0x08: Unknown Error in J-Link DLL (error code =-1) (Generic)

  • Hi,

    Marika Di Martino said:
    When I try to return to 1.8 V I get another error.

    Can you show this error?

    Marika Di Martino said:
    his is the output when I use "nrfutil"

    Is this output from "nrfutil device" when you used 3.3 V or 1.8 V? Can you show the output also when using other voltage?

    Best regards,
    Dejan

  • The output is for 3.3 V. I cannot return to 1.8 V because I get this error: 

    PS C:\nordic\myapps\AppCore_RHS_SD_UI_v1B> nrfjprog -f nrf53 --memwr 0x00FF8010 --val 3
    [error] [ Worker] - An unknown error.
    [error] [ Client] - Encountered error -102: Command read_device_info executed for 141 milliseconds with result -102
    [error] [ Client] - Encountered error -102: Command read_memory_descriptors executed for 27 milliseconds with result -102
    Failed to read device memories.
    [error] [ Worker] - 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.
    PS C:\nordic\myapps\AppCore_RHS_SD_UI_v1B>

  • Hi,

    You sent logs where you used nrfutil for recoovering and erasing only in case of 3.3 V. Can you show the logs of "nrfutil device" when you use 1.8 V instead?

    Best regards,
    Dejan

  • Hi, I cannot return to 1.8 V because I get some errors. Before setting 3.3 V (so when I was working with 1.8V), everything was working.

Reply Children
Related