Running Pico-microPyton with non-standard XTAL - 12.8MHz vs 12.0MHz #14030
Replies: 4 comments 1 reply
-
Got a connection with GDB, and can read previous CPU PLL..
and
Which corresponds to
So, what happens if I just re-write?
I don't know if this actually changes anything... |
Beta Was this translation helpful? Give feedback.
-
And these would be the USB PLL....
Update: YESSSSS... that works. If I keep the device powered, make the change and re-enable the hub it enumerates and can be seen by Thonny.
|
Beta Was this translation helpful? Give feedback.
-
Still don't know why the end result is not clocking at the correct speed, but I was able to script the process to change the clocks - and thus be able to connect the microPython session. May be helpful to someone.... Unfortunately this does not appear to work when trying to 'fix' the boot-loader, which I think is my next part of the quest - to replace the uf2 with something different. |
Beta Was this translation helpful? Give feedback.
-
Found the last part of the puzzle, I couldn't re-clock the boot loader, but then realized that I can flash a recompiled '12.8MHz' version of microPython via the SWD interface. D'oh.
And now my 1pps timing is correct too. Closing ticket. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a project which requires an accurate clock, so I am investigating changing the XTAL for a high precision TCXO. Some of the parts which might work are a slightly different frequency of 12.8MHz.
These would appear to be able to give the CPU freq (120MHz) that I want, with different PLL settings.
I modified the first board to 12.8MHz, and the code I previously uploaded is still running... however (as suspected) the device will no longer enumerate on USB
Q. I have an SWD interface, but not really experienced with it. Can I 'poke' the registers from there to reconfigure the board in a temporary manner?
Q. How can I make these changes more permanent? Would that require a custom build of microPython??
Beta Was this translation helpful? Give feedback.
All reactions