-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[K32W0] SDK 2.6.10 fixes & features (#25342)
* [K32W0] Enable factory data onboarding print Signed-off-by: Marius Tache <marius.tache@nxp.com> * [K32W0] Implement OTA custom payload processing OTAImageProcessorImpl has become more customizable through delegating block processing to pre-registered OTATlvProcessor instances. New OTA image format: | OTA image header | TLV1 | ... | TLVn | The new format can be generated using NXP's custom wrapper over the standard tool: `scripts/tools/nxp/factory_data_generator/ota_image_tool.py A customer can opt to enable the default processors by setting the gn arg chip_enable_ota_default_processors=1. Thus, the application, SSBL and factory data processors (if factory data enabled) will be registered. Note: This is not backwards compatible because of the TLV metadata needed for TLV processor selection. Signed-off-by: Marius Tache <marius.tache@nxp.com> * [K32W0] Make OTAImageProcessorImpl generic Moved default OTA image processor implementation in a common K32W folder. Platforms should define two hooks: * OtaHookInit - for K32W0, it is defined in OTAHooks.cpp as a WEAK symbol. * OtaHookReset - resets the board after taking the corresponding actions. Other than that, the implementation is generic. The actual OTA processing is delegated to the registered OTA TLV processors. Signed-off-by: Marius Tache <marius.tache@nxp.com> * [K32W0] Removed write from restore Signed-off-by: Marius Tache <marius.tache@nxp.com> * disable high power config for k32w041am platform by default * [K32W0] Remove logging assert in LP The user can opt to enable the logging in the low power build, but at their own risk, since it could break LP timings/functionality. The last statement is based on the initial introduction of the assert. Signed-off-by: Marius Tache <marius.tache@nxp.com> * [K32W0] Use full IC reset Setting gResetSystemReset_d to 1 will enable full reset of the IC by calling RESET_SystemReset. Otherwise, RESET_ArmReset will be called and the core will do a reboot while maintaining the RAM on, enabling exchange of information across reset. Signed-off-by: Marius Tache <marius.tache@nxp.com> * [K32W0] Make ota_image_tool.py wrapper executable Signed-off-by: Marius Tache <marius.tache@nxp.com> * [K32W0] Add bss_discard section Unretainable data should be moved to a special section, such that it's not included in the binary. This was observed in the PDM library with external flash support. Signed-off-by: Marius Tache <marius.tache@nxp.com> * [K32W0] Add support for additional factory data fields PartNumber, ProductLabel and ProductURL getter APIs were moved under DeviceInstanceInfoProvider interface. Signed-off-by: Marius Tache <marius.tache@nxp.com> * [K32W0] Add recovery mechanism for factory data If a power loss occurs during factory data update through OTA, the board might be in a state in which it has erased factory data section, causing the app task to fail at initialization. During initialization, the factory data provider should check if a certain predefined PDM id exists. If it does, then most likely the internal flash section for factory data is empty, so a restore from external flash must be done. Signed-off-by: Marius Tache <marius.tache@nxp.com> * [K32W0] public RamStorage.h and RamStorageKey.h two header files * [K32W0] Fix gn check for OTAImageProcessorImpl Signed-off-by: Marius Tache <marius.tache@nxp.com> * [K32W0] Update SDK link in README files * [K32W0] Update TLV header Signed-off-by: Marius Tache <marius.tache@nxp.com> * [K32W0] Mark OTA readme as orphan Signed-off-by: Marius Tache <marius.tache@nxp.com> * Restyled by clang-format * Restyled by gn * Restyled by prettier-markdown * Restyled by autopep8 * Restyled by isort * [K32W0] Fix readme misspells Signed-off-by: Marius Tache <marius.tache@nxp.com> * [K32W0] Fix code-lints errors Signed-off-by: Marius Tache <marius.tache@nxp.com> * Restyled by prettier-markdown --------- Signed-off-by: Marius Tache <marius.tache@nxp.com> Co-authored-by: tanyue518 <ethan.tan@nxp.com> Co-authored-by: Restyled.io <commits@restyled.io>
- Loading branch information
Showing
26 changed files
with
1,764 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.