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.
This commit is contained in:
		
							parent
							
								
									37c601dbf6
								
							
						
					
					
						commit
						fd9b34aac4
					
				
					 2 changed files with 10 additions and 6 deletions
				
			
		|  | @ -85,9 +85,11 @@ F_CPU = 8000000 | ||||||
| F_CLOCK = $(F_CPU) | F_CLOCK = $(F_CPU) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| # Starting byte address of the bootloader, as a byte address. Note that the address given
 | # Starting byte address of the bootloader, as a byte address - computed via the formula
 | ||||||
| # in the AVRStudio fuse programming dialogue uses word addresses, which will have to be
 | #   BOOT_START = ((TOTAL_FLASH_BYTES - BOOTLOADER_SECTION_SIZE_BYTES) * 1024)
 | ||||||
| # doubled to obtain the starting byte address of the bootloader section.
 | #
 | ||||||
|  | # 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 | BOOT_START = 0x1E000 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -85,9 +85,11 @@ F_CPU = 8000000 | ||||||
| F_CLOCK = $(F_CPU) | F_CLOCK = $(F_CPU) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| # Starting byte address of the bootloader, as a byte address. Note that the address given
 | # Starting byte address of the bootloader, as a byte address - computed via the formula
 | ||||||
| # in the AVRStudio fuse programming dialogue uses word addresses, which will have to be
 | #   BOOT_START = ((TOTAL_FLASH_BYTES - BOOTLOADER_SECTION_SIZE_BYTES) * 1024)
 | ||||||
| # doubled to obtain the starting byte address of the bootloader section.
 | #
 | ||||||
|  | # 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 | BOOT_START = 0x1E000 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dean Camera
						Dean Camera