Hi
I have an application, based on nrf/samples/bluetooth/peripheral_uart.
Using VS Code I can build the app, and flash it to my nRF5340 DK board ((PCA10095 - 2.0.0 - 2022.4), and it runs.
However, if I use the nRF Connect for Desktop's Programmer to flash the build\zephyr\merged.hex file, the application does not successfully start.
....................................
VS Code setup:
Version: 1.87.0 (user setup) Commit: 019f4d1419fbc8219a181fab7892ebccf7ee29a2 Date: 2024-02-27T23:41:44.469Z Electron: 27.3.2 ElectronBuildId: 26836302 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Windows_NT x64 10.0.19045 nRF Connect for VS Code: v2024.2.214....................................
Application, based on nrf/samples/bluetooth/peripheral_uart
Build Configuration: nrf5340dk_nrf5340_cpuapp_ns
....................................
Programmer setup:
nRF Connect for Desktop v4.4.0 Programmer v4.2.0
Steps taken:
Open the Programmer
Auto read memory: On Auto reset: On Enable MCUboot: Off
Select Device: nRF5340 DK
Clear Files
Add file: merged.hex
Erase & write
**************************
Serial output when I use VS Code (successfully)
Starting Nordic UART service example
*** Booting Zephyr OS build v3.3.99-ncs1-1 ***
[00:00:00.471,099] <inf> fs_nvs: 2 Sectors of 4096 bytes
[00:00:00.471,099] <inf> fs_nvs: alloc wra: 0, fe8
[00:00:00.471,130] <inf> fs_nvs: data wra: 0, 0
[00:00:00.494,628] <inf> bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)
[00:00:00.494,689] <inf> bt_hci_core: HW Variant: nRF53x (0x0003)
[00:00:00.494,720] <inf> bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 224.11902 Build 2231721665
[00:00:00.496,032] <inf> bt_hci_core: No ID address. App must call settings_load()
[00:00:00.497,406] <inf> bt_hci_core: Identity: EF:BF:5A:B8:62:7F (random)
[00:00:00.497,436] <inf> bt_hci_core: HCI: version 5.4 (0x0d) revision 0x2077, manufacturer 0x0059
[00:00:00.497,497] <inf> bt_hci_core: LMP: version 5.4 (0x0d) subver 0x2077
:
:
Serial output when I use Programmer (unsuccessfully)
Starting Nordic UART service example *** Booting Zephyr OS build v3.3.99-ncs1-1 *** [00:00:00.316,406] <inf> fs_nvs: 2 Sectors of 4096 bytes [00:00:00.316,467] <inf> fs_nvs: alloc wra: 0, fe8 [00:00:00.316,497] <inf> fs_nvs: data wra: 0, 0 [00:00:00.317,840] <inf> peripheral_uart: led_button_thread - start [00:00:01.317,901] <err> bt_hci_driver: Endpoint binding failed with -11 [00:00:01.317,932] <err> bt_hci_core: HCI driver open failed (-11)
This is the same board that I have a problem flahsing via VS Code every 2nd tiume, and I have to open a command window at:
C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin>
and run this command:
nrfjprog --recover
I tried doing this before flashing with the Programmer, but it still failed.