Skip to content

Optimize firmware upload speed by not placing app version at the end of the flash. - #3

Merged
aq1018 merged 10 commits into
mainfrom
v0.2.0
Mar 21, 2026
Merged

aq1018 merged 10 commits into
mainfrom
v0.2.0

Conversation

@aq1018

@aq1018 aq1018 commented Mar 20, 2026

Copy link
Copy Markdown
Collaborator

Putting app version at the end of the flash storage means upload a firmware always taking the full flash capacity. CRC16 also has to churn through the entire flash space. This PR puts it right behind the app binary. However, this caused 22 bytes overflow and I had to do the unthinkable of shaving the custom runtime even more by removing the .data and .bss loops. But this is safe because we actually don't use any statics.

@aq1018
aq1018 merged commit 11e4873 into main Mar 21, 2026
4 checks passed
@aq1018
aq1018 deleted the v0.2.0 branch March 21, 2026 00:20
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.

1 participant