Closed aarobc closed 1 year ago
That's because the switch between the 16 and 20 MHz oscillator requires the SYSCFG0 fuse to be changed. Arduino does this automatically on upload, but currently, PlatformIO requires you to manually change the fuses. If you use the PlatformIO template I've provided, you can run pio run -t fuses
.
I've recently worked to switch over to platformio, and found that while you can easily set the clockspeed via arduino, it doesn't work if set via platformio.
my config file:
If I upload a simple serial script using 20mhz that outputs "hello world" the output is garbled. This issue does not occur with arduino 20mhz upload.