-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[K32W0] SDK 2.6.10 fixes & features #25342
Merged
bzbarsky-apple
merged 24 commits into
project-chip:master
from
NXP:upstream-k32w0-2.6.10
Mar 7, 2023
Merged
[K32W0] SDK 2.6.10 fixes & features #25342
bzbarsky-apple
merged 24 commits into
project-chip:master
from
NXP:upstream-k32w0-2.6.10
Mar 7, 2023
Conversation
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
marius-alex-tache
force-pushed
the
upstream-k32w0-2.6.10
branch
from
February 27, 2023 15:14
1879069
to
55da744
Compare
PR #25342: Size comparison from 753fa1c to 625c358 Increases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
marius-alex-tache
force-pushed
the
upstream-k32w0-2.6.10
branch
from
February 27, 2023 20:07
625c358
to
d76760c
Compare
PR #25342: Size comparison from af511d7 to d76760c Decreases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
marius-alex-tache
force-pushed
the
upstream-k32w0-2.6.10
branch
from
February 28, 2023 07:29
d76760c
to
f65b65a
Compare
pullapprove
bot
requested review from
amitnj,
andy31415,
anush-apple,
arkq,
Byungjoo-Lee,
bzbarsky-apple,
carol-apple,
chrisdecenzo,
chshu,
chulspro,
Damian-Nordic,
dhrishi,
electrocucaracha,
franck-apple,
gjc13,
harimau-qirex,
harsha-rajendran,
hawk248,
jelderton,
jepenven-silabs and
jmartinez-silabs
February 28, 2023 07:40
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>
Signed-off-by: Marius Tache <marius.tache@nxp.com>
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>
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>
Signed-off-by: Marius Tache <marius.tache@nxp.com>
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>
PartNumber, ProductLabel and ProductURL getter APIs were moved under DeviceInstanceInfoProvider interface. Signed-off-by: Marius Tache <marius.tache@nxp.com>
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>
Signed-off-by: Marius Tache <marius.tache@nxp.com>
Signed-off-by: Marius Tache <marius.tache@nxp.com>
Signed-off-by: Marius Tache <marius.tache@nxp.com>
Signed-off-by: Marius Tache <marius.tache@nxp.com>
Signed-off-by: Marius Tache <marius.tache@nxp.com>
marius-alex-tache
force-pushed
the
upstream-k32w0-2.6.10
branch
from
March 7, 2023 10:55
535161c
to
5a2fd89
Compare
PR #25342: Size comparison from fc0e4a2 to 5a2fd89 Decreases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
jmartinez-silabs
approved these changes
Mar 7, 2023
lecndav
pushed a commit
to lecndav/connectedhomeip
that referenced
this pull request
Mar 22, 2023
* [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>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes to support latest K32W0 SDK release:
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 gnarg
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 neededfor TLV processor selection.
gResetSystemReset_d=1
will enable full reset of the IC by callingRESET_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
Signed-off-by: Ethan Tan ethan.tan@nxp.com