Bug 2861

Summary: Not for all UC3C chips exists a GNU LD script file
Product: Atmel Software Framework Reporter: Nils Reichert <Nils.Reichert>
Component: avr32Assignee: ASF Maintainers <DL-Global-ASF-Maintainers>
Status: RESOLVED INVALID    
Severity: normal CC: DL-Global-ASF-Developers
Priority: normal priority    
Version: v3.3.x   
Target Milestone: ---   
Hardware: Other   
OS: Standalone   
Public Description:
Development Branch:
Whiteboard:

Description Nils Reichert 2012-09-12 20:16:39 CEST
When trying to use the functionality from FLASHC example (using nvram to store
data that would not fit in userpage only) I run into the problem, that I was
unable to find the correct 'link_uc3c264c.lds' file anywhere in any Atmel
directory. Only for 'link_uc3c0512c.lds' and a few other models, but I guess I
cannot/should not  try to use 'link_uc3l064.lds' for uc3c264c, or? The one from
the example contains in PHDRS the definition for FLASH_NVRAM, which does not
exist in all lds files.

It would be nice to have a directory that contains linker files for ALL chips,
since I am not sure what lds file I should use as base to modify it.
I guess as a good explanation about how to define the own lds file is the
document "doc32158.pdf" (Rev. 32158A-AVR-01/11) with the title "AVR32795: Using
the GNU Linker Scripts on AVR UC3 Devices". Should that be sufficient?
Comment 1 Nils Reichert 2012-09-13 11:55:49 CEST
Following document AVR32795, I found in path
"C:\Program Files (x86)\Atmel\Atmel Studio
6.0\extensions\Atmel\AVRGCC\3.4.1.81\AVRToolchain\avr32\lib\ldscripts" the
default linker scripts taht are used.

The file with the extension .x is the default linker script (just open it to
see that it has similar content as the xxx.lds files from the examples).

Sorry for this bug