[Icc-avr] AT90USB162 Possible Compliler error!

John Baraclough j_baraclough at zetnet.co.uk
Thu Jan 10 08:38:42 PST 2008


The first one is a minor error in the map file summary. As you can see 
from the lines you have quoted from that summary, the compiler is 
putting the data at the correct addresses. 0x0100->0x02ff is 512 bytes.

Table 23-8 on page 239 of the AT90USB162 data sheet says that the boot 
sizes are 512, 1024, 2048 or 4096 bytes. The fuses are selecting the 
boot size in words not bytes.

However you do seem to have uncovered an inconsistency in the compiler 
options, as it puts the boot loader sizes in words when they should be 
in bytes. That's one which Richard needs to look at.

John


Andrew wrote:
>
> Hi,
>
>  
>
> I am using ICCAVR 7.15 (downloaded from the imagecraft website), in 
> the project i have selected AT90USB162 and left everything else as 
> default. When i build the project and then go to  View -> File Map 
> Summary -> With Full size info. The page displayed has the following 
> line: -
>
>  
>
> "sram size is 256 bytes
> sram used for
> - variables = 320 (0x140) bytes from 0x0100 to 0x023F
> - heap, s/w stack = 162 (0xA2) bytes from 0x0240 to 0x02E1
> - h/w stack = 30 (0x1E) bytes from 0x02E2 to 0x02FF
>
> eeprom size is 512 bytes
> no eeprom area found"
>
>  
>
> As the AT90USB162 has 512 bytes of SRAM is the complier only using 
> 256? or is it a simple error in the way the 'File Map summary' page 
> was created. There is also another error regarding the complier 
> options screen where the device, stack and boot loader size is 
> selected. The only Boot sizes available for selection are: -
>
> 512K
>
> 1K
>
> 2K
>
> 4K
>
>  
>
> But the AT90USB162 has the following that can be selected using the 
> fuses: -
>
>  
>
> 256
>
> 512
>
> 1024
>
> 2048
>
>  
>
> So the list is wrong
>
>  
>
> Best Regards,
>
>  
>
> Andy
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Icc-avr mailing list
> Icc-avr at imagecraft.com
> http://dragonsgate.net/mailman/listinfo/icc-avr
>   



More information about the Icc-avr mailing list