Quantcast
Channel: Infineon Forums
Viewing all articles
Browse latest Browse all 9892

XMC1300 GNU GCC Linker HELP

$
0
0
Been stuggling with the for 2 days not. Trying to use the GNU GCC compiler with the XMCLibs sdk. I am using the GCC startup_XMC1300.S along with the XMC1300x0032.ld

using the following gcc command

Code:

arm-none-eabi-gcc -g -Wall -O0 --specs=nano.specs -mthumb -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -mcpu=cortex-m0 -o prog.out -T XMC1300x0032.ld -DUC_FAMILY=XMC1 -DXMC1302_T016x0032 -DPROD [-I INCLUDE FILES] [SOURCE FILES] startup_XMC1300.S
with that I keep receiving

Code:

(.text+0x68): undefined reference to `__bss_start__'
(.text+0x6c): undefined reference to `__bss_end__'

I can use -nostartfiles to get rid of it but then I get
Code:

init.c:(.text.__libc_init_array+0x12): undefined reference to `_init'
Please help! I have been googling for hours!

Viewing all articles
Browse latest Browse all 9892

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>