From: Grzegorz B. <grz...@gm...> - 2010-02-09 20:28:23
|
xc3sprog works, with FreeBSD 8 and the Spartan-3 Board 200K from Digilent, when this source code (in ioparport.cpp): if ((status & PCIII_TDO_MASK) && (!(data & PCIII_PROG_EN_N))) { fprintf(stderr,"Missing power for Parallel Cable III\n"); return NO_CABLE; is commented out. |
From: Wojciech A. K. <wk...@Fr...> - 2010-02-09 21:40:04
|
On Tue, Feb 09, 2010 at 09:28:16PM +0100, Grzegorz Behrens wrote: > xc3sprog works, with FreeBSD 8 and the Spartan-3 Board 200K from > Digilent, when this source code (in ioparport.cpp): > > if ((status & PCIII_TDO_MASK) && (!(data & PCIII_PROG_EN_N))) { > fprintf(stderr,"Missing power for Parallel Cable III\n"); > return NO_CABLE; > > is commented out. Thanks a lot Grzegorz for this report! -- Wojciech A. Koszek wk...@Fr... http://FreeBSD.czest.pl/~wkoszek/ |
From: Uwe B. <bo...@el...> - 2010-02-10 10:57:45
|
>>>>> "Grzegorz" == Grzegorz Behrens <grz...@gm...> writes: Grzegorz> xc3sprog works, with FreeBSD 8 and the Spartan-3 Board 200K Grzegorz> from Digilent, when this source code (in ioparport.cpp): Grzegorz> if ((status & PCIII_TDO_MASK) && (!(data & PCIII_PROG_EN_N))) Grzegorz> { fprintf(stderr,"Missing power for Parallel Cable III\n"); Grzegorz> return NO_CABLE; Could you please elaborate why this doesn't work on FreeBSD and your board? The check "works for me (R)" on linux and windows... -- Uwe Bonnes bo...@el... Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 162516 -------- Fax. 06151 164321 ---------- |
From: Grzegorz B. <grz...@gm...> - 2010-02-10 15:59:56
|
> Grzegorz> xc3sprog works, with FreeBSD 8 and the Spartan-3 Board 200K > Grzegorz> from Digilent, when this source code (in ioparport.cpp): > > Grzegorz> if ((status & PCIII_TDO_MASK) && (!(data & PCIII_PROG_EN_N))) > Grzegorz> { fprintf(stderr,"Missing power for Parallel Cable III\n"); > Grzegorz> return NO_CABLE; > > Could you please elaborate why this doesn't work on FreeBSD and your board? > The check "works for me (R)" on linux and windows... > -- > Uwe Bonnes bo...@el... With those particular lines, I'm getting this error : darkstar# ./xc3sprog -d /dev/ppi0 -j -v Release $Rev: 426 $ Free software: If you contribute nothing, expect nothing! Please provide feedback on success/failure/enhancement requests! Check Sourceforge SVN for updates! Missing power for Parallel Cable III Could not open parallel port /dev/ppi0 without, it looks like this : darkstar# ./xc3sprog -d /dev/ppi0 -j -v Release $Rev: 426 $ Free software: If you contribute nothing, expect nothing! Please provide feedback on success/failure/enhancement requests! Check Sourceforge SVN for updates! Found Xilinx Parallel Cable III Using built-in device list JTAG chainpos: 0 Device IDCODE = 0x01414093 Desc: XC3S200 JTAG loc.: 0 IDCODE: 0x01414093 Desc: XC3S200 IR length: 6 JTAG loc.: 1 IDCODE: 0xf5045093 Desc: XCF02S IR length: 8 Total bytes sent: 13 There is one interesting issue: using only once the software free from the "Missing power for Parallel Cable III" code block causes the original one (without any modifications) to work correctly. |
From: CeDeROM <tom...@gm...> - 2010-02-10 19:29:44
|
Hello! On Wed, Feb 10, 2010 at 3:59 PM, Grzegorz Behrens <grz...@gm...> wrote: > With those particular lines, I'm getting this error : > (...) > Missing power for Parallel Cable III > Could not open parallel port /dev/ppi0 > > without, it looks like this : > (...) > Found Xilinx Parallel Cable III This happens because code does not want to run when cable is not connected to a device, or the device is not powered on. Reading parallel port might look different in different OS - so this could be related to some ioctl reading parallel port control lines? Where is the "power detect" line located - at data lines or control lines? Maybe the first invocation of the program sets the control register of the parallel port and the second reads the value..? What happens if the port is being read twice (two read functions before to detect power? Regads, Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info |