Hi Nordic team
My DK was PCA10143 0.7.2 (NRF7002 DK board). nrf command line is 10.19.0.
After building ncs 2.2.0 light bulb sample and multiprotocol_rpms, I tried two method to flash NRF5340.
1. Batch file.
- Start batchfile-program to flash network core. Then, start batchfile-program 5340 to flash application core.
@echo off :eof echo. echo Program hex file to NRF5340 Network core. echo. SET NETHEX=.\build\zephyr\zephyr.hex nrfjprog -f NRF53 --recover --coprocessor CP_NETWORK nrfjprog -f NRF53 --coprocessor CP_NETWORK --program %NETHEX% --chiperase --verify nrfjprog -f NRF53 --pinreset echo. echo Programming process is finished. echo [IF ERROR] echo 1. Check if fill correct serial number of your SEGGER programmer !!! echo. pause & exit
@echo off :eof echo. echo echo. SET APPHEX=.\build_1\zephyr\merged.hex nrfjprog -f NRF53 --recover nrfjprog -f NRF53 --program %APPHEX% --verify nrfjprog -f NRF53 -r echo. echo Programming process is finished. echo [IF ERROR] echo 1. Check if fill correct serial number of your SEGGER programmer !!! echo. pause & exit
As flashing application core, it showed below error log at command line. No log out. What's wrong?
I used these batch files to flash NRF5340 DK without these error.

2. Use "flash" at VS code
In advance, erase all at Programmer apps.
Then, flash light bulb sample to DK. It flashed successfully.
There are two COM ports. One port logged FATAL ERROR after reboot the DK.
[m [1;32muart:~$ [mE: wifi_nrf_hal_fw_chk_boot: Boot_sig check failed for RPU(0), Expected: 0x5A5A5A5A, Actual: 0x17 E: wifi_nrf_fmac_fw_load: LMAC ROM boot check failed E: wifi_nrf_fmac_dev_add_zep: wifi_nrf_fmac_fw_load failed E: wifi_nrf_drv_main_zep: wifi_nrf_fmac_dev_add_zep failed E: wifi_nrf_if_init: vif_ctx_zep is NULL ASSERTION FAIL [net_if_get_link_addr(iface)->addr != ((void *)0)] @ WEST_TOPDIR/zephyr/subsys/net/ip/net_if.c:4185 E: r0/a1: 0x00000004 r1/a2: 0x00001059 r2/a3: 0x20008878 E: r3/a4: 0x2000e398 r12/ip: 0x00000000 r14/lr: 0x0002de6b E: xpsr: 0x69100000 E: s[ 0]: 0x00000000 s[ 1]: 0x00000000 s[ 2]: 0x00000000 s[ 3]: 0x00000000 E: s[ 4]: 0x00000000 s[ 5]: 0x00000000 s[ 6]: 0x00000000 s[ 7]: 0x00000000 E: s[ 8]: 0x00000000 s[ 9]: 0x00000000 s[10]: 0x00000000 s[11]: 0x00000000 E: s[12]: 0x00000000 s[13]: 0x00000000 s[14]: 0x00000000 s[15]: 0x00000000 E: fpscr: 0x00000000 E: Faulting instruction address (r15/pc): 0x0008e2f6 E: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0 E: Current thread: 0x20008878 (main) E: Halting system
Jeff
