RP2350 Extreme Overclock

From Stm32World Wiki
Jump to navigation Jump to search

Warning: this page is about finding the extreme limits of the RP2350, not about settings to use. Everything above 1.30 V, and every clock above the rated 150 MHz, is outside the RP2350 specification. The results here come from one board, at room temperature, under a light load, for seconds to minutes: a setting that passes here can fail on another chip, at another temperature or with real work. At these voltages the chip draws far more power than it is designed for, and it may wear out quickly or be permanently damaged. Never rely on any of this in a product or production system. The board used here is a test board we were prepared to lose.

The test setup: Streamline backplane with a Streamline Connect and the MCU RP2354

The RP2350 is rated for 150 MHz at 1.10 V, but it overclocks remarkably well. Without any special tricks it runs at 320 MHz / 1.30 V, and with the flash slowed down (see below) at 540 MHz / 1.60 V. Others have pushed it past 800 MHz at around 3 V with dry ice cooling[1]. This page is about finding out how far a normal board at room temperature can go, and what it takes beyond 540 MHz.

All numbers on this page were measured on a Streamline MCU RP2354 board, at room temperature (an office at about 28-30 °C), without a heatsink, flashed and monitored through a Streamline Connect running Hybridlink firmware. The source is the extreme_overclock example in the rpfun repository. For benchmarks of the RP2350 at stock, overclocked and extreme overclocked speeds, compared with STM32 and other MCUs, see Comparing STM32 and RP2350 Performance.

Video

The video about the findings on this page, pushing the RP2350 to 624 MHz:

The original extreme overclock video is here. This one topped out at 540 MHz.

Test setup

The Streamline MCU RP2354 sits in a Streamline backplane next to a Streamline Connect, which flashes it over SWD and carries the UART console back to the PC. No heatsink and no fan, just the board in free air.

What limits the clock

The core voltage

The core runs from the on-chip regulator (VREG). By default the Pico SDK only allows up to 1.30 V, but after vreg_disable_voltage_limit() the normal vreg_set_voltage() goes all the way to 3.30 V. The available steps are 0.05 V or 0.1 V up to 2.00 V, then 2.35, 2.50, 2.65, 2.80, 3.00, 3.15 and 3.30 V (VREG_VOLTAGE_1_35 ... VREG_VOLTAGE_3_30). The on-chip regulator can't supply enough current for the highest settings, so in practice the voltage stops rising somewhere above 2 V[1].

vreg_disable_voltage_limit();   // Allow voltages above 1.30 V
vreg_set_voltage(CORE_VOLTAGE); // e.g. VREG_VOLTAGE_1_60, set from CMake
sleep_ms(10);                   // Give the regulator time to settle before raising the clock

The flash: reading

The program normally runs straight from the QSPI flash (XIP). Reading the flash interface (QMI) registers on the running board shows how the boot code leaves it set up:

State Read mode Clock divider Flash clock at 150 MHz Flash clock at 540 MHz
After boot Quad, 0xEB 3 50 MHz 180 MHz
After rom_flash_enter_cmd_xip() Serial, 03h 12 12.5 MHz 45 MHz

180 MHz is far more than the flash can do, so above roughly 320 MHz the overclock example switches to the slow but safe serial mode first:

vreg_disable_voltage_limit();
vreg_set_voltage(VREG_VOLTAGE_1_60);
rom_flash_enter_cmd_xip();       // Serial 03h reads at clk_sys / 12
set_sys_clock_khz(540000, true);

That works, but serial reads are slow: code that doesn't fit in the XIP cache, and data read from flash, run about 6 times slower than in quad mode.

Quad reads at 540 MHz

Quad reads can be switched back on once the clock is up, as long as the clock divider is large enough. The read delay (RXDELAY, in system clock cycles) also has to suit the faster clock. Reading 256 KB of flash 20 times with each setting at 540 MHz, and comparing with a serial read:

Clock divider Flash clock Read delays that work Time to read 256 KB
12 (serial 03h) 45 MHz - 47.6 ms
8 67 MHz 0-7 8.8 ms
7 77 MHz 0-7 7.8 ms
6 90 MHz 1-7 7.0 ms
5 108 MHz 2-7 6.1 ms
4 135 MHz 3-7 5.1 ms

Divider 6 with read delay 4 (the middle of the working range) is a good choice: 90 MHz is within what QSPI flash chips are normally rated for. The boot setup sends the read command on every access (no continuous read mode), so it can be switched back to at any time, from a function in RAM:

