1/1
Help, Problem making adv_debug_sys/Software
by landicefu on Nov 12, 2009 |
landicefu
Posts: 3 Joined: Mar 16, 2009 Last seen: Jun 26, 2015 |
||
Hi everyone,
My name is Landice. I'm a student in Taiwan. I'm new to OpenRISC1200 and wishbone, but I need a SoC platform to finish my graduate degree, so I found the work minsoc. I start to read the documents, code yesterday. When I tried to make the adv_debug_sys/Software I get some error message as following cable_ft2232.o: In function `my_ftdi_set_event_char': /home/landice/System_Design/examples/minsoc/minsoc/rtl/verilog/adv_debug_sys/Software/adv_jtag_bridge/cable_ft2232.c:148: undefined reference to `ftdi_set_event_char' cable_ft2232.o: In function `my_ftdi_usb_purge_tx_buffer': /home/landice/System_Design/examples/minsoc/minsoc/rtl/verilog/adv_debug_sys/Software/adv_jtag_bridge/cable_ft2232.c:118: undefined reference to `ftdi_usb_purge_tx_buffer' cable_ft2232.o: In function `my_ftdi_usb_purge_rx_buffer': /home/landice/System_Design/examples/minsoc/minsoc/rtl/verilog/adv_debug_sys/Software/adv_jtag_bridge/cable_ft2232.c:113: undefined reference to `ftdi_usb_purge_rx_buffer' collect2: ld returned 1 exit status make: *** [adv_jtag_bridge] Error 1 I went to /usr/include/ftdi.h to look for these definition but I couldn't find them. I use the latest libftdi-dev library install by 'apt-get install libftdi-dev' under Ubuntu. This problem may seem stupid, but I'm new to linux and open source SW/HW. Thanks a lot. Landice Fu |
RE: Help, Problem making adv_debug_sys/Software
by jeremybennett on Nov 12, 2009 |
jeremybennett
Posts: 815 Joined: May 29, 2008 Last seen: Jun 13, 2019 |
||
Hi Landice, You will probably get a better response if you ask this question on the OpenRISC forum. That is where the minsoc/ORPSoC experts tend to be. Best wishes Jeremy
-- |
RE: Help, Problem making adv_debug_sys/Software
by landicefu on Nov 15, 2009 |
landicefu
Posts: 3 Joined: Mar 16, 2009 Last seen: Jun 26, 2015 |
||
ok thanks
|
RE: Help, Problem making adv_debug_sys/Software
by rfajardo on Nov 22, 2009 |
rfajardo
Posts: 306 Joined: Jun 12, 2008 Last seen: Jan 6, 2020 |
||
Hi Landice,
Jeremy was right, I don't generally check this forum but I have just noticed your post (late but now). There are some things you should check: first: did you edit the Makefile? It is set to cygwin by default, you have to change it to linux. second: are you sure you installed libftdi, try it again to be sure, "sudo apt-get install libftdi-dev", I'm using ubuntu-9.10, used 9.04 and also have installed it on debian 5 (lenny), it always worked after installing it. Also libusb-dev was necessary (sudo apt-get install libusb-dev). In /usr/include/ftdi.h I actually found the missing function from your error (int ftdi_set_event_char(struct ftdi_context *ftdi, unsigned char eventch , unsigned char enable);). third: if your cable isn't a ftdi based cable you can easily switch it off and compile adv_jtag_bridge without it. To do it just edit Makefile changing SUPPORT_FTDI_CABLES=true to false. I hope that helps you to get it running. On which board are you planing to use, install minsoc? Best regards, Raul |
RE: Help, Problem making adv_debug_sys/Software
by nyawn on Nov 23, 2009 |
nyawn
Posts: 173 Joined: Dec 19, 2008 Last seen: May 31, 2023 |
||
I'd have responded sooner, but I've been travelling for a week...
The errors you posted are link errors. Are these all the errors, or are there others? I would also expect compiler warnings (if the functions don't appear in the header). If there's a problem with the libftdi installation, then I'd also expect more errors: one undefined reference for each call to a libftdi function. I suppose it's also possible that the libftdi interface has changed since the cable driver was written...but it would have to be very recent... |
1/1