Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

XMC™ Forum Discussions

mh09
Level 1
First reply posted First question asked Welcome!
Level 1

Hi,

I followed this link to enable XMC_DEBUG/printf() function.

https://community.infineon.com/t5/DAVE/DAVE-TIP-of-the-day-Semihosting-in-DAVEv4/td-p/309725?p=11700...

 

However, I got this error at the end. Can you guide me to resolve this? Thank you

<Error content>

"\"C:\\Infineon\\Tools\\DAVE IDE\\4.5.0.202105191637\\eclipse\\ARM-GCC-49\\bin\\make\"" --output-sync -j8 all
arm-none-eabi-gcc: fatal error: c:/infineon/tools/dave ide/4.5.0.202105191637/eclipse/arm-gcc-49/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/nosys.specs: attempt to rename spec 'link_gcc_c_sequence' to already defined spec 'nosys_link_gcc_c_sequence'
'Building target: 1300_LC.elf'
compilation terminated.
'Invoking: ARM-GCC C Linker'
make: *** [1300_LC.elf] Error 1
"C:/Infineon/Tools/DAVE IDE/4.5.0.202105191637/eclipse/ARM-GCC-49/bin/arm-none-eabi-gcc" -T"../linker_script.ld" -nostartfiles -Xlinker --gc-sections -specs=nano.specs -specs=nosys.specs -u _printf_float -u _scanf_float -Wl,-Map,"1300_LC.map" -specs=rdimon.specs -specs=nosys.specs -mcpu=cortex-m0 -mthumb -g -gdwarf-2 -o "1300_LC.elf" "@objects.rsp" -lm
makefile:54: recipe for target '1300_LC.elf' failed

0 Likes
1 Solution
AlenAn14
Moderator
Moderator 500 replies posted 100 solutions authored 250 replies posted
Moderator

Hi @mh09 ,

In step 1 of the Semihosting in DAVEv4, you see the following 

- Linker Settings: Select “ARM-GCC C Linker  Miscellaneous  Other Flags:” , enter “-specs=rdimon.specs -specs=nosys.specs”

Instead of adding "-specs=rdimon.specs -specs=nosys.specs", only add "-specs=rdimon.specs" here as shown below:

AlenAn14_0-1660478601869.png

 

Please try the build again after making the above mentioned change.

Warm Regards
Alen

 

View solution in original post

0 Likes
2 Replies
Alakananda_BG
Moderator
Moderator 50 likes received 250 sign-ins 250 replies posted
Moderator

Hi @mh09 ,

Can you please let us know if you have changed the extension/type of some of the files?

For example changing main.c to main.cpp

Regards

 

Alakananda
0 Likes
AlenAn14
Moderator
Moderator 500 replies posted 100 solutions authored 250 replies posted
Moderator

Hi @mh09 ,

In step 1 of the Semihosting in DAVEv4, you see the following 

- Linker Settings: Select “ARM-GCC C Linker  Miscellaneous  Other Flags:” , enter “-specs=rdimon.specs -specs=nosys.specs”

Instead of adding "-specs=rdimon.specs -specs=nosys.specs", only add "-specs=rdimon.specs" here as shown below:

AlenAn14_0-1660478601869.png

 

Please try the build again after making the above mentioned change.

Warm Regards
Alen

 

0 Likes