Skip to content

Add rp2040 ram image (flashless) target board #535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
May 14, 2025
Merged

Add rp2040 ram image (flashless) target board #535

merged 14 commits into from
May 14, 2025

Conversation

Grazfather
Copy link
Collaborator

@Grazfather Grazfather commented May 9, 2025

This tries to implement #491.

Basically:

  • Load everything starting at SRAM
  • Skip copying .data and clearing .bss
  • Set VTOR to point to the vector table in sram

This counts on the behaviour of the bootloader, which, after loading a uf2 will jump to the lowest address it loaded, where I place the stub that sets VTOR and jumps to the entry point.

Note that because of a bug (ziglang/zig#23869), if you're building this target, you should do a clean build to properly pick up updates.

@Grazfather Grazfather marked this pull request as ready for review May 14, 2025 16:31
@Grazfather Grazfather requested a review from ikskuh May 14, 2025 16:31
@Grazfather Grazfather changed the title wip: rp2040 ram image target At rp2040 ram image (flashless) target board May 14, 2025
@Grazfather Grazfather changed the title At rp2040 ram image (flashless) target board Add rp2040 ram image (flashless) target board May 14, 2025
Copy link
Contributor

@mattnite mattnite left a comment

Choose a reason for hiding this comment

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

I think entry point is okay there for now, we can refactor later

@mattnite mattnite merged commit 031ce5c into main May 14, 2025
43 checks passed
@mattnite mattnite deleted the rp_ram_image branch May 14, 2025 19:46
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.

3 participants