ASF Bugzilla – Bug 3010
Problem: I cannot create a empty project with this controller ATSAM3S4B without errors
Last modified: 2013-02-07 14:38:53 CET
i have a problem to compile a empty project for "ATSAM3S4B". No Hardware is
I get 17 errors from "startup_sam3s.c" and "collect2.exe" like:
1: undefined reference to '_srelocate'
2: undefined reference to '_szero'
3: undefined reference to '_sfixed'
4: undefined reference to '_erelocate'
17: ld returned 1 exit status
Atmelstudio 6 SP2 (1996)
Windows 7 64bit
It ist a bug or a local problem ?
(In reply to comment #0)
We fixed this problem:
Add to Toolchain->Arm/GNU Linker ->Libraries-> Lib search path this:
C:\Program Files (x86)\Atmel\Atmel Studio
and under Toolchain->Arm/GNU Linker ->Miscellanesous add this in front of the
(In reply to comment #1)
Good job, it is a bug indeed, thanks for reporting. This is a known issue
(already reported in bug2900) which I believe has been fixed. The fix should be
available in the next Studio release. In the meantime, as a workaround and as
you already found out, you may try to explicitly set, in the project settings,
the SAM3S4B GCC linker script found in the ASF (in the src/asf folder it should
be under sam/utils/linker_scripts/sam3s/sam3s4/gcc).
*** This bug has been marked as a duplicate of bug 2900 ***
(In reply to comment #2)
Ok, thanks for you answer.
We have solved (not perfekt) the problem to implement this path. There is no
gcc version number in the path.
At Last we try the "CMSIS Update from Atmel". The function copy the linker
files in the project folder. After that we must delete the src from cmsis dir.
Then it worked perfekt.