Empty TX FIFO of PIO #16149
Unanswered
SteKme
asked this question in
RP2040 / Pico
Replies: 2 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
-
-- thank You, Raul, for confirming. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
please is there a way to empty TX (!!not RX!!) FIFO of the PIO before the PIO start? I kind of think that the FIFO content survives the state machine reset and such. What I need is to repeatedly restart the PIO that fetches data from RAM and on every restart, I need to start with the same sequence of bytes sent to PIO, however when the PIO is stopped, there may be some data in TX FIFO left orphaned and I need to flush those and fill with the correct sequence beginning data instead.
I found only one way to do so: statemachine.exec("pull()") - this fortunately seems to work for me - is there any other way, please? It is easy to poll the number of items in the FIFO, indeed, but I couldn't find any uPy command to empty it...
Thank You so much,
Stepan
Beta Was this translation helpful? Give feedback.
All reactions