diff --git a/Bootloaders/CDC/makefile b/Bootloaders/CDC/makefile index d39d2b21d64af525b2098c3581742464cb96c22b..cb05e0fbca156d4a434ab3d342a34221fc8b1f2f 100644 --- a/Bootloaders/CDC/makefile +++ b/Bootloaders/CDC/makefile @@ -85,9 +85,11 @@ F_CPU = 8000000 F_CLOCK = $(F_CPU) -# Starting byte address of the bootloader, as a byte address. Note that the address given -# in the AVRStudio fuse programming dialogue uses word addresses, which will have to be -# doubled to obtain the starting byte address of the bootloader section. +# Starting byte address of the bootloader, as a byte address - computed via the formula +# BOOT_START = ((TOTAL_FLASH_BYTES - BOOTLOADER_SECTION_SIZE_BYTES) * 1024) +# +# Note that the bootloader size and start address given in AVRStudio is in words and not +# bytes, and so will need to be doubled to obtain the byte address needed by AVR-GCC. BOOT_START = 0x1E000 diff --git a/Bootloaders/DFU/makefile b/Bootloaders/DFU/makefile index e53fca678c1da717c2811268c702b4dda686579f..dc516c314d554611bbf552979300268e1086e0e6 100644 --- a/Bootloaders/DFU/makefile +++ b/Bootloaders/DFU/makefile @@ -85,9 +85,11 @@ F_CPU = 8000000 F_CLOCK = $(F_CPU) -# Starting byte address of the bootloader, as a byte address. Note that the address given -# in the AVRStudio fuse programming dialogue uses word addresses, which will have to be -# doubled to obtain the starting byte address of the bootloader section. +# Starting byte address of the bootloader, as a byte address - computed via the formula +# BOOT_START = ((TOTAL_FLASH_BYTES - BOOTLOADER_SECTION_SIZE_BYTES) * 1024) +# +# Note that the bootloader size and start address given in AVRStudio is in words and not +# bytes, and so will need to be doubled to obtain the byte address needed by AVR-GCC. BOOT_START = 0x1E000