Difference between revisions of "Raspberry pi"
From Wiki at Neela Nurseries
m (Add link to github RPi fork of flash utility openocd.) |
m (Add ASCII text pinout for RPi Pico board.) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | |||
+ | |||
+ | Key words : Raspberry Pi RPi Pico board | ||
+ | |||
+ | RPi Pico pinout: | ||
+ | |||
+ | <pre> | ||
+ | RPi Pico board pinout | ||
+ | |||
+ | UART0 TX : I2C0 SDA : SPIO RX : GP0 : 1 +-----------------+ 40 : VBUS | ||
+ | UART0 RX : I2C0 SCL : SPIO CSn : GP1 : 2 | +++++ | 39 : VSYS | ||
+ | GND : 3 | USB | 38 : GND | ||
+ | I2C1 SDA : SPIO SCK : GP2 : 4 | | 37 : 3V3_EN | ||
+ | I2C1 SCL : SPIO TX : GP3 : 5 | | 36 : 3V3(OUT) | ||
+ | UART1 TX : I2C0 SDA : SPIO RX : GP4 : 6 | | 35 : ------ ADC_VREF | ||
+ | UART1 RX : I2C0 SCL : SPIO CSn : GP5 : 7 | | 34 : GP28 : ADC2 | ||
+ | GND : 8 | | 33 : GND : AGND | ||
+ | I2C1 SDA : SPIO SCK : GP6 : 9 | xxxxx | 32 : GP27 : ADC1 : I2C1 SCL | ||
+ | I2C1 SCL : SPIO TX : GP7 : 10 | xxxxx | 31 : GP26 : ADC0 : I2C1 SDA | ||
+ | UART1 TX : I2C0 SDA : SPI1 RX : GP8 : 11 | xxxxx | 30 : RUN | ||
+ | UART1 RX : I2C0 SCL : SPI1 CSn : GP9 : 12 | xxxxx | 29 : GP22 | ||
+ | GND : 13 | | 28 : GND | ||
+ | I2C1 SDA : SPI1 SCK : GP10 : 14 | | 27 : GP21 ------------ I2C0 SCL | ||
+ | I2C1 SCL : SPI1 TX : GP11 : 15 | | 26 : GP20 ------------ I2C0 SDA | ||
+ | UART0 TX : I2C0 SDA : SPI1 RX : GP12 : 16 | | 25 : GP19 : SPI0 TX : I2C1 SCL | ||
+ | UART0 RX : I2C0 SCL : SPI1 CSn : GP13 : 17 | | 24 : GP18 : SPI0 SCK : I2C1 SDA | ||
+ | GND : 18 | | 23 : GND | ||
+ | I2C1 SDA : SPI1 SCK : GP14 : 19 | | 22 : GP17 : SPI0 CSn : I2C0 SCL : UART0 RX | ||
+ | I2C1 SCL : SPI1 TX : GP15 : 20 +-----------------+ 21 : GP16 : SPI0 RX : I2C1 SDA : UART0 TX | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | |||
2022-08-03 | 2022-08-03 | ||
Line 12: | Line 45: | ||
− | Some Zephyr documentation on RPi Pico board, Zephyr 3.1.0: | + | Some Zephyr documentation on RPi Pico board, couple version of Zephyr RTOS: |
+ | |||
+ | * Zephyr 3.1.0 . . . https://docs.zephyrproject.org/3.1.0/boards/arm/rpi_pico/doc/index.html | ||
+ | |||
+ | * Zephyr 3.4.0 . . . https://docs.zephyrproject.org/3.4.0/boards/arm/rpi_pico/doc/index.html | ||
+ | |||
+ | * Zephyr latest . . . https://docs.zephyrproject.org/latest/boards/raspberrypi/rpi_pico/doc/index.html | ||
+ | |||
+ | Note how supported peripherals list grows across these three releases. RPI Pico board support relatively new in Zephyr in 2022. | ||
− | |||
Special fork of `openocd` which can be used to flash and to debug RPi Pico via SWD interface . . . but what would the physical device and connection be from PC to RPi Pico SWD pins? | Special fork of `openocd` which can be used to flash and to debug RPi Pico via SWD interface . . . but what would the physical device and connection be from PC to RPi Pico SWD pins? | ||
* https://github.com/raspberrypi/openocd | * https://github.com/raspberrypi/openocd | ||
+ | |||
+ | |||
+ | RPi Pico board always appears as mass storage device, whether boot select button pressed or not: | ||
+ | |||
+ | * https://github.com/zephyrproject-rtos/zephyr/issues/46573 | ||
+ | * https://github.com/zephyrproject-rtos/zephyr/pull/46616 | ||
<!-- EOF --> | <!-- EOF --> |
Latest revision as of 17:05, 22 May 2024
Key words : Raspberry Pi RPi Pico board
RPi Pico pinout:
RPi Pico board pinout UART0 TX : I2C0 SDA : SPIO RX : GP0 : 1 +-----------------+ 40 : VBUS UART0 RX : I2C0 SCL : SPIO CSn : GP1 : 2 | +++++ | 39 : VSYS GND : 3 | USB | 38 : GND I2C1 SDA : SPIO SCK : GP2 : 4 | | 37 : 3V3_EN I2C1 SCL : SPIO TX : GP3 : 5 | | 36 : 3V3(OUT) UART1 TX : I2C0 SDA : SPIO RX : GP4 : 6 | | 35 : ------ ADC_VREF UART1 RX : I2C0 SCL : SPIO CSn : GP5 : 7 | | 34 : GP28 : ADC2 GND : 8 | | 33 : GND : AGND I2C1 SDA : SPIO SCK : GP6 : 9 | xxxxx | 32 : GP27 : ADC1 : I2C1 SCL I2C1 SCL : SPIO TX : GP7 : 10 | xxxxx | 31 : GP26 : ADC0 : I2C1 SDA UART1 TX : I2C0 SDA : SPI1 RX : GP8 : 11 | xxxxx | 30 : RUN UART1 RX : I2C0 SCL : SPI1 CSn : GP9 : 12 | xxxxx | 29 : GP22 GND : 13 | | 28 : GND I2C1 SDA : SPI1 SCK : GP10 : 14 | | 27 : GP21 ------------ I2C0 SCL I2C1 SCL : SPI1 TX : GP11 : 15 | | 26 : GP20 ------------ I2C0 SDA UART0 TX : I2C0 SDA : SPI1 RX : GP12 : 16 | | 25 : GP19 : SPI0 TX : I2C1 SCL UART0 RX : I2C0 SCL : SPI1 CSn : GP13 : 17 | | 24 : GP18 : SPI0 SCK : I2C1 SDA GND : 18 | | 23 : GND I2C1 SDA : SPI1 SCK : GP14 : 19 | | 22 : GP17 : SPI0 CSn : I2C0 SCL : UART0 RX I2C1 SCL : SPI1 TX : GP15 : 20 +-----------------+ 21 : GP16 : SPI0 RX : I2C1 SDA : UART0 TX
2022-08-03
RPi Pico board datasheet, contains Pico board schematic:
Some Zephyr documentation on RPi Pico board, couple version of Zephyr RTOS:
- Zephyr 3.1.0 . . . https://docs.zephyrproject.org/3.1.0/boards/arm/rpi_pico/doc/index.html
- Zephyr 3.4.0 . . . https://docs.zephyrproject.org/3.4.0/boards/arm/rpi_pico/doc/index.html
- Zephyr latest . . . https://docs.zephyrproject.org/latest/boards/raspberrypi/rpi_pico/doc/index.html
Note how supported peripherals list grows across these three releases. RPI Pico board support relatively new in Zephyr in 2022.
Special fork of `openocd` which can be used to flash and to debug RPi Pico via SWD interface . . . but what would the physical device and connection be from PC to RPi Pico SWD pins?
RPi Pico board always appears as mass storage device, whether boot select button pressed or not:
- https://github.com/zephyrproject-rtos/zephyr/issues/46573
- https://github.com/zephyrproject-rtos/zephyr/pull/46616