machine.freq() only working after soft reboot ? #12220
Replies: 2 comments
-
I found the issue. I was setting the frequency after initializing the PIO state machine so frequency divider was computed based off the wrong frequency. |
Beta Was this translation helpful? Give feedback.
0 replies
-
It would be interesting what causes the effect you see. In a quick test using a MCU performance test, machine.freq() shows an immediate effect after a hard reset by a power cycle. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have an audio application and I'm running a custom I2S PIO program. To be able to feed data fast enough I need to overclock the rp2040 at 240Mhz and it works fine. The problem is that it seems to only take effect until I do a soft reboot (otherwise the code is still too slow). This leads to a couple of questions:
This code does a soft reboot however it doesn't seem to actually restart my
main.py
, which means I can't actually have my code run at the correct frequency without calling something from the REPL.Thanks for the help
Beta Was this translation helpful? Give feedback.
All reactions