-
Notifications
You must be signed in to change notification settings - Fork 1.4k
mcuboot: Use dedicated type for slot numbers #24753
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
mcuboot: Use dedicated type for slot numbers #24753
Conversation
|
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 6312e94b4359f69e913627f6f6f179271d7ff970 more detailssdk-nrf:
mcuboot:
Github labels
List of changed files detected by CI (9)Outputs:ToolchainVersion: a7529a11f4 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
|
You can find the documentation preview for this PR here. |
bbe79a4 to
139f654
Compare
|
|
||
| if (active_slot == SLOT_A) { | ||
| LOG_INF("Temporarily switching slots (A -> B)"); | ||
| new_slot = SLOT_B; | ||
| new_slot = BOOT_SLOT_SECONDARY; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I won't block it but can't we do a #define SLOT_A BOOT_SLOT_PRIMARY? Note that SLOT_A is used in the line above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They use two, different types. One is 8-bit, one is 32-bit long. We can remove completely the enum ab_boot_slot, if that's your point though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No ok, we can leave it as is
Change bootloader request module, so it uses the new, dedicated type to point to the specific slot. Ref: NCSDK-35199 Signed-off-by: Tomasz Chyrowicz <[email protected]>
139f654 to
6312e94
Compare
Memory footprint analysis revealed the following potential issuesapplications.nrf_desktop.zdebug.uart[[email protected]/nrf54h20/cpuapp]: RAM size increased by 23661[B] in comparison to the main[6df6566] branch. - link (cc: @nrfconnect/ncs-si-bluebagel) Note: This message is automatically posted and updated by the CI (latest/sdk-nrf/PR-24753/5) |
Change bootloader request module, so it uses the new, dedicated type to point to the specific slot.
Ref: NCSDK-35199