Skip to content

Fixes for SPI Flash loading#15

Merged
engdoreis merged 2 commits into
lowRISC:mainfrom
ziuziakowska:spi-flash-loader-fixes
Jun 1, 2026
Merged

Fixes for SPI Flash loading#15
engdoreis merged 2 commits into
lowRISC:mainfrom
ziuziakowska:spi-flash-loader-fixes

Conversation

@ziuziakowska
Copy link
Copy Markdown
Contributor

  • Align file size correctly in bootstrap command - previously this doubled the file size and sent the whole binary's size worth of 0xffs after the binary.
  • Allow page program commands to transfer less than a whole page - the assertions would ensure that the transfer shouldn't cross a page boundary, but afterwards the transfer would still issue 256-bytes of payload.

This was erroneously doubling the file size instead of rounding it up
to the nearest multiple of the flash page size.

Signed-off-by: Alice Ziuziakowska <a.ziuziakowska@lowrisc.org>
Signed-off-by: Alice Ziuziakowska <a.ziuziakowska@lowrisc.org>
@ziuziakowska ziuziakowska requested a review from engdoreis June 1, 2026 12:49
@engdoreis engdoreis merged commit ed6037b into lowRISC:main Jun 1, 2026
1 check passed
@ziuziakowska ziuziakowska deleted the spi-flash-loader-fixes branch June 1, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants