NRF5340 Audio net core app update

Hi,

I developing an Hearing aid accessory with nrf5340 audio and STM32.

I do not have external flash so I need to use the nrf5340 internal flash.

I'm using the 2.5.0 SDK and I succeeded to update the application image with the mcumgr over the USB CDC ACM connected to the nrf5340.

Is it possible to update the network image without external flash and by the serial port?

If yes, Do you have any example for it?

Parents
  • Hi, 

    Yes, it is possible to update the network core without external flash in single-image DFU. 

    To change the upload for the network core, use

    mcumgr --conntype=serial --connstring="dev=/dev/ttyACM3,baud=115200" image upload build/zephyr/net_core_app_update.bin
    

    Regards,
    Amanda H.

  • Thanks for the fast reply.

    I did it but the nrf5340 was not booted after upload the network and restart the device (the RTT log was empty)

    Could you please check if the following prj.conf is correct?

    CONFIG_NCS_SAMPLE_EMPTY_NET_CORE_CHILD_IMAGE=y
    CONFIG_BOOTLOADER_MCUBOOT=y
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
    CONFIG_THREAD_NAME=y
    CONFIG_ZCBOR=y
    CONFIG_USB_DEVICE_STACK=y
    CONFIG_USB_DEVICE_PRODUCT="Nuance CDC ACM"
    CONFIG_USB_DEVICE_PID=0x530A
    CONFIG_USB_DRIVER_LOG_LEVEL_ERR=y
    CONFIG_USB_DEVICE_LOG_LEVEL_ERR=y
    CONFIG_UART_LINE_CTRL=y
    CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
    CONFIG_B0N_MINIMAL=y
    CONFIG_AUDIO_DFU=1
    CONFIG_MCUMGR=y
    CONFIG_MCUMGR_GRP_OS=y
    CONFIG_MCUMGR_GRP_OS_TASKSTAT=y
    CONFIG_MCUMGR_GRP_STAT=y
    CONFIG_MCUMGR_GRP_IMG=y
    CONFIG_MCUMGR_TRANSPORT_NETBUF_SIZE=1024
    CONFIG_IMG_MANAGER=y
    CONFIG_FLASH=y
    CONFIG_FLASH_MAP=y
    CONFIG_STREAM_FLASH=y

     

    # nRF5340 Audio
    CONFIG_NRF5340_AUDIO=y
    CONFIG_AUDIO_DEV=2
    CONFIG_BT_DEVICE_NAME_DYNAMIC=y
    #CONFIG_BT_DEVICE_NAME="NRF5340_AUDIO"
    CONFIG_AUDIO_SOURCE_I2S=y
    CONFIG_AUDIO_SAMPLE_RATE_16000_HZ=y
    CONFIG_BT_CSIP_SET_COORDINATOR=y
    CONFIG_BT_BONDABLE=y
    CONFIG_BT_BAP_UNICAST_CLIENT_LOG_LEVEL_DBG=n
    CONFIG_BT_L2CAP_TX_MTU=300
    CONFIG_BT_AUDIO_BITRATE_UNICAST_SINK=32000
    CONFIG_BT_AUDIO_RETRANSMITS=3
    CONFIG_BT_AUDIO_MAX_TRANSPORT_LATENCY_MS=10
    CONFIG_WDT_CTLR=n
    # General
    CONFIG_DEBUG=n
    CONFIG_ASSERT=n
    CONFIG_STACK_USAGE=n
    CONFIG_THREAD_MONITOR=n
    CONFIG_PRINTK=n
    CONFIG_BOOT_BANNER=n

     

    CONFIG_SHELL=y
    CONFIG_KERNEL_SHELL=y
    CONFIG_USE_SEGGER_RTT=y
    ## Disable logs on RTT
    CONFIG_SHELL_RTT_INIT_LOG_LEVEL_NONE=n
    CONFIG_SHELL_BACKEND_RTT=n
    CONFIG_SHELL_BACKEND_SERIAL=n

    # Uart driver
    CONFIG_SERIAL=y
    CONFIG_UART_INTERRUPT_DRIVEN=y
    CONFIG_CONSOLE=y
    CONFIG_RTT_CONSOLE=n
    CONFIG_UART_CONSOLE=y
  • Yes the base of my app is the nRF5340 Audio application and I checked the mcuboot.conf and it had config_pcd_app=y

    After I upload the network image and set it to pending, I get the following:

    Images:
    image=0 slot=0
    version: 1.0.0
    bootable: true
    flags: active confirmed
    hash: 072aa80e3c92d3ca08276940a2d579e1e0eef37bf3c74ef3101f88afe3d4c12a
    image=0 slot=1
    version: 1.0.0
    bootable: true
    flags: pending
    hash: 7addd470b9de927f779af054a3df995ce2e297778605ff346c974696a1ebfa84
    Split status: N/A (0)

    Is it OK? Should the network and app images be in different slot?

Reply
  • Yes the base of my app is the nRF5340 Audio application and I checked the mcuboot.conf and it had config_pcd_app=y

    After I upload the network image and set it to pending, I get the following:

    Images:
    image=0 slot=0
    version: 1.0.0
    bootable: true
    flags: active confirmed
    hash: 072aa80e3c92d3ca08276940a2d579e1e0eef37bf3c74ef3101f88afe3d4c12a
    image=0 slot=1
    version: 1.0.0
    bootable: true
    flags: pending
    hash: 7addd470b9de927f779af054a3df995ce2e297778605ff346c974696a1ebfa84
    Split status: N/A (0)

    Is it OK? Should the network and app images be in different slot?

Children
No Data
Related