-
Notifications
You must be signed in to change notification settings - Fork 270
ATmega328P and ATmega328PB 8Mhz Optiboot bootloader doesn't work at 115200 baudrate #367
Copy link
Copy link
Open
Description
Hi,
According to the Optiboot precompiled-binaries table it should support 115200 baudrate at 8MHz clock frequency.
I tested all the supported baudrates on my ATmega328P and ATmega328PB with their internal 8Mhz clock-
and found out that the 115200 is not working!
platformio.ini:
[env]
platform = atmelavr
framework = arduino
board = ATmega328P
upload_speed = 115200 ; 9600 19200 38400 57600 115200 230400 250000 460800 500000 1000000
board_build.f_cpu = 8000000L
board_hardware.oscillator = internal
[env:fuses_bootloader]
upload_protocol = usbasp
board_bootloader.type = optiboot
board_bootloader.speed = ${env.upload_speed}
[env:test_upload]After uploading the bootloader and setting the fuses with pio run -e fuses_bootloader -t bootloader (when upload_speed = 115200),
running pio run -e test_upload -t upload resulting in the following timeout errors:
Configuring upload protocol...
AVAILABLE: arduino
CURRENT: upload_protocol = arduino
Looking for upload port...
Auto-detected: COM30
Uploading .pio\build\test_upload\firmware.hex
avrdude error: programmer is not responding
avrdude warning: attempt 1 of 10: not in sync: resp=0x00
avrdude error: programmer is not responding
avrdude warning: attempt 2 of 10: not in sync: resp=0x00
...
Maybe we got the wrong 115200 precompiled-binary?
or the 8MHz internal clock gets too much error for 115200 baudrate?
(On external 16MHz clock the 115200 baudrate works).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels