The compiler, linker, and assembler setting, shown below are required while
configuring for a specific device in Atmel Studio.
Bootloader start address .text (refer
to Table 1) has to be defined in the linker setting for
linking the code to the bootloader start address (as shown in the figure below).
Start address should be given as byte address (multiplying word address by 2). For
e.g., if bootloader word address of ATmega328PB is 0x3C00, corresponding byte would
be 0x3C00 * 2 = 0x7800.
Figure 1. Setting Bootloader Address
Code Link Address
Optimization Settings (as shown in
the figure below).
Figure 2. Optimization
Settings
Other Linker Settings (as shown in
the figure below).