[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] d'board io - write works, read ?
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] d'board io - write works, read ? |
Date: |
Tue, 22 Feb 2005 14:10:43 -0800 |
User-agent: |
Mutt/1.5.6i |
On Tue, Feb 22, 2005 at 03:36:20PM -0500, cswiger wrote:
> On Tue, 22 Feb 2005, Eric Blossom wrote:
>
> > > >Looks like we've got a problem reading back the contents of any FPGA
> > > >register. Need to figure out when and how we broke this.
> > >
> >
> > Looks like the FPGA is OK and that the problem is in the FX2 firmware.
> >
>
> There's fpga_write_reg but no sign of fpga_read_reg in
> usrp/firmware/src/usrp0, 1 or 2
The host lib (usrp_prims.cc) maps usrp_read_fpga_reg into
usrp_spi_read.
I have found and fixed the problem.
The problem is due to a compiler bug in SDCC 2.4.0.
I've rewritten spi.c (read_byte_msb) to work around the bug.
Give it an hour for sourceforge to sync the developer CVS to public
CVS, then update and rebuild usrp.
Eric