Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4886

General • Re: UART issues with overclocked Pico

$
0
0
This is what worked for me:

Code:

#include <stdio.h>// #include <unistd.h>#include "pico/stdlib.h"#include "hardware/clocks.h"#include "hardware/vreg.h"// #include "hardware/structs/ssi.h"void main() {// ssi_hw->ssienr = 0;vreg_set_voltage(VREG_VOLTAGE_1_30);sleep_ms(1);set_sys_clock_khz(480 * KHZ, true);sleep_ms(1);stdio_init_all();stdio_set_translate_crlf(&stdio_usb, false);while (true) {sleep_ms(2);// write(1, (uint8_t []){0x04, 0x0E, 0x04, 0x01, 0xFD, 0xA5, 0x01}, 7);printf("jkalngjkadnfgndfjgknerungdfsl\n");}}
and is running at 480 MHz, no issues with printing at least visual, but some mistypes might be visible if they would happen. Using copy_to_ram. Good to know flash speed could be highly utilised even at 4 times divider.

Statistics: Posted by MatSOBDev2 — Mon Mar 25, 2024 8:53 pm



Viewing all articles
Browse latest Browse all 4886

Trending Articles