How to configure FOAT function for LE Audio project

I am developing the LE Audio feature for nrf5340. My project is based on nrf5340_audio demo, base on NCS 2.7.0. I am not very familiar with sysbuild. In NCS2.4.0, I am able to configure FOTA functionality correctly through Python scripts. But on 2.7.0, this seems to be unavailable, and the user guide does not explain the correct configuration method. Can anyone provide some help?

Parents
  • Hello,

    My apologies, the documentation for FOTA configuration for the nRF5340 Audio application is not updated. After nRF Connect SDK v2.6.0, the buildprog Python script does not support the FOTA related flags. Please follow the "Building from command line" instructions in the application documentation, and also refer to the FOTA updates for nRF5340 DK documentation. Also note that the external flash shield is still required when using FOTA DFU on the nRF5340 Audio applications.

    Best regards,

    Maria

  • During the waiting period for a response, I read the link you mentioned and made some attempts.
    Firstly, I would like to clarify that I did not use nrf5340_audio_dk, but our own hardware.
    There is no 32K crystal oscillator on the hardware, and it have external flash. Here is the schematic diagram of our flash and my configuration in DTS.

    I believe there is no problem with this configuration and hardware, as I configured the hardware in the same way in NCS2.4.0 and successfully completed the external flash upgrade function.
    Returning to 2.7.0, first I use this command to compile:

    west build -d build/dfu -b nrf5340_audio_dk/nrf5340/cpuapp --sysbuild -- -DFILE_SUFFIX=fota


    In order to be compatible with my hardware, I have added the following two configurations in prj_fota.conf

    CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=n
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH=y


    Afterwards, I found that there was not enough space in the protocol stack. Following a suggestion in a post, I turned off :SB_CONFIG_SECURE_BOOT_NETCORE, and the compilation passed.
    When I burn the program using the following command:

    nrfjprog -- program build/dfu/merge. hex -- coprocessor CP_APPLICATION -- chiperase - r
    I received this error in the log:


    Failed to open flash area ID 1 (image 0 slot 1): -19, cannot continue


    This error is only received during software reset. If I reset by power off, there will be no such error.
    It seems that BOOT did not successfully read the flash, but I carefully checked the DTS file generated in the compilation path(build/dfu/mcuboot/zephyr/zephyer.dts) and it seems that there are no errors. How should I check this issue.

Reply
  • During the waiting period for a response, I read the link you mentioned and made some attempts.
    Firstly, I would like to clarify that I did not use nrf5340_audio_dk, but our own hardware.
    There is no 32K crystal oscillator on the hardware, and it have external flash. Here is the schematic diagram of our flash and my configuration in DTS.

    I believe there is no problem with this configuration and hardware, as I configured the hardware in the same way in NCS2.4.0 and successfully completed the external flash upgrade function.
    Returning to 2.7.0, first I use this command to compile:

    west build -d build/dfu -b nrf5340_audio_dk/nrf5340/cpuapp --sysbuild -- -DFILE_SUFFIX=fota


    In order to be compatible with my hardware, I have added the following two configurations in prj_fota.conf

    CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=n
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_SYNTH=y


    Afterwards, I found that there was not enough space in the protocol stack. Following a suggestion in a post, I turned off :SB_CONFIG_SECURE_BOOT_NETCORE, and the compilation passed.
    When I burn the program using the following command:

    nrfjprog -- program build/dfu/merge. hex -- coprocessor CP_APPLICATION -- chiperase - r
    I received this error in the log:


    Failed to open flash area ID 1 (image 0 slot 1): -19, cannot continue


    This error is only received during software reset. If I reset by power off, there will be no such error.
    It seems that BOOT did not successfully read the flash, but I carefully checked the DTS file generated in the compilation path(build/dfu/mcuboot/zephyr/zephyer.dts) and it seems that there are no errors. How should I check this issue.

Children
No Data
Related