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

Support for Raspberry Pi Pico #32

Open
FDelporte opened this issue Nov 19, 2024 · 9 comments
Open

Support for Raspberry Pi Pico #32

FDelporte opened this issue Nov 19, 2024 · 9 comments

Comments

@FDelporte
Copy link

Hi, did someone try to take this project to the Raspberry Pi Pico already?

https://www.raspberrypi.com/products/raspberry-pi-pico-2/
Version 2 could be a nice challenge as it has two types of cores:
Dual Arm Cortex-M33 or dual Hazard3 RISC-V processors @ 150MHz

@mikeakohn
Copy link
Owner

Hmm.. naken_asm supports both ARM (32 bit) and RISC-V, so technically it should work. I'm not sure if there are any specific details for that device though. Is it a raw chip or does it run a realtime OS like the ESP32 does?

@FDelporte
Copy link
Author

Good question @mikeakohn ... I'm not so experienced in this topic, but I found:
The RP2350 Pro Micro works with C/C++ using the Pico SDK and MicroPython development environments.

https://www.tomshardware.com/raspberry-pi/raspberry-pi-pico/whats-inside-the-raspberry-pi-pico-2s-rp2350

@mikeakohn
Copy link
Owner

I found this:

https://metebalci.com/blog/using-a-pico2-rp2350-without-the-pico-sdk-build-system/

Looks like there's a small header at the top that has information about the executable code. If I'm reading this right, it'd be possible to either manually add some .data to the top of the file or I could add a .pico file format for reading / writing.

I think I'll have to pick up one of these boards to mess with it.

@FDelporte
Copy link
Author

That would be wonderful! That would be a nice extra #JavaOnRaspberryPi achievement and something we would love to document further on pi4j.com if you could get me started... :-)

@mikeakohn
Copy link
Owner

Ordered from SparkFun... they're anywhere from 2 days to 2 weeks. Hopefully it comes before Thanksgiving so I can knock it out during some time off.

@FDelporte
Copy link
Author

Looking forward to the results :-)

@mikeakohn
Copy link
Owner

Got it! I'll see if I have time this weekend...

@FDelporte
Copy link
Author

Got it!

That's fast :-)

@mikeakohn
Copy link
Owner

Just a quick update: I added uf2 support to naken_asm.. but there's some special data sections that need to be added to make the boot loader accept the code. Haven't had time to dig too deep into that yet.

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

2 participants