#define XIP_CLKDIV 6  // 540 MHz / 6 = 90 MHz flash clock
#define XIP_RXDELAY 4 // Middle of the working range (1-7) at this divider

static void __no_inline_not_in_flash_func(enter_quad_xip)(uint32_t timing, uint32_t rfmt, uint32_t rcmd) {
    timing &= ~(QMI_M0_TIMING_CLKDIV_BITS | QMI_M0_TIMING_RXDELAY_BITS);
    timing |= (XIP_CLKDIV << QMI_M0_TIMING_CLKDIV_LSB) | (XIP_RXDELAY << QMI_M0_TIMING_RXDELAY_LSB);

    uint32_t ints = save_and_disable_interrupts();
    qmi_hw->m[0].timing = timing; // The boot time quad setup, saved before rom_flash_enter_cmd_xip()
    qmi_hw->m[0].rfmt = rfmt;
    qmi_hw->m[0].rcmd = rcmd;
    flash_flush_cache();          // Drop anything cached with the old setup
    restore_interrupts(ints);
}

The flash: writing

Writing to the flash (for example a LittleFS filesystem) crashed the overclocked board as soon as the first sector was erased. The cause is in the SDK: when flash_range_erase() and flash_range_program() finish, they put the flash interface back to the boot time setup, quad reads at clk_sys / 3. At 540 MHz that is 180 MHz, and the next instruction fetch from flash locks up the core. The erase and program themselves are fine, as the bootrom does them at a safe clk_sys / 12.

The fix is to save the read setup before each erase or program and restore it afterwards, from RAM with interrupts disabled:

static void __no_inline_not_in_flash_func(flash_erase_keep_xip)(uint32_t flash_offset, size_t count) {
    uint32_t ints = save_and_disable_interrupts();
    uint32_t timing = qmi_hw->m[0].timing;
    uint32_t rfmt = qmi_hw->m[0].rfmt;
    uint32_t rcmd = qmi_hw->m[0].rcmd;

    flash_range_erase(flash_offset, count); // Leaves the boot time XIP setup behind

    qmi_hw->m[0].timing = timing; // Put our setup back
    qmi_hw->m[0].rfmt = rfmt;
    qmi_hw->m[0].rcmd = rcmd;
    flash_flush_cache();
    restore_interrupts(ints);
}

With that, 80 sector erases and 1280 page programs at 540 MHz all verified correctly. If both cores run, the other core must also be paused (multicore_lockout_start_blocking()) while the flash is busy, as it can't fetch code from flash either.

Erasing a 4 KB sector takes about 36 ms whatever the clock, as that is the flash chip working on its own. Programming a 256 byte page is faster when overclocked (491 µs at 540 MHz against 811 µs at 150 MHz), because the bootrom sends the data at clk_sys / 12. Writing and reading a 400 KB file with LittleFS (flash_fs example, quad reads at clk_sys / 6 above 320 MHz):

Clock Arm write Arm read RISC-V write RISC-V read
150 MHz / 1.10 V 5473 ms 62 ms 5313 ms 40 ms
320 MHz / 1.30 V 4613 ms 17 ms 4628 ms 20 ms
540 MHz / 1.60 V 4505 ms 16 ms 4548 ms 18 ms

Setting the flash clock for the target clock

For the extreme overclock the program keeps running from flash (XIP), in quad mode, and only the flash clock divider and read delay are changed, from a function in RAM, before the system clock is raised. The same sweep as above, repeated at 150 MHz and at 624 MHz / 1.90 V, shows that the smallest working read delay depends only on the flash clock, not on the system clock:

Flash clock At 540 MHz (divider) At 624 MHz (divider) Smallest working read delay
up to ~80 MHz 67-77 MHz (8-7) 69-78 MHz (9-8) 0
~90 MHz 90 MHz (6) 89 MHz (7) 1
~105 MHz 108 MHz (5) 104 MHz (6) 2
125-135 MHz 135 MHz (4) 124 MHz (5) 3

Read delay 4 worked at every divider from 5 to 10 at 150, 540 and 624 MHz. So the rule used is: divider = clk_sys / 90 MHz rounded up (never below the boot value of 3), read delay 4. The one exception is divider 3, used for targets up to 270 MHz: the setting is applied while the chip still runs at 150 MHz, and with divider 3 read delay 4 samples too late at that clock, so the program hangs at boot. Divider 3 therefore keeps the boot setup's read delay 2, which reads correctly at 150 MHz and at a 90 MHz flash clock. That gives the flash a clock between about 80 and 90 MHz whatever the system clock, and it can be set while the chip still runs at 150 MHz, so the slow serial mode isn't needed at all. That matters: rom_flash_enter_cmd_xip() always uses clk_sys / 12, which is above the usual 50 MHz limit for serial (03h) reads from about 600 MHz.

