Raspberry Pi Pico Overclocking, beware there is a catch!

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 มิ.ย. 2024
  • 420Mhz!!! Warning, your mileage may vary. Overclocking could shorten the life of your Pico, although mine seems fine :-)
    In this video I show how to set the Pico CPU clock from under-clocking to save power all the way to maximum overclock which for me topped out at 420Mhz!!! Beware however there is a catch... with the maximum overclock your flash memory will stop talking to your pico CPU. This is recoverable so don't worry just load another program with a different clock speed.
    Video index
    00:00 Introduction
    00:26 Hardware Setup
    00:56 Coding Overclocks
    03:17 Show me the graphs
    04:01 What is the BIG catch?
    04:40 Summary
    This video is not sponsored in any way.
    3.3v USB to Serial Adapter like the one I use in this video
    www.amazon.ca/Gikfun-FT232RL-...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 41

  • @chrissold5957
    @chrissold5957 4 หลายเดือนก่อน +1

    Very underrated channel about raspi-pico.

  • @kaypope1581
    @kaypope1581 3 ปีที่แล้ว +5

    Awesome compilation of info including nice graphs!

  • @ComputerScienceSimplified
    @ComputerScienceSimplified 3 ปีที่แล้ว +2

    Awesome video, keep up the great work! :)

  • @RDCST
    @RDCST 3 ปีที่แล้ว

    Thanks. I come here for the power consumption test but the OC tables are interesting too.

  • @stevenp8810
    @stevenp8810 2 ปีที่แล้ว

    Excellent work! This may come in handy when I mess around with trying to make an MP3 player based on the RP2040 :)

  • @saifulrizal3382
    @saifulrizal3382 3 ปีที่แล้ว +2

    cool review! Thanks

  • @Buoy2
    @Buoy2 3 ปีที่แล้ว

    Thanks for this! It should be noted that there are other peripherals than flash that might become limiting factors. I could only get my program to work up to 300 Mhz, after that I started getting wrong data from the PIO buffers.

  • @himselfe
    @himselfe 3 ปีที่แล้ว +28

    420Mhz is pretty crazy! Would like to see what the temperatures are like at various clock speeds.

    • @KarstenJohansson
      @KarstenJohansson 3 ปีที่แล้ว +7

      At 420, it is blazing! Okay, I'll see myself out, now.

    • @Nobody-Nowhere
      @Nobody-Nowhere 3 ปีที่แล้ว

      teensy 4 goes up to 1ghz

    • @johnbiscuit8272
      @johnbiscuit8272 2 ปีที่แล้ว +6

      @@Nobody-Nowhere teensy in my country is like 10 times the price of the pico...

    • @urnoob5528
      @urnoob5528 2 ปีที่แล้ว +3

      @@Nobody-Nowhere 10 times the price for 3 times the frequency, good job

    • @bfbunny
      @bfbunny ปีที่แล้ว

      @@urnoob5528 To be honest, you can't really compare the processors' performance just with the difference in frequency, as they are built on very different architectures and are equipped with different memory sizes. The teensy wins big with its Cortex-M7 as opposed to the pi pico's Cortex-M0+.

  • @exosdel
    @exosdel 3 ปีที่แล้ว +1

    Great video!

  • @fordnox7150
    @fordnox7150 8 หลายเดือนก่อน

    420 is pretty sussy number, but well done. It's super amazing that you can get 420MHz for only 1$.. .-.

  • @R4C3R
    @R4C3R ปีที่แล้ว

    Thank you for the video! I'm looking to overclock the RPi Pico to around 250MHz using the Arduino IDE. Can you maybe share the sketch that you used to do the tests?

  • @mr1enrollment
    @mr1enrollment 3 ปีที่แล้ว +3

    It would be interesting to investigate how fast you could clock a PIO pin and create a counter.
    That is: if you create a counter from a PIO pin input, the what is the max rate?

  • @jakesllama
    @jakesllama 10 หลายเดือนก่อน

    Thanks for the awesome help! Please do you have a link to the benchmarking code?

  • @zetaconvex1987
    @zetaconvex1987 3 ปีที่แล้ว

    Tell us more about the reset button you have wired up there.

  • @TT-it9gg
    @TT-it9gg 2 ปีที่แล้ว +2

    Thanks for the part1 and part2 YT clips. Very helpful.
    Just ran the CoreMark on the 816Mhz Teensy 4.0 w/o heatsink. The score is 3368.89
    It's about 4 times faster than 420Mhz Pico with fansink.
    And you may push the Teensy to over 1Ghz with fansink if you like.
    BTW, since the Pico is dual-core, how about CoreMark Pro results?

  • @ElTurbandito
    @ElTurbandito ปีที่แล้ว

    What is the purpose of the 3.3V FTDI adapter? Does this overclock prevent serial communication via the regular onboard microusb?

  • @TrickyNekro
    @TrickyNekro 3 ปีที่แล้ว +3

    Small guess here, it´s probably using the clock frequency divided by 2 as an SPI frequency to talk to the flash memory. That´s probably hard-coded, do not know if you can change it and potentially you are "overclocking" the SPI interface of that little flash also at ~300MHz.

    • @robingrosset6941
      @robingrosset6941  3 ปีที่แล้ว +12

      Yeah, you are right. You can increase the divider in a custom boot stage2 with PICO_FLASH_SPI_CLKDIV=4.. just learned this yesterday after I posted the video. Might have to do a follow up!

  • @kuzipa9126
    @kuzipa9126 ปีที่แล้ว

    Does overclocking the RP2040 affect the peripherals, i.e, Is it able to generate higher frequency PWM signals with greater resolution?

  •  3 ปีที่แล้ว +4

    Isn't possible to set SPI clock as its own too (independent of the CPU clock), or is it always tied to the CPU clock?

    • @robingrosset6941
      @robingrosset6941  3 ปีที่แล้ว +5

      Its a good thought. I don't know is the answer. I think its worth trying to figure it out so you could get highest CPU overclock AND have flash access. Also wondering about SD card clock speeds and if the same thing would happen.

    • @crestdazoltral7705
      @crestdazoltral7705 3 ปีที่แล้ว +1

      @@robingrosset6941 The QSPI baud rate is configured by a a clock divider dividing the clock by at least two which is the divider you want at normal frequencies, but the BootROM contains a slow fallback configuration function which among other things configures a divider of six instead of two. Reconfiguring the QSPI peripheral using the BootROM functions is probably the easiest way to try restoring (slow) flash access to an overclocked RP2040. For optimal speed you could try a divider of 3 resulting in 140MHz QSPI clock which overclocks the flash as well but to less than a 300MHz overclock with a divider of two resulting in a 150MHz QSPI clock.

  • @kaiyofox
    @kaiyofox 7 หลายเดือนก่อน

    320mhz is where I found my flash stops working.
    but I also found providing more voltage, you can go further.
    (But my "Pico" is builtinto another device) RP2040 processor

  • @augustzuanich3338
    @augustzuanich3338 ปีที่แล้ว

    The top speed seems to vary for me. I have 2 PICOs and one maxes out at 300mhz and the other at 310mhz.

  • @atonduke7612
    @atonduke7612 ปีที่แล้ว +1

    Huh. 0.85 V works for me even above 125 MHz. What I guess you (and other people) didn't do is disable or lower the threshold of brown-out detect. That's what's actually happened to me the first time around and I quickly figured it out from having read the RP2040 datasheet. Though I had to do it by manually writing to the relevant register.

    • @robingrosset6941
      @robingrosset6941  ปีที่แล้ว

      Nice thanks for the tip I just got a Pico W so I might see if it works on that.

  • @KarstenJohansson
    @KarstenJohansson 3 ปีที่แล้ว +1

    Power draw is the important measure. You can go real fast if you put in a car battery. So hopefully someone will make a video with that in there, too.

    • @robingrosset6941
      @robingrosset6941  3 ปีที่แล้ว +2

      I covered uncooled max and min power draw previously here... th-cam.com/video/G2BuoFNLoDM/w-d-xo.html
      The chart shows current draw on the 5V rail (measured as 5.05v) you can infer power draw across the full range or clock speeds.
      The maximum is 340mW at 420MHz the minimum is 23mW at 16MHz.

    • @KarstenJohansson
      @KarstenJohansson 3 ปีที่แล้ว

      @@robingrosset6941 Thanks. That was me being dumb by commenting before the video was through. ;p A project I'm working on doesn't need much speed, but battery life is more important. Will be interesting to see what balance I will be able to find between the two. That's a lot of range available.

  • @marc-andreservant201
    @marc-andreservant201 2 ปีที่แล้ว

    Interestingly, the CPU by itself is only specified to 133MHz in its datasheet, so you can't just buy faster QSPI flash and increase the frequency. Well you can, but it will void your warranty.

  • @eFeXuy
    @eFeXuy 3 ปีที่แล้ว +1

    Gonna need to get the Pico water cooled now?

    • @AnthonyBall
      @AnthonyBall 3 ปีที่แล้ว

      The max UART baud rate is documented at 900Kbit/s, do you know id overclocking 2x (250Mhz) - does this max baud rate also increase to 1800Kbit/s ?

  • @Techn0man1ac
    @Techn0man1ac 3 ปีที่แล้ว +2

    Почти пол гигагерца, Карл. Никакой Arduino это даже и не снилось