Page 1 of 1

Re: ASF 3.20.1 Update Doesn't Work

Posted: Wed Nov 12, 2014 1:13 pm
by mmlevin
Try to look contents of your *.cppproj file, it is very probable that there a multiple inclusions of "syscalls.c" in it. I has this problem too, it was after upgrding to new ASF library.

Re: ASF 3.20.1 Update Doesn't Work

Posted: Wed Nov 12, 2014 4:14 pm
by mmlevin
Yes, problem is that update script, or what is in AVR Studio, corrupted correct project file by duplicating some entries. Then linker tryes to link this fiiles few times what causes error 'multiple definition'. My project was cleanly builds before upgrading ASF too. Manual removing of duplicate entries fixed problem for me.

Re: ASF 3.20.1 Update Doesn't Work

Posted: Fri May 29, 2015 5:27 pm
by Elektrotiger
I have this problem with SAM4E ASF 3.23.1:
Error 1 multiple definition of `SystemInit' P:\Eigene Dateien\GccBoardProject2\GccBoardProject2\Debug/../src/ASF/sam/utils/cmsis/sam4e/source/templates/system_sam4e.c 77 1 GccBoardProject2
Error 2 multiple definition of `SystemCoreClockUpdate' P:\Eigene Dateien\GccBoardProject2\GccBoardProject2\Debug/../src/ASF/sam/utils/cmsis/sam4e/source/templates/system_sam4e.c 124 1 GccBoardProject2
Error 4 multiple definition of `SystemCoreClock' P:\Eigene Dateien\GccBoardProject2\GccBoardProject2\Debug\src\ASF\sam\utils\cmsis\sam4e\source\templates\system_sam4e.o 1 1 GccBoardProject2
Error 3 multiple definition of `system_init_flash' P:\Eigene Dateien\GccBoardProject2\GccBoardProject2\Debug/../src/ASF/sam/utils/cmsis/sam4e/source/templates/system_sam4e.c 205 1 GccBoardProject2
Error 6 ld returned 1 exit status collect2.exe 0 0 GccBoardProject2
Error 5 first defined here P:\Eigene Dateien\GccBoardProject2\GccBoardProject2\Debug\cmsis\src\system_sam4e.o 1 1 GccBoardProject2