-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ATmega328PB | Uploading a sketch via serial stops bootloader from working #228
Comments
Hi,
For some reasons bootloader on UART0 does not work! (avrdude: stk500_getsync(): not in sync...) Ciao. |
Really appreciate it, got couple of 328PB's, don't want them collecting dust. |
However, the autobaud urboot firmware works fine. In paticular, the following hex file is compatible with optiboot/arduino.
|
The fuse bits above are E0 DE FC, which set the boot section size to 256 bytes, that can't be right?! |
It is correct. The boot size is set to 256 words, and one word is two bytes. |
Ah I did not notice the default optiboot hex file is 57600bps. Now it works. And the Optiboot hex file will hard code the signature the same as ATmega328P and not ATmega328PB.
|
For the MiniCore bootloader files (Optiboot_flash), I can not get 115200bps to work (same for Optiboot), but 250000bps works fine.
|
I think this issue can be closed, as UART0 works well. |
I have made a couple of minimal configuration boards for ATmega328P with a 16mhz crystal, 15k reset pull-up and a filtering capacitor. Only when using the PB variant (with all the board settings being proper), when burning the bootloader, everything is fine, until when I upload an empty sketch for the first time after burning the bootloader, that works. Second time trying to upload the sketch and the ATmega328PB stops responding.
MiniCore v2.1.3
I tried the following:
The text was updated successfully, but these errors were encountered: