It's a stupid question: the file *.hex of the bootloader has sizes around 6 KB and from what I have read the AtMega168 for example admit only up to 1024 words (2048 bytes) for the bootloader.
Somebody can explain to me how I can convert *.hex windows size to bootloader size! I am in a dark matter soap.
If you are building bootlaoders and want to see if they fit, I think the .bin file is the actual binary image, but maybe someone else can confirm or deny.
C:\Arduino\ARDUIN~1\hardware\BOOTLO~1\Serpentino>avr-size atmegaBOOT_168_serpent
ino.hex
text data bss dec hex filename
0 1882 0 1882 75a atmegaBOOT_168_serpentino.hex
(serpentino is my project - cute isn't)
And on ATMega168
C:\Arduino\ARDUIN~1\hardware\BOOTLO~1\atmega168>avr-size ATmegaBOOT_168_diecimil
a.hex
text data bss dec hex filename
0 2086 0 2086 826 ATmegaBOOT_168_diecimila.hex
But into the Atmel Datasheet, there is only 0x400 bytes spaces for the boot loader. Or is it in Word ? 0x400 = 0x800 but it smaller than the diecimil Bootloader size ? What's wrong ?
Somebody can give it's opinion on this matter ?
Many thanks in advance,
Pierre. :