#define XIP_MAX_KHZ 90000
#define XIP_CLKDIV_MIN 3 // The boot setup's divider, never go faster than that
#define XIP_CLKDIV_CALC ((SYS_CLOCK_KHZ + XIP_MAX_KHZ - 1) / XIP_MAX_KHZ) // Round up
#define XIP_CLKDIV (XIP_CLKDIV_CALC > XIP_CLKDIV_MIN ? XIP_CLKDIV_CALC : XIP_CLKDIV_MIN)
// Read data sample delay, in half system clock cycles: 4, except 2 with the boot divider 3
#define XIP_RXDELAY (XIP_CLKDIV > XIP_CLKDIV_MIN ? 4 : 2)

static void __no_inline_not_in_flash_func(set_xip_clkdiv)(void) {
    uint32_t ints = save_and_disable_interrupts();
    uint32_t timing = qmi_hw->m[0].timing;
    timing &= ~(QMI_M0_TIMING_CLKDIV_BITS | QMI_M0_TIMING_RXDELAY_BITS);
    timing |= (XIP_CLKDIV << QMI_M0_TIMING_CLKDIV_LSB) | (XIP_RXDELAY << QMI_M0_TIMING_RXDELAY_LSB);
    qmi_hw->m[0].timing = timing;
    flash_flush_cache(); // Drop anything cached with the old timing
    restore_interrupts(ints);
}

