Building Custom Bootloaders Recently I was checking out the Atmel's AVR series and I found the Atmega328PB. I am really familiar with Arduino's environment. So I thought if somehow we could bootloader it with Arduino bootloader. My doubt is how can I make a Arduino bootloader for it.
Here are a couple sources of ATmega328PB bootloaders based on optiboot:


https://github.com/watterott/ATmega328PB-Testing
https://github.com/ElektorLabs/Arduino


I haven't used either.
If you are set on making your own at least they can provide you with a reference.