Skip to content

Conversation

andrei-menzopol
Copy link
Contributor

Summary

This PR updates the platform specific nxp/common and nxp/mcxw71 ConfigurationManagerImpl.cpp files.

  • common: Update DetermineBootReason signature, parameter type
  • mcxw71: Move/Update GetBootReason to DetermineBootReason
  • mcxw71: Add nxp/common missing functions
  • mcxw71: Add CONFIG_CHIP_NXP_PLATFORM_MCXW71 macro
  • mcxw72: Switch to mcxw ConfigurationManagerImpl
  • Align nxp/common and nxp/mcxw71 ConfigurationManagerImpl.cpp files
  • Update copyright, description

Testing

Compilation and functional tests have been conducted internally (e.g commissioning, factory reset)

@andrei-menzopol andrei-menzopol requested a review from a team as a code owner October 21, 2025 14:20
@github-actions github-actions bot added platform nxp NXP platform labels Oct 21, 2025
@pullapprove pullapprove bot removed platform nxp NXP platform labels Oct 21, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the ConfigurationManagerImpl.cpp files for the NXP platform, specifically targeting common and mcxw71 variants. The changes include updates to the DetermineBootReason signature, moving/updating GetBootReason to DetermineBootReason in mcxw71, adding missing functions to mcxw71, adding a macro, switching to mcxw ConfigurationManagerImpl for mcxw72, aligning the two files, and updating copyright/description. The changes also involve updating the copyright year in the header files and adding a define in the BUILD.gn file for mcxw71. I have added comments to address potential issues related to the reboot count, boot reason storage, and platform reset implementation.

Copy link

PR #41553: Size comparison from 842aa2c to 3fcd1da

Full report (1 build for stm32)
platform target config section 842aa2c 3fcd1da change % change
stm32 light STM32WB5MM-DK FLASH 470252 470252 0 0.0
RAM 141320 141320 0 0.0

Copy link

github-actions bot commented Oct 21, 2025

PR #41553: Size comparison from a343518 to c0cfbd9

