RP 2040 - PIO programming in Arduino IDE on linux
I've got a few Picos, I'd like to try programming PIO. Quick search shows mostly micropython tutorial (which are useless to me), or 1-3 years old tutorial for windows workflow.
Can anyone point me to a good tutorial for programming PIOs on linux within Arduino IDE preferably, or explain how to get started?
5 Replies
ok, I'll try to figure it out later... Right now I'm tired.
It's mor or less dead any ways last post was last month..
Doubt anything good will come of it.
@RPBCACUEAIIBH
I finally got it working... Here's the process:
- Add
https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
to preferences/board manager URLs
- Go to board manager, and search for Raspberry Pi Pico/RP2040 by Earle F. Philhower, III and install it.
- Find the location of your arduino packages, mine is at: ~/.arduino15/packages
- Copy "pioasm" executable from: packages/rp2040/tools/pqt-pioasm/4.1.0-1aec55e -> your project folder, right beside your .pio file. (beware that "4.1.0-1aec55e" directory name may change upon update...)
- To generate the header file, run: ./pioasm FileName.pio FileName.pio.h from within your project folder.
I could write data to the state machine, and returned it flipped, but I could not get the LED to blink yet...
not sure why, but maybe I'm just too noob when it comes to assembly...Also here are some resources for good measure:
Good explanation of PIOs: https://www.youtube.com/watch?v=yYnQYF_Xa8g
Pico SDK PDF: https://datasheets.raspberrypi.com/pico/raspberry-pi-pico-c-sdk.pdf
RP2040 datasheet PDF(pico): https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf
RP2350 datasheet PDF(pico2): https://datasheets.raspberrypi.com/rp2350/rp2350-datasheet.pdf
Windows workflow (a bit old, but shouldn't be too different): https://www.youtube.com/watch?v=khm-YQa30IY
stacksmashing
YouTube
In-depth: Raspberry Pi Pico's PIO - programmable I/O!
In this video we take an in-depth look into the new Raspberry Pi Pico/RP2040 high-speed programmable I/O system: PIO!
For a high level video check https://www.youtube.com/watch?v=o-tRJPCv0GA!
I know this video is quite fast-paced and dense, but I'm trying to experiment with different formats for these in-depth videos :)
Errata:
- 8:20 - the ...
learnelectronics
YouTube
Program your Pico in the Arduino IDE
Program your Pico in the Arduino IDE
https://www.pcbway.com/ Get 5 boards in about a week for $22!
I was browsing the ‘net and came across this article from Tom’s Hardware (https://github.com/earlephilhower/arduino-pico) about a using the Raspberry Pi Pico with the Arduino IDE. The Arduino folks have been promising this, but are probably wa...
You can just download the precompiled
pioasm
tool from https://github.com/earlephilhower/pico-quick-toolchain/releases too