Skip to content

Commit

Permalink
Merge pull request #725 from 32blit/patch-pico-overvolt
Browse files Browse the repository at this point in the history
Pico: 1.20v overvolt for stable 250MHz
  • Loading branch information
Gadgetoid authored Oct 29, 2021
2 parents de4bc24 + caecc64 commit 5487da2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 32blit-pico/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include "hardware/clocks.h"
#include "hardware/structs/rosc.h"
#include "hardware/vreg.h"
#include "pico/binary_info.h"
#include "pico/stdlib.h"

Expand Down Expand Up @@ -232,6 +233,10 @@ static int64_t timer_callback(alarm_id_t alarm_id, void *user_data) {

int main() {
#if OVERCLOCK_250
// Apply a modest overvolt, default is 1.10v.
// this is required for a stable 250MHz on some RP2040s
vreg_set_voltage(VREG_VOLTAGE_1_20);
sleep_ms(10);
set_sys_clock_khz(250000, false);
#endif

Expand Down

0 comments on commit 5487da2

Please sign in to comment.