Skip to content
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

RP2350 (Pico 2) Writing/Reading partition blocks #3706

Open
Athorus opened this issue Jan 1, 2025 · 1 comment
Open

RP2350 (Pico 2) Writing/Reading partition blocks #3706

Athorus opened this issue Jan 1, 2025 · 1 comment

Comments

@Athorus
Copy link

Athorus commented Jan 1, 2025

Hello,
While reading the docs about embassy_rp::block, I understand how to create a partition table block, but I don’t find how to write and read this partition table to flash memory.
Any tip ?
It would be great to add an example to complete the docs :)

David.

@Athorus
Copy link
Author

Athorus commented Jan 5, 2025

I think the answer is #[repr(C)] of struct Block.
In rp23 samples, we can see #[link_section = ".start_block"] related to memory.x file.

We can create partition tables and flash them thanks to picotool, but if we need our application to serialize a new partition table, we have to do it ourself. Hopefully, #[repr(C)] should help.

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

No branches or pull requests

1 participant