ASF 3.20.1 Update Doesn't Work

All design tool related questions: compiler, assembler, linker. Embedded programming questions: assembler, C code.

Moderator: nferre

mmlevin
Posts: 2
Joined: Tue Mar 18, 2008 11:49 am

Re: ASF 3.20.1 Update Doesn't Work

Wed Nov 12, 2014 1:13 pm

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.
mmlevin
Posts: 2
Joined: Tue Mar 18, 2008 11:49 am

Re: ASF 3.20.1 Update Doesn't Work

Wed Nov 12, 2014 4:14 pm

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.
Elektrotiger
Posts: 3
Joined: Fri May 29, 2015 4:46 pm

Re: ASF 3.20.1 Update Doesn't Work

Fri May 29, 2015 5:27 pm

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

Return to “Development Tools”

Who is online

Users browsing this forum: No registered users and 1 guest