hci_uart will not flash with VS Studio

I have a new nrf9160dk board that I will be using for a BLE customer application. I am using zephyr/samples/bluetooth/hci_uart SDK V3.2.0 to be loaded into the nRF52840 in the DK board. I can build and compile with VS Studio with no problems. When I try to flash it into the nRF52840 (switch SW10 set to nRF52) it fails. see below. I tried to flash it using the programmed which said it was programmed but it did not run or boot the nRF52840. There is a startup message in the code. any help you can give would be greatly appreciated since this is needed for a customer application.

************************************************************************

Executing task: nRF Connect: Flash: hci_uart/hci_uart (active)

Flashing hci_uart to nRF9160 DK
west flash -d c:\Nordic4\test\hci_uart\build --domain hci_uart --dev-id 960028025 --erase

*-- west flash: rebuilding
[0/5] Performing build step for 'hci_uart'
ninja: no work to do.
[4/5] cmd.exe /C "cd /D C:\Nordic4\test\hci_uart\build\_sysbuild && C:\Nordic\v1.7.0\toolchains\66cdf9b75e\opt\bin\cmake.exe -E true"
-- west flash: using runner nrfutil
-- runners.nrfutil: mass erase requested
-- runners.nrfutil: reset after flashing requested
-- runners.nrfutil: Flashing file: C:\Nordic4\test\hci_uart\build\merged.hex

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:\Nordic\v1.7.0\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:\Nordic4\test\hci_uart\build\hci_uart\zephyr\generated_nrfutil_batch.json' --serial-number 960028025

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

***************************************************************

  • Hi,

    Burt said:
    We know that it is fixed in more recent releases.

    Ok, that's what I wanted to know with my last question.

    Burt said:
    However, the toolchain for SDK v3.2.1 comes packaged with the broken v2.15.2. And modern nRF Connect for VS Code uses the nrfutil-device in the toolchain.

    I asked internally what is the recommended fix for this.

    My guess would be to update manually the bundled nrfutil-device after install the toolchain, but I can see how it would not be scalable.

    If possible, wait until I get answered before making some changes to the toolchain. I'll keep you updated on that matter as soon as I have more information !

    Best regards,

    Simon D-M

Related