int main() {
    vreg_disable_voltage_limit();
    vreg_set_voltage(CORE_VOLTAGE);
    sleep_ms(10);
    set_xip_clkdiv();                       // Flash clock for the target clock, before raising the clock
    set_sys_clock_khz(SYS_CLOCK_KHZ, true);
    ...

The peripheral clock

set_sys_clock_khz() runs clk_peri (UART, SPI, I2C) straight from clk_sys, so the UART sees the full core clock. When that gets too fast the console output dies, which looks just like a crash. The extreme overclock example runs clk_peri from the 48 MHz USB PLL instead, right after setting the system clock:

set_sys_clock_khz(SYS_CLOCK_KHZ, true);
clock_configure_undivided(clk_peri, 0, CLOCKS_CLK_PERI_CTRL_AUXSRC_VALUE_CLKSRC_PLL_USB, USB_CLK_HZ);

The PLL and achievable clock speeds

The system PLL is not a limit, but it decides which clocks can be set at all. The VCO runs at a multiple of the 12 MHz crystal between 750 and 1600 MHz, and the core clock is the VCO divided by two post dividers (1-7 each). set_sys_clock_khz(khz, true) only accepts a clock that comes out exactly, otherwise it stops with a panic:

*** PANIC ***
System clock of 620000 kHz cannot be exactly achieved

620 MHz is such a clock: the VCO would have to be 1240 MHz (not a multiple of 12) or 1860 MHz (too high). A program that panics here has already set the core voltage and then simply stops, which looks just like an overclock that is too high. check_sys_clock_khz() tells you in advance whether a clock is possible, and which VCO and dividers the SDK will use:

uint vco_hz, postdiv1, postdiv2;
if (!check_sys_clock_khz(620000, &vco_hz, &postdiv1, &postdiv2)) {
    printf("620 MHz can't be set exactly\n");
}

In the overclocking range the pattern is simple:

Clock range Step How the SDK makes it
552-798 MHz 6 MHz VCO / 2, with the VCO at 1104-1596 MHz in 12 MHz steps
800 MHz not possible 1600 MHz isn't a multiple of 12
804-1596 MHz 12 MHz VCO / 1

Below 552 MHz more divider combinations are possible, so the steps are uneven. All whole-MHz clocks the SDK can set from 300 to 900 MHz:

Range Achievable clocks (MHz)
300-349 300, 303, 304, 306, 308, 309, 312, 315, 316, 318, 320, 321, 324, 327, 328, 330, 332, 333, 336, 339, 340, 342, 344, 345, 348
350-399 351, 352, 354, 356, 357, 360, 363, 364, 366, 368, 369, 372, 375, 376, 378, 380, 381, 384, 387, 388, 390, 392, 393, 396, 399
400-449 400, 402, 404, 408, 412, 414, 416, 420, 424, 426, 428, 432, 436, 438, 440, 444, 448
450-499 450, 452, 456, 460, 462, 464, 468, 472, 474, 476, 480, 484, 486, 488, 492, 496, 498
500-549 500, 504, 508, 510, 512, 516, 520, 522, 524, 528, 532, 534, 540, 546
550-599 552, 558, 564, 570, 576, 582, 588, 594
600-649 600, 606, 612, 618, 624, 630, 636, 642, 648
650-699 654, 660, 666, 672, 678, 684, 690, 696
700-749 702, 708, 714, 720, 726, 732, 738, 744
750-799 750, 756, 762, 768, 774, 780, 786, 792, 798
800-849 804, 816, 828, 840
850-900 852, 864, 876, 888, 900

Clocks that aren't a whole number of MHz are possible too (in kHz), but every clock tested on this page is a multiple of 6 MHz.

Note: none of this needs SDK modifications. The SDK can already set the voltage, the PLL and the clock sources; it just doesn't do all of it for you.

Method

The extreme_overclock example is a copy of the overclock example with only the changes needed: the flash clock divider set for the target clock, clk_peri from the USB PLL, a settling delay after the voltage change, and clock and voltage set from CMake. It defaults to 624 MHz / 1.90 V; other settings are passed to CMake:

cmake -S . -B build -DSYS_CLOCK_KHZ=600000 -DCORE_VOLTAGE=VREG_VOLTAGE_1_80

Added later, after the tests below: the averaged temperature reading (see #Under load: the Arm FPU sets the limit) and 4-byte code alignment (see #Loop counts and code alignment).

Both cores print a tick every second (core 1 offset by 500 ms), and core 0 also prints the chip temperature from the internal sensor. For each voltage the clock is raised in 12 MHz steps (6 MHz near the top); a setting passes when both cores keep ticking for 15 seconds, and the best settings were run for 30 seconds. This is a light load (blinking and counting), so a passing clock is the most the chip can do, not a clock that is safe for real work. See #Under load: the Arm FPU sets the limit for what happens with a real load.

Results: Arm Cortex-M33 and Hazard3 RISC-V

Running from flash with the flash clock set for the target clock (see above), clk_peri from the USB PLL, both cores ticking. The RISC-V build is the same code with PICO_PLATFORM set to rp2350-riscv and the RISC-V toolchain, on the same board.

Core voltage Arm Cortex-M33 Hazard3 RISC-V RISC-V ahead by
Highest pass First fail Temperature Highest pass First fail Temperature
1.60 V 540 MHz 552 MHz 47 °C 564 MHz 570 MHz 50 °C 24 MHz
1.70 V 588 MHz 600 MHz 51 °C 606 MHz 612 MHz 53 °C 18 MHz
1.80 V 612 MHz 624 MHz 55 °C 636 MHz 642 MHz 58 °C 24 MHz
1.90 V 636 MHz 642 MHz 62 °C 648 MHz 654 MHz 60 °C 12 MHz
2.00 V 636 MHz 642 MHz 60 °C 642 MHz 648 MHz 58 °C 6 MHz
2.35 V 630 MHz 636 MHz 56 °C 648 MHz 654 MHz 60 °C 18 MHz

What this shows:

  • The 540 MHz "hard limit" is the voltage. At 1.60 V the Arm cores are right at their limit at 540 MHz: 552 MHz runs for about 12 seconds and then stops.
  • Each 0.1 V buys about 24 MHz from 1.60 to 1.90 V, on both architectures.
  • Above 1.90 V nothing more is gained. 2.00 and 2.35 V reach about the same clock as 1.90 V, or slightly less. This fits with the on-chip regulator running out of current at the higher settings[1]: asking for more voltage doesn't give the core more. Going further needs an external supply for the core.
  • RISC-V beats Arm at every voltage, by 6 to 24 MHz, and reaches 648 MHz against 636 MHz for Arm. Hazard3, the open source RISC-V core designed by Luke Wren at Raspberry Pi[2], is a smaller core than the Cortex-M33 and draws less current at the same clock, so it gets further on the same regulator. Pimoroni's 873.5 MHz record was also on the RISC-V cores[1].
  • Heat is not the limit here. The internal sensor never read more than about 62 °C, and even after more than an hour at 624 MHz / 2.00 V the chip only feels warm to the touch, not painful. The Streamline MCU RP2354 board is physically larger than a typical Pico 2 and has a big ground plane, so it may be slightly better cooled than a Pico 2. For comparison, Pimoroni measured 570 MHz at 1.70 V on a Pico 2 without a heatsink[1].
  • The temperature sensor isn't calibrated, so treat the temperatures as rough. When the chip is failing it gives meaningless readings (anything from -9800 to +4300 °C), which is a good sign that it isn't computing correctly any more.
  • A pass means both cores keep running a light load for 15 seconds. The best settings were then run for 30 seconds, and the top RISC-V clock didn't hold: 648 MHz stopped after about 27 seconds at 2.35 V and after about 6 seconds at 1.90 V. 642 MHz ran the full 30 seconds at 2.00 and 2.35 V (but not at 1.90 V), and the best 30 second Arm result is 636 MHz at 2.00 V. So RISC-V is ahead in the longer runs too. A longer run at 642 MHz / 2.00 V on RISC-V then hung after 44 seconds, with the temperature steady at about 58 °C, so even the 30 second results are not stable in the long run. One step further down, 624 MHz / 2.00 V on RISC-V ran for more than an hour (4,027,000 ticks, about 67 minutes, and still going when it was stopped), with the chip temperature steady at 61-63 °C. 624 MHz on RISC-V also ran long term at 1.90 V, which is now the default in the example. Near the limit failures often come after several seconds, so even for experiments stay a step or two below these clocks.

Under load: the Arm FPU sets the limit

The results above are with a light load. To see what real work does, both cores were given a 16 × 16 matrix multiply in a tight loop, once with integers and once with floats, for 8 minutes per run. On Arm the float version uses the FPU (multiply-add instructions). On RISC-V, which has no FPU, it uses the SDK's software floating point routines. For these runs the temperature is averaged: each reading is the mean of 64 ADC conversions, and the printed value is the running mean over the last 4 seconds, which takes out most of the noise of single conversions (about 0.5 °C per ADC step). The temperatures in the table are the average of the last 2 minutes of each run, with the peak in brackets.

Load Clock / voltage Arm Cortex-M33 Hazard3 RISC-V
Integer 624 MHz / 1.90 V Ran 8 min, 62.7 °C (64.3 °C) Ran 8 min, 63.4 °C (63.7 °C)
Float 624 MHz / 1.90 V Crashed after 3 seconds Ran 8 min, 62.4 °C (62.7 °C)
Float 624 MHz / 2.00 V Crashed after 4 seconds –
Float 624 MHz / 1.80 V Crashed at boot –
Integer 600 MHz / 1.90 V Ran 8 min, 64.1 °C (64.6 °C) Ran 8 min, 61.4 °C (61.7 °C)
Float 600 MHz / 1.90 V Ran 8 min, 63.7 °C (65.0 °C) Ran 8 min, 61.6 °C (62.8 °C)
  • With the FPU busy on both cores, the Arm side can't hold 624 MHz at any voltage tried. More voltage helps only a little (3 seconds at 1.90 V, 4 seconds at 2.00 V), and the chip is at about 58 °C when it fails, so it isn't heat. The FPU is the weakest part of the Arm side: for floating point heavy code on the Arm cores, 600 MHz at 1.90 V is the highest clock tested that holds. Whether the FPU runs out of current or out of timing can't be told apart without measuring the core current.
  • Integer code on Arm holds 624 MHz / 1.90 V, and so does every load on RISC-V.
  • The integer work is about equal: per core, about 34,000 matrix multiplies per second on Arm and 36,000 on RISC-V at 624 MHz. In floating point Arm does about 33,000 per second at 600 MHz against 1,340 for RISC-V in software.
  • The temperature doesn't separate the two architectures. At 600 MHz Arm read about 2.5 °C above RISC-V, at 624 MHz it was the other way round, and the FPU added nothing measurable over integer code. Differences of a degree or two are within the drift of the room temperature between runs.
  • The Whetstone benchmark completed on Arm at 624 MHz / 1.90 V (see #Benchmarks at 624 MHz), but it is a short run and not as FPU heavy as the matrix multiply, so it isn't proof that the Arm FPU is stable at that clock.

Console output

Booting the RISC-V build at 624 MHz / 2.00 V. The temperature climbs for a few seconds after boot and then settles around 60 °C:

Core 0: Booting...
Running on RISC-V at 624 MHz
Flash clock: clk_sys / 7 = 89 MHz
Core 1: Booting...
Core 0 tick 1000 (loop = 54956834 temp = 52.89 °C)
Core 1 tick 1500 (loop = 164912240)
Core 0 tick 2000 (loop = 54927826 temp = 57.10 °C)
Core 1 tick 2500 (loop = 109931863)
Core 0 tick 3000 (loop = 54939047 temp = 58.50 °C)
Core 1 tick 3500 (loop = 109941313)
Core 0 tick 4000 (loop = 54935211 temp = 58.50 °C)
Core 1 tick 4500 (loop = 109954075)
...
Core 0 tick 4024000 (loop = 56767793 temp = 61.31 °C)
Core 1 tick 4024500 (loop = 113700667)
Core 0 tick 4025000 (loop = 56798984 temp = 60.84 °C)
Core 1 tick 4025500 (loop = 113513554)
Core 0 tick 4026000 (loop = 56798982 temp = 61.78 °C)
Core 1 tick 4026500 (loop = 114282792)
Core 0 tick 4027000 (loop = 56882139 temp = 60.84 °C)
Core 1 tick 4027500 (loop = 113388809)

After more than an hour (4,027,000 ticks, about 67 minutes) it was still running, with the temperature steady around 61 °C:

Core 1's first loop count covers 1.5 seconds, as its ticks are offset by 500 ms. Core 1 runs about twice as many loops as core 0, which also handles the timer and ADC interrupts, the LED and the temperature calculation.

Loop counts and code alignment

The loop counts are not a measure of CPU speed. Comparing the old 540 MHz overclock example with this one on RISC-V, the 624 MHz build counted fewer loops on core 1 than the 540 MHz build. Both compile core 1's loop to the same four instructions, but in the new build the loop happened to start 2 bytes off a 4-byte boundary. RISC-V mixes 2- and 4-byte (compressed and full size) instructions, and a 4-byte instruction that crosses a word boundary costs the Hazard3 core an extra fetch cycle. Divided by the clock, that is exactly one cycle more per loop:

Build (RISC-V) Clock Core 1 loops/s Cycles per loop
Old overclock, as compiled 540 MHz 128.5 M 4.20
Extreme overclock, as compiled 624 MHz 124.8 M 5.00
Old overclock, aligned 540 MHz 134.9 M 4.00
Extreme overclock, aligned 624 MHz 155.9 M 4.00

Moving the code by 2 bytes can just as easily make the other core's loop slower, so both examples now tell the compiler to start every function, loop and branch target on a 4-byte boundary:

target_compile_options(main PRIVATE
    -O3
    -ffunction-sections
    -fdata-sections
    -falign-functions=4
    -falign-loops=4
    -falign-jumps=4
    -falign-labels=4
)

With that, core 1's loop takes exactly 4 cycles in both examples, and the loop count scales with the clock (134.9 M × 624 / 540 = 155.9 M). Core 0's loops still differ between the two examples, because their code isn't identical. The console output above was recorded before this change, so its loop counts are lower than what the examples print now. Real benchmarks such as CoreMark don't swing like this, they scale with the clock (see #Benchmarks at 624 MHz).

The best result, 648 MHz on the RISC-V cores for 15 seconds, 642 MHz for 30 seconds and 624 MHz for more than an hour, is 4.3 times the rated 150 MHz, with nothing more than the on-chip regulator, no heatsink and no SDK changes. Under real load the RISC-V cores hold 624 MHz at 1.90 V with both integer and floating point code, while the Arm cores top out around 600 MHz once the FPU is busy.

Benchmarks at 624 MHz

The CoreMark, Dhrystone and Whetstone benchmarks from Comparing STM32 and RP2350 Performance were also run at 624 MHz, with both cores running the benchmark at the same time. They need no code changes for this, only -DSYS_CLOCK_KHZ=624000 and the core voltage. RISC-V ran at 2.00 V, the setting from the long run above. On Arm, Whetstone at 2.00 V lost core 1 (the floating point unit busy on both cores is the heaviest load here), so all Arm runs are at 1.90 V, where every run completed. A sustained floating point load is a different story: it crashes the Arm cores at 624 MHz within seconds (see #Under load: the Arm FPU sets the limit).

Benchmark Arm Cortex-M33, per core Arm, both cores Hazard3 RISC-V, per core RISC-V, both cores
CoreMark 1580 3160 1829 3657
Dhrystone (DMIPS) 932 1865 1151 2301
Whetstone float (MWIPS) 1314 2629 147 294
Whetstone double (MWIPS) 574 1149 63 127

The scores per MHz are the same as at 150 MHz, so the benchmarks scale with the clock all the way up. See Comparing STM32 and RP2350 Performance for how this compares with STM32 and other MCUs.

References