aboutsummaryrefslogtreecommitdiffstats
path: root/Bootloaders
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-07-30 05:13:05 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-07-30 05:13:05 +0000
commitfd9b34aac48ad969b9ef9e4a9d7120ae924cec39 (patch)
tree57ebd9494ab7dcf02e502f4cad4fdf2e9ef303ce /Bootloaders
parent37c601dbf6defbd7d2891b5671d19122159de2b6 (diff)
downloadlufa-fd9b34aac48ad969b9ef9e4a9d7120ae924cec39.tar.gz
lufa-fd9b34aac48ad969b9ef9e4a9d7120ae924cec39.tar.bz2
lufa-fd9b34aac48ad969b9ef9e4a9d7120ae924cec39.zip
Add the formula used to obtain the bootloader start address to the Bootloader makefiles to help users compute the correct address for each device based on the bootloader section size.
Diffstat (limited to 'Bootloaders')
-rw-r--r--Bootloaders/CDC/makefile8
-rw-r--r--Bootloaders/DFU/makefile8
2 files changed, 10 insertions, 6 deletions
diff --git a/Bootloaders/CDC/makefile b/Bootloaders/CDC/makefile
index d39d2b21d..cb05e0fbc 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 e53fca678..dc516c314 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