[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] Couple USRP code questions
From: |
David Carr |
Subject: |
[Discuss-gnuradio] Couple USRP code questions |
Date: |
Thu, 05 Aug 2004 23:11:03 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040627 MultiZilla/1.6.4.0b |
I've just ported quite a bit of the USRP code to the SSRP. Its gone
remarkably well thus far thanks to Matt and Eric's well written and
portable code. Way to go guys. I have two current issues however and I
was wondering if anyone could shed some light on them.
I ported over test_fusb and its dependencies (usrp_prims.*,etc) however
the call to usb_claim_interface in ssrp_open_rx_interface always fails.
I have the FX2 loaded with firmware that has EP6 set as an IN BULK 512
byte endpoint. I can read data from it using fx2_programmer
successfully. This call seems fairly straightforward to me, what might
I be doing wrong? [My current development tarball is at
http://oscar.dcarr.org/ssrp/software/firmware/ssrp-0.2.0.tar.gz for more
details]. Is the interface argument anything more than a unique number?
I clearly need to read up on libusb...
Secondly,
When I try to build my configure.in, which uses the USRP macro
USRP_LIBUSB, autoconf barfs this up:
autoconf: Undefined macros:
***BUG in Autoconf--please report*** AC_LANG_PUSH
***BUG in Autoconf--please report*** AC_LANG_POP
here's a copy of my configure.in
AC_INIT
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(ssrp,0.2.0)
AC_PATH_PROGS(FX2P,fx2_programmer)
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
#USRP_LIBUSBDAVID //FIXME dirty hack
USRP_LIBUSB
USRP_SET_FUSB_TECHNIQUE
# Define where to look for USRP includes
USRP_INCLUDES='-I$(top_srcdir)/host/lib -I$(top_srcdir)/firmware/include'
AC_SUBST(USRP_INCLUDES)
#
USRP_DEFINES=''
AC_SUBST(USRP_DEFINES)
STD_DEFINES_AND_INCLUDES="$DEFINES $USRP_INCLUDES"
AC_SUBST(STD_DEFINES_AND_INCLUDES)
AC_OUTPUT(Makefile \
config/Makefile \
firmware/Makefile \
firmware/include/Makefile \
firmware/src/Makefile \
firmware/src/ioA/Makefile \
host/Makefile \
host/apps/Makefile \
host/lib/Makefile
)
Thanks for the help,
David Carr
- [Discuss-gnuradio] Couple USRP code questions,
David Carr <=