8.3.1 Atmel Studio Settings

The compiler, linker, and assembler setting, shown below are required while configuring for a specific device in Atmel Studio.

  1. Bootloader start address .text (refer to Table 8-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 8-3. Setting Bootloader Address Code Link Address
  2. Optimization Settings (as shown in the figure below).
    Figure 8-4. Optimization Settings
  3. Other Linker Settings (as shown in the figure below).
    Figure 8-5. Other Linker Settings