Skip to content
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

RP2040 PIO Support not available anymore #75

Closed
nmaas87 opened this issue Jun 30, 2024 · 2 comments
Closed

RP2040 PIO Support not available anymore #75

nmaas87 opened this issue Jun 30, 2024 · 2 comments

Comments

@nmaas87
Copy link

nmaas87 commented Jun 30, 2024

Dear all,
RP2040 posses PIO Blocks ( https://tutoduino.fr/en/pio-rp2040-en/ )which allow to generate e.g. 4 additional full-directional UARTs which are offloaded to the PIO blocks (see: https://arduino-pico.readthedocs.io/en/latest/piouart.html ).

In the past this was as easy in integration as creating an new PIO UART:

SerialPIO SerialE(27,26);

and then using it with TMC2209 like this:

stepper_driver_el.setup(SerialE,SERIAL_BAUD_RATE,SERIAL_ADDRESS_0);

however, this does not work anymore now:

X:\sketchbook\libraries\TMC2209\src/TMC2209.h:43:27: note:   initializing argument 1 of 'void TMC2209::setup(SerialUART&, long int, SerialAddress, int16_t, int16_t)'
   43 |   void setup(SerialUART & serial,
      |              ~~~~~~~~~~~~~^~~~~~

cannot convert 'SerialPIO' to 'SerialUART&'

Any way to get this working again? Thank you! :)

Last working version: 9.0.12

@nmaas87 nmaas87 changed the title RP2040 PIO Support not available anymore since RP2040 update RP2040 PIO Support not available anymore Jun 30, 2024
@peterpolidoro
Copy link
Member

Good point! I just modified the code to hopefully add support for SerialPIO. Can you please try version 9.2.0 and see if it works for you? Thanks!

@nmaas87
Copy link
Author

nmaas87 commented Jul 1, 2024

Yes, thanks a lot, that worked! Can confirm works again! 👍🏻

@nmaas87 nmaas87 closed this as completed Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants