Open
Description
I'm trying to add support for Raspberry Pi Pico for the ArduinoCore-zephyr but I'm running into an issue where I don't see the Pico under the Board Manager. I'm not sure if the symlink is working properly.
The steps that I followed:
- Install Arduino IDE 2 and Arduino Zephyr Boards
- Skip Burn Bootloader since it's not needed for Pico
- Clone the repository to ~/zephyr_arduino folder
- Install pre-requirements
- Ran the bootstrap script inside the ~/zephyr_arduino/ArduionCore-zephyr folder
- Symlink the core to ~/Arduino/hardware/arduino-git/zephyr where ~/Arduino is the location of the sketch.
- Added a rpi_pico folder under the variant folder with overlay and config file
- Rename code_partition to user_sketch in ~/zephyr_arduino/zephyr/boards/raspberrypi/rpi_pico/rpi_pico-common.dtsi
- Note: If you don't do Step 9 then you run into an issue with building the loader
- Build the loader: ./extra/build.sh rpi_pico
- Updated the board.txt
- Note: Adding rpi_pico.name = Raspberry Pi Pico doesn't update the board manager to include the pico at all unless I update the board.txt from ~/.arduino15/packages/arduino/hardware/zephyr/0.3.1/boards.txt which shouldn't be happening
Metadata
Metadata
Assignees
Labels
No labels
Activity
[-]Using the core in Arduino IDE for variant board[/-][+]Variant board not showing up on Arduino IDE[/+]facchinm commentedon Jun 12, 2025
Hi @saleema90 ,
are you working on a fork? If you could share it we can try to understand what's wrong.
saleema90 commentedon Jun 12, 2025
Here is my fork: https://github.com/saleema90/ArduinoCore-zephyr/tree/arduino
metehoca commentedon Jun 13, 2025
Why isn't the Pi Pico /2 supported? It would increase the number of users and help speed up the debugging process. From what I’ve seen, only a few of Arduino’s more common boards are supported.
saleema90 commentedon Jun 13, 2025
There's an bug when trying to build through west with one of the sample code. The path within /ArduinoCore-zephyr/core/CMakeLists.txt seems to be outdate and should be changed to
../../modules/lib/ArduinoCore-API/api
.pennam commentedon Jun 17, 2025
Hi @saleema90 @metehoca Thanks for your interest in this project. Please take a look at #144 It is still a wip but i was able to load and run a blink sketch on the rpi pico.
saleema90 commentedon Jun 17, 2025
I ran the go build in the
extra/bin2uf2/
folder. I put the rpi in boot mode and the loader./extra/build.sh rpi_pico
. When I tried to flash usingTools > Burn Bootloader
I'm missing the programmer as I don't see the Pico. Also copying the file frombuild/rpi_pico_rp2040/zephyr/zephyr.uf2
doesn't do anything.pennam commentedon Jun 18, 2025
Select one of the programmers available
ARM CMSIS DAP
orJlink
is the same, the IDE will userp2040load
tool to flash the loader.The loader doesn't do anything visibile, it starts the sketch if there is one. You can check if the loader is running connecting a 3.3.v serial to USB adapter to pins
UART0_TX : P0
;UART0_RX : P1
. The loader exposes here a shell.