Skip to content

Example for Pico PIO #184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
joachimhs opened this issue Apr 10, 2021 · 7 comments
Open

Example for Pico PIO #184

joachimhs opened this issue Apr 10, 2021 · 7 comments
Labels
enhancement New feature or request question Further information is requested RP2040

Comments

@joachimhs
Copy link

Hello,

It is great that support for the Pi Pico has landed in the latest version! I am wondering though. Are there any examples that show how to program the PIO through either Arduino IDE or through arduino-cli?

@facchinm
Copy link
Member

Hi @joachimhs ,
we still didn't integrate PIO files compilation into the toolchain, but library developers can compile via pioasm and then add the resulting .h to any library (we used PIO for PDM support for example https://github.com/arduino/ArduinoCore-mbed/tree/master/libraries/PDM/src/rp2040).
We are still thinking about a user friendly way to expose the raw functionality, but in the meantime just providing the "precompiled" version wrapped via high level APIs should be suitable for end users 😉

@facchinm facchinm added enhancement New feature or request question Further information is requested RP2040 labels Apr 12, 2021
@joachimhs
Copy link
Author

@facchinm Thank you for your reply! I did find this clone of the Adafruit NeoPixel library that uses the PIO to interface with the LEDs. I will look into compiling with pioasm as an option. (https://github.com/Bodmer/Adafruit_NeoPixel)

@tierneytim
Copy link

Thanks for the hard work on this guys. I much prefer the Arduino core to the official SDK (I work on windows). To make working with the PIO easier could a compiled pioasm be distributed (or built at installation)? Otherwise, the end-user has to install CMake, MinGW, and the official SDK (or is there an easier way?). Then they need to compile the pioasm.exe. This seems excessive considering the PIO is such a strong selling point of this microcontroller.

@GregWoods
Copy link

I agree. Personally, if it wasn't for PIO I'd just use an STM32F4.
PIO is the selling point of the RP2040 !
So, yes, I would love to see built in support for compiling and uploading pio asm code.

@Bodmer
Copy link

Bodmer commented Jan 6, 2022

There is a nice online pioasm here:
https://wokwi.com/tools/pioasm

@facchinm
Copy link
Member

See arduino/rp2040tools#10 @umbynos

@facchinm
Copy link
Member

@joachimhs @GregWoods @tierneytim can you give a spin to https://github.com/arduino/rp2040tools/releases/tag/1.0.5-rc1 and report if the tools work fine in your environment? So we can make a new release of the core that also includes precompiled pioasm 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested RP2040
Projects
None yet
Development

No branches or pull requests

5 participants