← index #8208Issue #6987
Related · high · value 0.646
QUERY · ISSUE

RP2: Overclock or CPU_MHZ as a board config option

openby Gadgetoidopened 2022-01-25updated 2022-02-02
port-rp2

For PicoSystem we shipped a port of MicroPython that clocks the RP2040 to 250MHz at 1.2v (up from the stock 133MHz 1.1v settings) and have (short of needing to apply the slight overvolt in response to some units not being stable) generally seen these settings to be stable and safe. I accomplished this by maintaining a fork full of hacks where I've modified main.c :grimacing:

Many RP2040-based projects leveraging MicroPython could probably benefit from this same overclock, particularly if the manufacturers are happy to support boards at these speeds.

As such I'd like to propose a board config approach to setting CPU frequency and overvolt, with a view to supporting this in the RP2 port at first and perhaps expanding to other boards (we've encountered MCUs that are ostensibly one speed, but get a manufacturer certified OC frequency later).

This is part of a multi-step process to untie all the hacks I needed to implement for PicoSystem, justify their existence and bring them upstream for the benefit of everyone.

It also seems a shame to leave that 2x+ speedup on the table.

  1. What settings are common across MCUs for achieving overclock? I guess CPU_FREQ and VOLTAGE perhaps, but the latter could be derived from the former in most cases
  2. Is there anywhere in the MicroPython codebase where assumptions are made about CPU frequency that this would horribly break?
  3. Would it be appropriate to configure an "Overclocked Pico" board variant, for those who want to opt in to more performance?
CANDIDATE · ISSUE

Board definitions for rp2 ports

closedby tannewtopened 2021-03-04updated 2021-04-17
port-rp2

Hi! Is there a plan for supporting other RP2040 boards besides the Pico? I don't see a boards directory in ports/rp2.

We're releasing the Feather RP2040 today and would like to have MicroPython support as well as CircuitPython. I suspect other vendors would like this as well.

I tried putting the Pico UF2 of MicroPython on the Feather but didn't get a serial port to appear. I suspect the challenge of supporting other boards will be the varying flash chips that different boards use. (The Feather uses a GD2564C.)

For CircuitPython, I've just started a TOML "database" for settings of flash chips here.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied