Add the Raspberry Pi Pico 2 board (RP2350A, LED on GPIO25)

オープン 初心者向け
#111 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
84/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cmake, python, raspberry-pi, yaml

調査の方向性

まず boards/rpi/pico2_w/board.yaml を確認し、次に docs/engineering/hwgen.md の「A second board on the same SoC」と「A numbered GPIO bank: the RP2350」の各セクションを読みます。ボードの仕様には、pico-sdk の boards/pico2.h と Pico 2 のデータシートを使用します。boards/rpi/pico2/board.yaml を追加し、python3 -I hw/gen/emb-hwgen.py generate --board boards/rpi/pico2 でファイルを生成します。ジェネレーターのチェックと指定された CMake ビルドを実行します。チェックが通り、ボードがビルドできれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement good first issue help wanted

Goal

Support the Raspberry Pi Pico 2 (the one without wireless). The Pico 2 W is supported and tested on hardware. The Pico 2 is the same RP2350A, but its user LED is on GPIO25, driven directly by the chip (the W's LED sits behind the wireless chip, so the W has none).

A board here is a description, not code: this should need one YAML file and no C.

What exists

  • boards/rpi/pico2_w/board.yaml: start from it.
  • docs/engineering/hwgen.md, "A second board on the same SoC", shows how the NUCLEO-F446ZE was added this way. "A numbered GPIO bank: the RP2350" shows how its pins are named.
  • Boards with an LED declare it as leds: [ { name: user, gpio: ..., active: high, doc: ... } ] (see the NUCLEO-F446RE's).

Steps

  1. Create boards/rpi/pico2/board.yaml from the Pico 2 W's: name pico2, the LED on GPIO25, and the text in doc: updated. Take facts from pico-sdk's boards/pico2.h and the Pico 2 datasheet, and say so in the header comment.
  2. python3 -I hw/gen/emb-hwgen.py generate --board boards/rpi/pico2, then python3 -I hw/gen/emb-hwgen.py check.
  3. Build it: cmake --preset cm33-pico2w -B build/pico2 -DEMB_BOARD=pico2 && cmake --build build/pico2.
  4. If the generator or board support refuses the LED, describe what it said in the issue. That is a useful finding in itself.
  5. If you have a Pico 2: copy a test image's UF2 to it and tell us what the console printed (UART0 on GPIO0/GPIO1, 115200 baud).

Done when

  • boards/rpi/pico2/ holds board.yaml and the generated/ the tool wrote, and nothing else.
  • emb-hwgen.py check passes, and the board builds.
主要言語
C
スター
1
フォーク
1
平均マージ
14時間 21分
マージ済み PR(30日)
125

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

EmbLinkOs/EmbLinkRTOS のほかの issue

EmbLinkOs/EmbLinkRTOS の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。