watterott / ATmega328PB-Testing

Atmel/Microchip ATmega328PB support for Arduino IDE
https://learn.watterott.com
76 stars 61 forks source link

USART1 instead of USART0 #47

Closed zdravke closed 5 years ago

zdravke commented 5 years ago

I'm suspecting optiboot_m328pb.hex is using USART0. Is there a way to use USART1 instead?

awatterott commented 5 years ago

Yes, as default USART0 is used. To use another USART interface, Optiboot has to be re-complied with UART set to the respective port: https://github.com/watterott/Wattuino/blob/master/software/Optiboot/optiboot.c#L127