Hi All,

 

I'm considering a scenario where users will be able to manually update device firmware from USB pen drive.

For this reason, my Main App does not need a secondary copy kept in case update failed. If update fails, user can simply make another attempt a using different media or a different image.

However, what needs to be protected against failed update is the Local Loader (LL) – updatable app reading files from pen drive, which updates the Main App.

As new versions get developed and functionality is added (e.g. NTFS support), Local Loader (LL) may grow in size, hence the latest version may be clearly larger than the previous one.

The same time I would like to be able to use all the remaining flash space for the Main App.

All the above dictates the flash layout depictured below. LL1 size may be clearly different than LL2, Local Loader update may result in the Main App update, but that is OK.

 

Does TF-M support the described scenario? Flexibility is the key.

Can primary and secondary Local Loader (LL) images have clearly different sizes?

 

Kind regards,

Tomasz Jastrzębski

 

https://drive.google.com/file/d/1n4Ihqk8S-04FlluvlveQflb5nYsXBluA/view?usp=sharing