Modularisation of a firmware

Hello

Our 52840-based device has a functionality of playing one of 10 pre-recorded phrases via I2S interface. We'd like to be able to update the wording or load a different language via OTA, separately from the firmware, and the other way around - update firmware without touching the audio data. The device has external flash and MCUBoot. 

Please advise, 

Thanks, 
Dmitry

Parents
  • Hello,

    No, keep the partitions separate with pm_static.yml, then send a firmware image when you want to update the code, and send just the audio data when you want to change phrases,no need to reflash everything together.  For firmware OTA, you upload the signed application image (app_update.bin) via MCUboot as usual. For your audio data, you send a separate file to the dedicated audio partition.

    Kind Regards,

    Abhijith

Reply
  • Hello,

    No, keep the partitions separate with pm_static.yml, then send a firmware image when you want to update the code, and send just the audio data when you want to change phrases,no need to reflash everything together.  For firmware OTA, you upload the signed application image (app_update.bin) via MCUboot as usual. For your audio data, you send a separate file to the dedicated audio partition.

    Kind Regards,

    Abhijith

Children
  • Hi Abhijith, 

    Thanks again for following on this with me. 

    Could you emphasise a bit on "sending a separate file to the dedicated audio partition" process?

    What is the expected format of this file, and how the OTA framework shall be "told" that incoming binary is not a firmware, but shall be loaded into the "audio" partition? Shall I code this, or it can be achieved with some metadata?

    Could you refer me to some example?

    Thanks,
    Dmitry

Related