WIP: Raspberry Pi Pico 2 RP2350
Summary
This is a very early stage port to RP23XX.
We still have many stuff to fix:
- drivers:
- [x] timerisr - using sysclock -- need to switch to TICK
- [x] UART
- [x] led/gpio/button
- [x] usbdev serial -- somewhat
- [x] uniqueid
- [x] PSRAM
- [x] ADC
- [x] Flash boot
- [ ] I2C
- [ ] usbmsc
- [ ] usb composite
- [ ] AON timer (RTC)
- [ ] watchdog
- [ ] I2S
- [ ] SPI
- [ ] spidev
- [ ] pio
- [ ] SMP
- [ ] MTD
- boards
- [x] Raspberry Pi Pico 2
- [ ] Pimoroni tiny2350
- [ ] Pimonori Pico 2 Plus
- chore
- [ ] register definition generate / reformat
- [ ] format all source files
Impact
New potentially very popular boards supported in NuttX.
Testing
Manual testing with the boards on hand.
I see this PR is pulling in the complete RPI Pico SDK. But that kinda goes against the The Inviolable Principles of NuttX Please check how it's done for the rp2040 https://github.com/apache/nuttx/tree/master/arch/arm/src/rp2040 that doesn't use the Pico SDK.
I see this PR is pulling in the complete RPI Pico SDK.
But that kinda goes against the The Inviolable Principles of NuttX
Please check how it's done for the rp2040 https://github.com/apache/nuttx/tree/master/arch/arm/src/rp2040 that doesn't use the Pico SDK.
This is not the complete RPi pico sdk. Just the register descriptors (mostly).
The code will be adapted, rewritten and reformatted to match NuttX standards.
I am currently investigating how/if I can generate the register definitions and structs from the SVD automatically to make things easier.
@casaroli Hi, I'm interested in helping work on this port. I'm going to clone your work and start hacking on it locally but would love to collaborate/coordinate if you are open.
@coderkalyan Hi, i'm working on the RP2350 porting based on this PR and is 90% complete, which should be done by this week. I'll notify you in the new PR and you're welcome to review and make comments :)
Hi all, I'm continuing this PR's work in #14831. Let's give this new berry a NuttX welcome! :)
thank you @PeterBee97 for taking over this.
I will soon add the other pimoroni boards.