Full report (37 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section a343518 c0cfbd9 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1106622 1106622 0 0.0
RAM 178874 178874 0 0.0
bl702 lighting-app bl702+eth FLASH 661198 661198 0 0.0
RAM 134969 134969 0 0.0
bl702+wifi FLASH 837310 837310 0 0.0
RAM 124405 124405 0 0.0
bl706+mfd+rpc+littlefs FLASH 1070278 1070278 0 0.0
RAM 117261 117261 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 899120 899120 0 0.0
RAM 105524 105524 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 983040 983040 0 0.0
RAM 109740 109740 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 770636 770636 0 0.0
RAM 103304 103304 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 782368 782368 0 0.0
RAM 108472 108472 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 728196 728196 0 0.0
RAM 97364 97364 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 712656 712656 0 0.0
RAM 97580 97580 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 554330 554330 0 0.0
RAM 205736 205736 0 0.0
lock CC3235SF_LAUNCHXL FLASH 587578 587578 0 0.0
RAM 205832 205832 0 0.0
efr32 lock-app BRD4187C FLASH 963160 963160 0 0.0
RAM 126328 126328 0 0.0
BRD4338a FLASH 756712 756712 0 0.0
RAM 256952 256952 0 0.0
window-app BRD4187C FLASH 1058460 1058452 -8 -0.0
RAM 122556 122556 0 0.0
esp32 all-clusters-app c3devkit DRAM 103424 103424 0 0.0
FLASH 1796056 1796056 0 0.0
IRAM 83862 83862 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 933064 933064 0 0.0
RAM 161313 161313 0 0.0
nxp contact mcxw71+release FLASH 691896 691888 -8 -0.0
RAM 61496 61496 0 0.0
lighting mcxw71+release FLASH 723400 723392 -8 -0.0
RAM 68140 68140 0 0.0
lock mcxw71+release FLASH 773664 773656 -8 -0.0
RAM 61932 61932 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1676628 1676628 0 0.0
RAM 213900 213900 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1593244 1593244 0 0.0
RAM 211108 211108 0 0.0
light cy8ckit_062s2_43012 FLASH 1459788 1459788 0 0.0
RAM 197728 197728 0 0.0
lock cy8ckit_062s2_43012 FLASH 1492340 1492340 0 0.0
RAM 225440 225440 0 0.0
qpg lighting-app qpg6200+debug FLASH 837088 837088 0 0.0
RAM 127708 127708 0 0.0
lock-app qpg6200+debug FLASH 773868 773868 0 0.0
RAM 118684 118684 0 0.0
realtek light-switch-app rtl8777g FLASH 706584 706584 0 0.0
RAM 106904 106904 0 0.0
lighting-app rtl8777g FLASH 757672 757672 0 0.0
RAM 127236 127236 0 0.0
stm32 light STM32WB5MM-DK FLASH 470076 470076 0 0.0
RAM 141304 141304 0 0.0
telink bridge-app tl7218x FLASH 710558 710558 0 0.0
RAM 90544 90544 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 796912 796912 0 0.0
RAM 41000 41000 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 788112 788112 0 0.0
RAM 93644 93644 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 714998 714998 0 0.0
RAM 51844 51844 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 748302 748302 0 0.0
RAM 70892 70892 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 725150 725150 0 0.0
RAM 34592 34592 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 602428 602428 0 0.0
RAM 108692 108692 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 820732 820736 4 0.0
RAM 92040 92040 0 0.0

Copy link

codecov bot commented Oct 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.05%. Comparing base (b7fc5ab) to head (2ece262).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #41553   +/-   ##
=======================================
  Coverage   51.05%   51.05%           
=======================================
  Files        1385     1385           
  Lines      100884   100884           
  Branches    13055    13055           
=======================================
  Hits        51511    51511           
  Misses      49373    49373           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

andrei-menzopol and others added 6 commits October 22, 2025 10:17
 * Move GetBootReason to DetermineBootReason
 * Align with nxp/common ConfigurationManagerImpl
 * Add nxp/common missing functions
 * Update copyright, description

Signed-off-by: Andrei Menzopol <[email protected]>
…nagerImpl

 * Update DetermineBootReason signature, parameter type
 * Update copyright

Signed-off-by: Andrei Menzopol <[email protected]>
Copy link

github-actions bot commented Oct 22, 2025

PR #41553: Size comparison from b7fc5ab to 2ece262

Full report (37 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section b7fc5ab 2ece262 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1106622 1106622 0 0.0
RAM 178874 178874 0 0.0
bl702 lighting-app bl702+eth FLASH 661198 661198 0 0.0
RAM 134969 134969 0 0.0
bl702+wifi FLASH 837310 837310 0 0.0
RAM 124405 124405 0 0.0
bl706+mfd+rpc+littlefs FLASH 1070278 1070278 0 0.0
RAM 117261 117261 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 899730 899730 0 0.0
RAM 105524 105524 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 983040 983040 0 0.0
RAM 109740 109740 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 770636 770636 0 0.0
RAM 103304 103304 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 782368 782368 0 0.0
RAM 108472 108472 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 728196 728196 0 0.0
RAM 97364 97364 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 712656 712656 0 0.0
RAM 97580 97580 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 554286 554286 0 0.0
RAM 205736 205736 0 0.0
lock CC3235SF_LAUNCHXL FLASH 587534 587534 0 0.0
RAM 205832 205832 0 0.0
efr32 lock-app BRD4187C FLASH 963160 963160 0 0.0
RAM 126328 126328 0 0.0
BRD4338a FLASH 756712 756712 0 0.0
RAM 256952 256952 0 0.0
window-app BRD4187C FLASH 1058460 1058452 -8 -0.0
RAM 122556 122556 0 0.0
esp32 all-clusters-app c3devkit DRAM 103424 103424 0 0.0
FLASH 1796056 1796056 0 0.0
IRAM 83862 83862 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 933064 933064 0 0.0
RAM 161313 161313 0 0.0
nxp contact mcxw71+release FLASH 691896 691888 -8 -0.0
RAM 61496 61496 0 0.0
lighting mcxw71+release FLASH 723400 723392 -8 -0.0
RAM 68140 68140 0 0.0
lock mcxw71+release FLASH 773664 773656 -8 -0.0
RAM 61932 61932 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1676612 1676612 0 0.0
RAM 213900 213900 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1593228 1593228 0 0.0
RAM 211108 211108 0 0.0
light cy8ckit_062s2_43012 FLASH 1459788 1459788 0 0.0
RAM 197728 197728 0 0.0
lock cy8ckit_062s2_43012 FLASH 1492324 1492324 0 0.0
RAM 225440 225440 0 0.0
qpg lighting-app qpg6200+debug FLASH 837088 837088 0 0.0
RAM 127708 127708 0 0.0
lock-app qpg6200+debug FLASH 773868 773868 0 0.0
RAM 118684 118684 0 0.0
realtek light-switch-app rtl8777g FLASH 706584 706584 0 0.0
RAM 106904 106904 0 0.0
lighting-app rtl8777g FLASH 757672 757672 0 0.0
RAM 127236 127236 0 0.0
stm32 light STM32WB5MM-DK FLASH 470076 470076 0 0.0
RAM 141304 141304 0 0.0
telink bridge-app tl7218x FLASH 710558 710558 0 0.0
RAM 90544 90544 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 796912 796912 0 0.0
RAM 41000 41000 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 788112 788112 0 0.0
RAM 93644 93644 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 714998 714998 0 0.0
RAM 51844 51844 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 748302 748302 0 0.0
RAM 70892 70892 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 725150 725150 0 0.0
RAM 34592 34592 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 602428 602428 0 0.0
RAM 108692 108692 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 820732 820736 4 0.0
RAM 92040 92040 0 0.0

Copy link
Contributor

@andy31415 andy31415 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving platform specific change with platform owner checkmark. Did not fully review the PR, assuming platform specific review.

@mergify mergify bot merged commit ad8b86b into project-chip:master Oct 22, 2025
75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants