EmbDev.net

Forum: µC & Digital Electronics MicroC OS-II


Author: mti578 (Guest)
Posted on:
Attached files:

Rate this post
0 useful
not useful
I'm trying to get MicroC/OS-II version 2.52 running on a ATxmega128A1.
But I keep getting linker errors and I don't know what else I could do 
to fix them.

Here is the Linker Output:
avr-gcc -mmcu=atxmega128a1 -Wl,-Map=microC.map os_core.o os_flag.o 
os_mbox.o os_mem.o os_mutex.o os_q.o os_sem.o os_task.o os_time.o 
os_cpu_a.o os_cpu_c.o TEST.o     -o microC.elf
TEST.o: In function `Task2(void*)':
C:\Documents and Settings\mti578\My 
Documents\microC\default/../TEST.C:80: undefined reference to 
`OSTimeDlyHMSM(unsigned char, unsigned char, unsigned char, unsigned 
int)'
TEST.o: In function `Task1(void*)':
C:\Documents and Settings\mti578\My 
Documents\microC\default/../TEST.C:71: undefined reference to 
`OSTimeDlyHMSM(unsigned char, unsigned char, unsigned char, unsigned 
int)'
TEST.o: In function `TaskStartCreateTasks':
C:\Documents and Settings\mti578\My 
Documents\microC\default/../TEST.C:56: undefined reference to 
`OSTaskCreate(void (*)(void*), void*, unsigned char*, unsigned char)'
C:\Documents and Settings\mti578\My 
Documents\microC\default/../TEST.C:57: undefined reference to 
`OSTaskCreate(void (*)(void*), void*, unsigned char*, unsigned char)'
TEST.o: In function `TaskStart(void*)':
C:\Documents and Settings\mti578\My 
Documents\microC\default/../TEST.C:50: undefined reference to 
`OSTimeDlyHMSM(unsigned char, unsigned char, unsigned char, unsigned 
int)'
TEST.o: In function `main':
C:\Documents and Settings\mti578\My 
Documents\microC\default/../TEST.C:20: undefined reference to `OSInit()'
C:\Documents and Settings\mti578\My 
Documents\microC\default/../TEST.C:24: undefined reference to 
`OSTaskCreate(void (*)(void*), void*, unsigned char*, unsigned char)'
C:\Documents and Settings\mti578\My 
Documents\microC\default/../TEST.C:25: undefined reference to 
`OSStart()'
make: *** [microC.elf] Error 1
Build failed with 8 errors and 26 warnings...


But the OSxxx() functions are defined in the header file "uCOS_II.H" 
which is included in test.c.
And I'm building all the necessary .c files which include the 
declarations(? My english ain't the best) for those functions.
I even checked the .map file and the links for those functions are in 
that file. I attached the .map file.
I got the CPU-Port from micrium.com.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.