Skip to content

Fixes issues with bootloaders - #133

Merged
cnlohr merged 2 commits into
cnlohr:masterfrom
monte-monte:master
Jun 3, 2026
Merged

cnlohr merged 2 commits into
cnlohr:masterfrom
monte-monte:master

Conversation

@monte-monte

Copy link
Copy Markdown
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.

Comment thread rv003usb/rv003usb.S
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.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

... do we need to change the default ch32fun for this? I had no idea the last word of RAM would be random.

@cnlohr
cnlohr merged commit 5bac8d6 into cnlohr:master Jun 3, 2026
3 checks passed
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