I have two problems. This is the first problem.
[Environ]
nRF Connect SDK v3.2.1
nRF9151 (Custom board)
VSCode (1.109.4)
The first problem is that debugging doesn't start. (writing to the Flash ROM failed.)
As a result, debugging(ACTIONS/Debug....) does not start on VSCode. The following message is displayed in the console:
thread 'main' panicked at C:\Users\VssAdministrator\.cargo\git\checkouts\nrf-device-lib-cf1a63c495be42f5\936ac5a\serialport-lister\src\lib.rs:49:60: called `Option::unwrap()` on a `None` value note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Error: Subprocess C:\ncs\toolchains\66cdf9b75e\nrfutil\home\bin\nrfutil-device.exe failed with unexpected exit code Some(101) FATAL ERROR: command exited with status 1: nrfutil --json device x-execute-batch --batch-path 'C:\RfProj\1nce9151\1nce9151\build\1nce9151\zephyr\generated_nrfutil_batch.json' --serial-number 822007689
ACTION/Flash will also result in a similar error.
The current prj.conf settings(excerpt) are as follows:
(Sometimes changing this would make it work.)
# Log output CONFIG_LOG=y CONFIG_CONSOLE=y #CONFIG_LOG_MODE_IMMEDIATE=y CONFIG_RTT_CONSOLE=y #CONFIG_UART_CONSOLE=n CONFIG_USE_SEGGER_RTT=y # SERIAL CONFIG_SERIAL=y #CONFIG_UART_ASYNC_API=y CONFIG_UART_INTERRUPT_DRIVEN=y
Writing with Programmer(nRF Connect for Desktop) is sucessfull, and debugging with Attach(ACTIONS/Debug) is possible.
What's the problem?
Is there anything else I need to do?
Best regards.