Fixes issues with bootloaders - #133
Merged
Merged
Conversation
monte-monte
commented
Jun 3, 2026
Contributor
- Clear all RAM in tiny boot, instead of clearing only half of it.
- Fix boot timeout in v006 bootloader, when used without a button.
- Add secret XOR partition to v006 bootloader, the same as in v003.
- Add separate ld scripts for different chips with different sizes of RAM.
cnlohr
reviewed
Jun 3, 2026
| 1: c.sw a4, 0(a0) // Clear RAM | ||
| c.addi a0, 4 | ||
| blt a0, gp, 1b // Iterate over RAM until it's cleared. | ||
| blt a0, sp, 1b // Iterate over RAM until it's cleared. |
Owner
There was a problem hiding this comment.
... do we need to change the default ch32fun for this? I had no idea the last word of RAM would be random.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.