Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
766 Views

eCos USB Serial Slave device configuration

Hi , 

 

I am working on LPCXXX target and we are using ecos.  

Hope I have right repository, used synaptic manager to download right tools and relevant libraries and using config tool to generate .ecc file which has USB running in serial slave mode. 

 

I observed that <cyg/io/usb/usbs_at91.h> include file in tests/usbsserial_echo.c has another include file <pkgconf/devs_usbs_at91.h>. This file is not generated in build context. 

The alternative I used <pkgconf/io_usb_serial_slave_usbs_serial.h> since it had “usbs_at91_ep0” definition in it. 

The usbs_at91_ep0/1/2 is configured as end points using cdl file in config tool. 

 

What I am missing here to pick up or config? 

How to overcome the below compilation error? 

Request to help me. 

 

Thanks & Regards, 

Sunder 

 

--------------------------------- 

 

make[1]: Entering directory `/home/sunder/usb-lpc2468_build/io/usb/serial/slave/v3_0'  

arm-eabi-gcc -c -I/home/sunder/usb-lpc2468_install/include -I/opt/ecos-3.0/packages/io/usb/serial/slave/v3_0 -I/opt/ecos-3.0/packages/io/usb/serial/slave/v3_0/src -I/opt/ecos-3.0/packages/io/usb/serial/slave/v3_0/tests -I. -I/opt/ecos-3.0/packages/io/usb/serial/slave/v3_0/tests/ -finline-limit=7000 -Wall -Wpointer-arith -Wstrict-prototypes -Wundef -Wno-write-strings -mno-thumb-interwork -mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-exceptions -Wp,-MD,tests/usbserial_echo.tmp -o tests/usbserial_echo.o /opt/ecos-3.0/packages/io/usb/serial/slave/v3_0/tests/usbserial_echo.c  

arm-eabi-gcc -L/home/sunder/usb-lpc2468_install/lib -Ttarget.ld -o /home/sunder/usb-lpc2468_install/tests/io/usb/serial/slave/v3_0/tests/usbserial_echo tests/usbserial_echo.o -mno-thumb-interwork -mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib  

 

/home/sunder/usb-lpc2468_install/lib/libtarget.a(io_usb_serial_slave_usbs_serial.o): In function `usbs_serial_start':  

/opt/ecos-3.0/packages/io/usb/serial/slave/v3_0/src/usbs_serial.c:575: undefined reference to `usbs_at91_ep2'  

/opt/ecos-3.0/packages/io/usb/serial/slave/v3_0/src/usbs_serial.c:575: undefined reference to `usbs_at91_ep1'  

/home/sunder/usb-lpc2468_install/lib/libtarget.a(io_usb_serial_slave_usbs_serial.o):(.data.usbs_serial_ep0+0x0): undefined reference to `usbs_at91_ep0'  

/home/sunder/usb-lpc2468_install/lib/libtarget.a(io_usb_serial_slave_usbs_serial.o):(.data.usbs_ser0+0x0): undefined reference to `usbs_at91_ep1'  

/home/sunder/usb-lpc2468_install/lib/libtarget.a(io_usb_serial_slave_usbs_serial.o):(.data.usbs_ser0+0x4): undefined reference to `usbs_at91_ep2'  

collect2: ld returned 1 exit status  

make[1]: *** [/home/sunder/usb-lpc2468_install/tests/io/usb/serial/slave/v3_0/tests/usbserial_echo] Error 1  

make[1]: Leaving directory `/home/sunder/usb-lpc2468_build/io/usb/serial/slave/v3_0'  

make: *** [tests] Error 2  

-------------------------
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
40 Views

This forum is for eCos for the Nios target. You'll probably have more luck on an generic eCos forum.