[MATTER] ZEPHYR FATAL error as programming nRF7002-DK

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.



uart:~$ E: 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

  • Hello,

    I don't think we need to look too hard into the logs from the application if we are not able to flash it without the verification failing, so let us look into that first. 

    Can you please try to add --sectorerase after the command where you program the cores on the nrf53? E.g.

    nrfjprog -f NRF53 --program %APPHEX% --verify --sectorerase

    If that doesn't work, can you please upload the .hex files that you are trying to program, so that I can try and have a look?

    Best regards,

    Edvin

  • Hi Edvin

    Thanks for your speedy reply.

    1. After adding "sectorerase", the verification was ok with error message.

    2. Now, log "FATAL ERROR" still exists. By batch files or by flash at VS code, got the same result.

    3. At VS code, below was the configuration for ncs2.2.0  multiprotocol_rpms and ncs2.2.0 light bulb.

    4. Attached my hex files, There are two batch files inside. Do batch net first and then batch app.

    hexfiles_7002_lightbulb.rar

    5. Another question. As using flash light bulb sample at VS code, did multiprotocol_rpms hex be flashed at network core automatically?

    Jeff

  • Jeffery said:
    1. After adding "sectorerase", the verification was ok with error message.

    I am not sure what you mean, but the "error message" that is printed now is just a comment that you echoed in your batch script. 

    Jeffery said:
    2. Now, log "FATAL ERROR" still exists. By batch files or by flash at VS code, got the same result.

    I am not sure you are flashing the correct image to the network core. I would suggest you use the "west flash -d build" command.

    To be honest, I don't remember all the different files that go everywhere, but the network core image is found in build\hci_rpmsg\zephyr, not in the build\zephyr folder. "west flash" will do this autimatically (or if you flash from VS Code).

    So to the error message. I don't think the Wifi samples works in the v2.2.0 in NCS. I get the same error as you do. If you want to, you can try to use the main branch (which at some points in time may work, while other times can break), or you need to wait for the next stable release of ncs.

    Best regards,

    Edvin

  • Hi Edvin

    I preferred to waiting next stable release. Would you know the schedule for next release?

    Thanks

    Jeff

  • Hello Jeff,

    Sorry. I do not have that timeline at hand (and even if I did, this is not something we can discuss here on DevZone). For roadmap questions, please contact our Regional Sales Manager for your area. If you want their contact information, please send me a personal message here on DevZone, where you link to this ticket, and specify your region (country). 

    Best regards,

    Edvin

Related