nuttx icon indicating copy to clipboard operation
nuttx copied to clipboard

WIP: Raspberry Pi Pico 2 RP2350

Open casaroli opened this issue 1 year ago • 2 comments

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.

casaroli avatar Sep 05 '24 22:09 casaroli

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.

PetervdPerk-NXP avatar Sep 06 '24 07:09 PetervdPerk-NXP

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 avatar Sep 09 '24 15:09 casaroli

@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 avatar Nov 08 '24 20:11 coderkalyan

@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 :)

PeterBee97 avatar Nov 12 '24 09:11 PeterBee97

Hi all, I'm continuing this PR's work in #14831. Let's give this new berry a NuttX welcome! :)

PeterBee97 avatar Nov 17 '24 13:11 PeterBee97

thank you @PeterBee97 for taking over this.

I will soon add the other pimoroni boards.

casaroli avatar Jan 16 '25 10:01 casaroli