Skip to content

Conversation

@dleach02
Copy link
Member

@dleach02 dleach02 commented Nov 8, 2024

Align the partitions to 256k for mcuboot to handle erase correctly. The datasheet for the S26KS512S claims erases may only be performed on 256 KB sectors.

Fixes #80284

Align the partitions to 256k for mcuboot to handle erase correctly.
The datasheet for the S26KS512S claims erases may only be performed
on 256 KB sectors.

Signed-off-by: David Leach <[email protected]>
storage_partition: partition@700000 {
label = "storage";
reg = <0x0062B000 (DT_SIZE_M(58) - DT_SIZE_K(172))>;
reg = <0x00700000 DT_SIZE_M(58)>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
reg = <0x00700000 DT_SIZE_M(58)>;
reg = <0x00700000 DT_SIZE_M(57)>;

Since we have increased the MCUBoot sector size to 1M

@mmahadevan108 mmahadevan108 added the bug The issue is a bug, or the PR is fixing a bug label Nov 8, 2024
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 DT_SIZE_K(128)>;
reg = <0x00000000 DT_SIZE_M(1)>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason for so high 1 MB size, not 256 KB?

@mmahadevan108
Copy link
Contributor

PR #81335 addresses this issue. I think this can be closed.

@dleach02
Copy link
Member Author

#81335 is the proper fix

@dleach02 dleach02 closed this Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Boards bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mcuboot+application don't start on mimxrt1050_evk

6 participants