nRF5340 DK audio board,power on failed.

Hi Nordic Team,

I got the board yesterday, so I tried to debug on it. it seems no image is downloaded before shipped to me, as no log at all after power on, right?

So, I downloaded image generated from nRF5340_audio project, then power on with log below, it seems NET core is missed, so how can I solve this problem, thanks.

[14:10:28.961] *** Booting Zephyr OS build v3.2.99-ncs1-rc1 ***

[14:10:28.971] HL [00:00:00.258,666] [0m<inf> fw_info: [0;32m

[14:10:28.972] nRF5340 Audio nRF5340 Audio DK cpuapp

[14:10:28.972] NCS base version: 2.2.0-rc1

[14:10:28.982] Cmake run : Tue Nov 29 16:34:25 2022[0m[0m

[14:10:28.982] HL [00:00:00.258,666] [0m<inf> fw_info: ------- DEBUG BUILD -------[0m

[14:10:28.992] HL [00:00:00.258,666] [0m<inf> fw_info: [0;36mHEADSET left device[0m[0m

[14:10:29.000]

[14:10:29.002] HL [00:00:00.269,287] [0m<inf> board_version: [0;32mCompatible board/HW version found: 1.0.0[0m[0m

[14:10:31.512] HL [00:00:02.803,924] [1;31m<err> ble: No response from NET core, check if NET core is programmed[0m

[14:10:31.523] HL [00:00:02.803,955] [1;31m<err> ble: ERR_CHK Err_code: [-5] @ line: 42 [0m

[14:10:31.533] HL [00:00:02.803,955] [1;31m<err> os: r0/a1: 0x00000003 r1/a2: 0x00000002 r2/a3: 0x00000001[0m

[14:10:31.533] HL [00:00:02.803,955] [1;31m<err> os: r3/a4: 0x00060b97 r12/ip: 0x00000010 r14/lr: 0x00060c03[0m

[14:10:31.543] HL [00:00:02.803,985] [1;31m<err> os: xpsr: 0x41000025[0m

[14:10:31.553] HL [00:00:02.803,985] [1;31m<err> os: s[ 0]: 0x00000000 s[ 1]: 0x00000000 s[ 2]: 0x00000000 s[ 3]: 0x00000000[0m

[14:10:31.563] HL [00:00:02.803,985] [1;31m<err> os: s[ 4]: 0x00000000 s[ 5]: 0x00000000 s[ 6]: 0x00000000 s[ 7]: 0x00000000[0m

[14:10:31.573] HL [00:00:02.804,016] [1;31m<err> os: s[ 8]: 0x00000000 s[ 9]: 0x00000000 s[10]: 0x00000000 s[11]: 0x00000000[0m

[14:10:31.582] HL [00:00:02.804,016] [1;31m<err> os: s[12]: 0x00000000 s[13]: 0x00000000 s[14]: 0x00000000 s[15]: 0x00000000[0m

[14:10:31.592] HL [00:00:02.804,016] [1;31m<err> os: fpscr: 0x0003ae5d[0m

[14:10:31.602] HL [00:00:02.804,016] [1;31m<err> os: Faulting instruction address (r15/pc): 0x00008a36[0m

[14:10:31.612] HL [00:00:02.804,046] [1;31m<err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0[0m

[14:10:31.612] HL [00:00:02.804,077] [1;31m<err> os: Fault during interrupt handling

[14:10:31.622] [0m

[14:10:31.622] HL [00:00:02.804,077] [1;31m<err> os: Current thread: 0x20003578 (idle)[0m

[14:10:31.632] HL [00:00:02.804,077] [1;31m<err> error_handler: Caught system error -- reason 3. Entering infinite loop[0m

Parents Reply Children
  • Hi Karl,

    Thanks for your solution, and I sue the buildprog script to build and download image, but I meet another issue like this:

    Memory region Used Size Region Size %age Used
    FLASH: 559260 B 1 MB 53.34%
    RAM: 101012 B 448 KB 22.02%
    IDT_LIST: 0 GB 2 KB 0.00%
    Traceback (most recent call last):
    File "C:\ncs2.2.0\v2.2.0-rc1\nrf\applications\nrf5340_audio\tools\buildprog/ble5-ctr-rpmsg_sign.py", line 25, in <module>
    ZEPHYR_BASE = os.environ['ZEPHYR_BASE']
    File "C:\Python37\lib\os.py", line 678, in __getitem__
    raise KeyError(key) from None
    KeyError: 'ZEPHYR_BASE'
    Traceback (most recent call last):
    File "buildprog.py", line 414, in <module>
    __main()
    File "buildprog.py", line 397, in __main
    __build_module(build_cfg, options)
    File "buildprog.py", line 157, in __build_module
    raise Exception("generate ble5-ctr-rpmsg + b0n error: " + str(ret_val))
    Exception: generate ble5-ctr-rpmsg + b0n error: 1

    C:\ncs2.2.0\v2.2.0-rc1\nrf\applications\nrf5340_audio\tools\buildprog>

    it seems ZEPHYR_BASE error, so how can I solve this issue, thanks.

    Best regards,

    Handom

  • Hello Handom,

    Could you share the entire output from the script using the Insert -> Code option?

    If the zephyr base is not set correctly you are likely executing the script from a terminal that is not sourced correctly.
    The easiest way to prevent this being an issue is to go into the nRF Connect desktop application -> Toolchain Manager, and then click on the dropdown menu for the particular version you are working with (such as v2.1.2 for instance) and select 'open terminal' or 'open command prompt'.

    Another way to get a correctly sourced terminal would be to in Visual Studio Code and type CTRL + SHIFT + P and then search for 'shell' to open an nRF Terminal in VSC.

    Try this, and let me know if this resolves your issues.

    For clarity, could you clarify whether you installed your nRF Connect SDK automatically using the Toolchain Manager, or did you install it manually?

    Best regards,
    Karl

  • Hi Karl,

    This time, the phenomenon is not the same like before.

    C:\ncs2.2.0\v2.2.0-rc1\nrf\applications\nrf5340_audio\tools\buildprog>python buildprog.py -c both -b debug -d both
    +------------+----------+---------+--------------+---------------------+---------------------+
    |    snr     | snr conn |  device | only reboot  | core app programmed | core net programmed |
    +------------+----------+---------+--------------+---------------------+---------------------+
    | 1050173847 |    [32mTrue [0m   | headset | Not selected |     Selected TBD    |     Selected TBD    |
    | 1050179239 |    [32mTrue [0m   | gateway | Not selected |     Selected TBD    |     Selected TBD    |
    | 1050178240 |    [32mTrue [0m   | headset | Not selected |     Selected TBD    |     Selected TBD    |
    +------------+----------+---------+--------------+---------------------+---------------------+
    Invoking build step
    Net core uses precompiled hex
    Run: west build C:\ncs2.2.0\v2.2.0-rc1\nrf\applications\nrf5340_audio -b nrf5340_audio_dk_nrf5340_cpuapp -d C:\ncs2.2.0\v2.2.0-rc1\nrf\applications\nrf5340_audio\build\dev_headset\build_debug -DCONFIG_AUDIO_DEV=1
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio
    -- Using NCS Toolchain 2.2.0-rc1 for building. (C:/ncs2.2.0/toolchains/v2.2.0-rc1/cmake)
    -- Found Python3: C:/ncs2.2.0/toolchains/v2.2.0-rc1/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Cache files will be written to: C:/ncs2.2.0/v2.2.0-rc1/zephyr/.cache
    -- Zephyr version: 3.2.99 (C:/ncs2.2.0/v2.2.0-rc1/zephyr)
    -- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
    -- Board: nrf5340_audio_dk_nrf5340_cpuapp
    -- Found host-tools: zephyr 0.15.1 (C:/ncs2.2.0/toolchains/v2.2.0-rc1/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.15.1 (C:/ncs2.2.0/toolchains/v2.2.0-rc1/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs2.2.0/toolchains/v2.2.0-rc1/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs2.2.0/v2.2.0-rc1/nrf/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio/build/dev_headset/build_debug/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio/build/dev_headset/build_debug/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio/build/dev_headset/build_debug/zephyr/dts.cmake
    
    warning: The choice symbol USB_DRIVER_LOG_LEVEL_ERR (defined at
    subsys/logging/Kconfig.template.log_config:11) was selected (set =y), but no symbol ended up as the
    choice selection. See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_USB_DRIVER_LOG_LEVEL_ERR and/or look up
    USB_DRIVER_LOG_LEVEL_ERR in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.
    
    
    warning: The choice symbol USB_DEVICE_LOG_LEVEL_ERR (defined at
    subsys/logging/Kconfig.template.log_config:11) was selected (set =y), but no symbol ended up as the
    choice selection. See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_USB_DEVICE_LOG_LEVEL_ERR and/or look up
    USB_DEVICE_LOG_LEVEL_ERR in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.
    
    
    warning:Parsing C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio/Kconfig
    Loaded configuration 'C:/ncs2.2.0/v2.2.0-rc1/nrf/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio/prj.conf'
    Merged configuration 'C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio/build/dev_headset/build_debug/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio/build/dev_headset/build_debug/zephyr/.config'
    Kconfig header saved to 'C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio/build/dev_headset/build_debug/zephyr/include/generated/autoconf.h'
     Experimental symbol NRF5340_AUDIO is enabled.
    
    
    warning: Experimental symbol BT_ISO_PERIPHERAL is enabled.
    
    
    warning: Experimental symbol BT_AUDIO is enabled.
    
    
    warning: Experimental symbol BT_AUDIO_UNICAST_SERVER is enabled.
    
    
    warning: Experimental symbol BT_VCS is enabled.
    
    
    warning: Experimental symbol BT_CSIS is enabled.
    
    
    warning: Experimental symbol BT_MCC is enabled.
    
    
    warning: Experimental symbol BT_CAP_ACCEPTOR is enabled.
    
    -- The C compiler identification is GNU 12.1.0
    -- The CXX compiler identification is GNU 12.1.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs2.2.0/toolchains/v2.2.0-rc1/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- libmetal version: 1.2.0 (C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio)
    -- Build type:
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.2.0 (C:/ncs2.2.0/v2.2.0-rc1/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    CMake Warning at C:/ncs2.2.0/v2.2.0-rc1/zephyr/CMakeLists.txt:1833 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio/build/dev_headset/build_debug
    -- west build: building application
    [1/421] Generating include/generated/version.h
    -- Zephyr version: 3.2.99 (C:/ncs2.2.0/v2.2.0-rc1/zephyr), build: v3.2.99-ncs1-rc1
    [411/421] Linking C executable zephyr\zephyr_pre0.elf
    
    [415/421] Linking C executable zephyr\zephyr_pre1.elf
    
    [421/421] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      559084 B         1 MB     53.32%
                 RAM:      101012 B       448 KB     22.02%
            IDT_LIST:          0 GB         2 KB      0.00%
    Run: west build C:\ncs2.2.0\v2.2.0-rc1\nrf\applications\nrf5340_audio -b nrf5340_audio_dk_nrf5340_cpuapp -d C:\ncs2.2.0\v2.2.0-rc1\nrf\applications\nrf5340_audio\build\dev_gateway\build_debug -DCONFIG_AUDIO_DEV=2
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio
    -- Using NCS Toolchain 2.2.0-rc1 for building. (C:/ncs2.2.0/toolchains/v2.2.0-rc1/cmake)
    -- Found Python3: C:/ncs2.2.0/toolchains/v2.2.0-rc1/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Cache files will be written to: C:/ncs2.2.0/v2.2.0-rc1/zephyr/.cache
    -- Zephyr version: 3.2.99 (C:/ncs2.2.0/v2.2.0-rc1/zephyr)
    -- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
    -- Board: nrf5340_audio_dk_nrf5340_cpuapp
    -- Found host-tools: zephyr 0.15.1 (C:/ncs2.2.0/toolchains/v2.2.0-rc1/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.15.1 (C:/ncs2.2.0/toolchains/v2.2.0-rc1/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs2.2.0/toolchains/v2.2.0-rc1/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs2.2.0/v2.2.0-rc1/nrf/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio/build/dev_gateway/build_debug/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio/build/dev_gateway/build_debug/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio/build/dev_gateway/build_debug/zephyr/dts.cmake
    
    warning: Experimental symbol NRF5340_AUDIO is enabled.
    
    
    warning: Experimental symbol BT_ISO_CENTRAL is enabled.
    
    
    warning: Experimental symbol BT_AUDIO is enabled.
    
    
    warning: Experimental symbol BT_AUDIO_UNICAST_CLIENT is enabled.
    
    
    warning: Experimental symbol BT_VCS_CLIENT is enabled.
    
    
    warning: Experimental symbol BT_MCS is enabled.
    
    
    warning: Experimental symbol BT_MPL is enabled.
    
    
    warning: Experimental symbol MCTL is enabled.
    
    Parsing C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio/Kconfig
    Loaded configuration 'C:/ncs2.2.0/v2.2.0-rc1/nrf/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio/prj.conf'
    Merged configuration 'C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio/build/dev_gateway/build_debug/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio/build/dev_gateway/build_debug/zephyr/.config'
    Kconfig header saved to 'C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio/build/dev_gateway/build_debug/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 12.1.0
    -- The CXX compiler identification is GNU 12.1.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs2.2.0/toolchains/v2.2.0-rc1/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- libmetal version: 1.2.0 (C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio)
    -- Build type:
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.2.0 (C:/ncs2.2.0/v2.2.0-rc1/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    CMake Warning at C:/ncs2.2.0/v2.2.0-rc1/zephyr/CMakeLists.txt:1833 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs2.2.0/v2.2.0-rc1/nrf/applications/nrf5340_audio/build/dev_gateway/build_debug
    -- west build: building application
    [1/433] Generating include/generated/version.h
    -- Zephyr version: 3.2.99 (C:/ncs2.2.0/v2.2.0-rc1/zephyr), build: v3.2.99-ncs1-rc1
    [423/433] Linking C executable zephyr\zephyr_pre0.elf
    
    [427/433] Linking C executable zephyr\zephyr_pre1.elf
    
    [433/433] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      579720 B         1 MB     55.29%
                 RAM:      114888 B       448 KB     25.04%
            IDT_LIST:          0 GB         2 KB      0.00%
    build_prog.py finished. Report:
    +------------+----------+---------+--------------+---------------------+---------------------+
    |    snr     | snr conn |  device | only reboot  | core app programmed | core net programmed |
    +------------+----------+---------+--------------+---------------------+---------------------+
    | 1050173847 |   True   | headset | Not selected |     Selected TBD    |     Selected TBD    |
    | 1050179239 |   True   | gateway | Not selected |     Selected TBD    |     Selected TBD    |
    | 1050178240 |   True   | headset | Not selected |     Selected TBD    |     Selected TBD    |
    +------------+----------+---------+--------------+---------------------+---------------------+
    
    C:\ncs2.2.0\v2.2.0-rc1\nrf\applications\nrf5340_audio\tools\buildprog>

    build seems ok, but it seems it doesn't download images to board at all. is my command problem?

    I just want to let the three boards to demo like one gatway device and two headset devices, no matter in Broadcast or Connect way.

    Best regards,

    Handom

  • Hi Carl, 
    I have solved this problem with
    python buildprog.py -c both -b debug -d both -p -f,

    Thanks.


    Best regards,

    Handom

     
Related