/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Problem...

Username:     
Password:     
             

Forum

# 1   2010-05-05 21:29:32 Problem...

pszm
New member
From: POLAND, Kraków
Registered: 2010-04-04
Posts: 2

Problem...

I try to load this application to my Primer2 and get following message:
===================================
Linking file Application.o...
Link Failed (file: 'ap.o')ap.o: In function `Application_Ini':
C:\Dev\ESM\starterapp\Exe/Application.c:69: undefined reference to `USB_Istr'
C:\Dev\ESM\starterapp\Exe/Application.c:69: undefined reference to `USB_Istr'
C:\Dev\ESM\starterapp\Exe/Application.c:72: undefined reference to `Set_System'
C:\Dev\ESM\starterapp\Exe/Application.c:73: undefined reference to `USB_Interrup
ts_Config'
C:\Dev\ESM\starterapp\Exe/Application.c:74: undefined reference to `Set_USBClock
'
C:\Dev\ESM\starterapp\Exe/Application.c:75: undefined reference to `USB_Init'
ap.o: In function `Application_Handler':
C:\Dev\ESM\starterapp\Exe/Application.c:98: undefined reference to `printusb'
C:\Dev\ESM\starterapp\Exe/Application.c:101: undefined reference to `printusb'
c:/program files/raisonance/ride/arm-gcc/bin/../lib/gcc/arm-none-eabi/4.3.2/../.
./../../arm-none-eabi/lib/thumb2\libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
sbrkr.csad.text+0x12): undefined reference to `_sbrk'
c:/program files/raisonance/ride/arm-gcc/bin/../lib/gcc/arm-none-eabi/4.3.2/../.
./../../arm-none-eabi/lib/thumb2\libc.a(lib_a-writer.o): In function `_write_r':

writer.csad.text+0x16): undefined reference to `_write'
c:/program files/raisonance/ride/arm-gcc/bin/../lib/gcc/arm-none-eabi/4.3.2/../.
./../../arm-none-eabi/lib/thumb2\libc.a(lib_a-closer.o): In function `_close_r':

closer.csad.text+0x12): undefined reference to `_close'
c:/program files/raisonance/ride/arm-gcc/bin/../lib/gcc/arm-none-eabi/4.3.2/../.
./../../arm-none-eabi/lib/thumb2\libc.a(lib_a-fstatr.o): In function `_fstat_r':

fstatr.csad.text+0x14): undefined reference to `_fstat'
c:/program files/raisonance/ride/arm-gcc/bin/../lib/gcc/arm-none-eabi/4.3.2/../.
./../../arm-none-eabi/lib/thumb2\libc.a(lib_a-isattyr.o): In function `_isatty_r
':
isattyr.csad.text+0x12): undefined reference to `_isatty'
c:/program files/raisonance/ride/arm-gcc/bin/../lib/gcc/arm-none-eabi/4.3.2/../.
./../../arm-none-eabi/lib/thumb2\libc.a(lib_a-lseekr.o): In function `_lseek_r':

lseekr.csad.text+0x16): undefined reference to `_lseek'
c:/program files/raisonance/ride/arm-gcc/bin/../lib/gcc/arm-none-eabi/4.3.2/../.
./../../arm-none-eabi/lib/thumb2\libc.a(lib_a-readr.o): In function `_read_r':
readr.csad.text+0x16): undefined reference to `_read'
collect2: ld returned 1 exit status

         !!! Error 103: Fatal error detected. Terminating program.
===================================================
Pls help....

Offline

 

# 2   2010-05-07 10:33:14 Problem...

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: Problem...

Hi,

It seems that this project can running only under Ride7, but cannot be loaded by Circle_Mgr, that can only link one file (.o or .lib) with CircleOS, and not 2 files (application.o + starterapp.lib, in this case).

Yves

Offline

 

Board footer