Thanks Gustavo for those TinyGo code samples that use the frequency counters. A month ago, I had also explored them using CircuitPython to measure CLK_SYS and CLK_REF on a RP2350 Geek board from Waveshare. I intended to port those functions to TinyGo as they facilitate frequency measurements without external instruments while playing with overclocking etc. So your code comes in handy.
In the meantime, I got a Pico 2 board running stable at 375 MHz after raising its voltage regulator from default 1.1 to 1.3 V. Using a single ARM core under light load, the chip temperature raises by just a few degrees only. I did not touch the default thresholds of the junction temperature yet.
Next are a few tests with overclocking using the dual-core support that was added to v0.38.0 recently, and to generate complex clock signals with variable frequencies in the 1..30 MHz range using the PIO features (e.g. Numerically Controlled Oscillators NCO and various modulations with constant envelopes).
I consider assembling them in a new ```src/machine/machine_rp2-extras.go``` for RP2350 and possibly their equivalents for RP2040. Once those "extras" are tried and tested, then we could try to upstream them to the TinyGo project.
In the meantime, I got a Pico 2 board running stable at 375 MHz after raising its voltage regulator from default 1.1 to 1.3 V. Using a single ARM core under light load, the chip temperature raises by just a few degrees only. I did not touch the default thresholds of the junction temperature yet.
Next are a few tests with overclocking using the dual-core support that was added to v0.38.0 recently, and to generate complex clock signals with variable frequencies in the 1..30 MHz range using the PIO features (e.g. Numerically Controlled Oscillators NCO and various modulations with constant envelopes).
I consider assembling them in a new ```src/machine/machine_rp2-extras.go``` for RP2350 and possibly their equivalents for RP2040. Once those "extras" are tried and tested, then we could try to upstream them to the TinyGo project.
Statistics: Posted by hb9cwp — Sat Jul 19, 2025 1:39 pm