Hallo Forum!
Ich möchte das Digilent Nexys4 [1] mit xc3sprog [2] konfigurieren.
Und zwar unter MacOS X.
Auf dem Board ist als integrierter Programmer ein FTDI-Chip (FT2232H)
verbaut, auch wenn die Seite (Seite 6) im Schaltplan [3] wieder mal
'geschwärzt' ist.
Der Chip/Programmer wird vom System erstmal erkannt:
1 | $ system_profiler SPUSBDataType
|
2 | ...
|
3 | Digilent USB Device:
|
4 |
|
5 | Product ID: 0x6010
|
6 | Vendor ID: 0x0403 (Future Technology Devices International Limited)
|
7 | Version: 7.00
|
8 | Serial Number: 210xxxxxxxxx
|
9 | Speed: Up to 480 Mb/sec
|
10 | Manufacturer: Digilent
|
11 | Location ID: 0x26200000 / 3
|
12 | Current Available (mA): 500
|
13 | Current Required (mA): 94
|
14 | ...
|
xc3sprog ließ sich auch irgendwie compilieren (neuste Version aus dem
SVN), auch wenn da irgendwas mit libftd2xx nicht ganz passt:
1 | $ cmake ..
|
2 | -- checking for module 'libftd2xx'
|
3 | -- package 'libftd2xx' not found
|
4 | -- Configuring done
|
5 | -- Generating done
|
Die Kerneltreiber für FTDI wurden deaktiviert:
1 | $ sudo kextunload -b com.FTDI.driver.FTDIUSBSerialDriver
|
2 | $ sudo kextunload -b com.apple.driver.AppleUSBFTDI
|
Aber xc3sprog findet keine JTAG-Chain :-(
1 | $ ./xc3sprog -v -c ftdi
|
2 | XC3SPROG (c) 2004-2011 xc3sprog project $Rev: 768 $ OS: Darwin
|
3 | Free software: If you contribute nothing, expect nothing!
|
4 | Feedback on success/failure/enhancement requests:
|
5 | htttp://sourceforge.net/mail/?group_id=170565
|
6 | Check Sourceforge for updates:
|
7 | htttp://sourceforge.net/projects/xc3sprog/develop
|
8 |
|
9 | Using built-in device list
|
10 | Using built-in cable list
|
11 | Cable ftdi type ftdi VID 0x0403 PID 0x6010 dbus data 00 enable 0b cbus data 00 data 00
|
12 | Using Libftdi, Using JTAG frequency 1.500 MHz from undivided clock
|
13 | No JTAG Chain found
|
14 | USB transactions: Write 5 read 2 retries 0
|
Die Variante mit dem Digilent-HS1-Kabel sieht so aus:
1 | $ ./xc3sprog -v -c jtaghs1
|
2 | XC3SPROG (c) 2004-2011 xc3sprog project $Rev: 768 $ OS: Darwin
|
3 | Free software: If you contribute nothing, expect nothing!
|
4 | Feedback on success/failure/enhancement requests:
|
5 | htttp://sourceforge.net/mail/?group_id=170565
|
6 | Check Sourceforge for updates:
|
7 | htttp://sourceforge.net/projects/xc3sprog/develop
|
8 |
|
9 | Using built-in device list
|
10 | Using built-in cable list
|
11 | Cable jtaghs1 type ftdi VID 0x0403 PID 0x6010 Desc "Digilent Adept USB Device" dbus data 80 enable 8b cbus data 00 data 00
|
12 | Could not open FTDI device (using libftdi): device not found
|
13 | FTD2XX Open failed
|
14 | usage: xc3sprog -c cable [options] <file0spec> <file1spec> ...
|
15 | List of known cables is given with -c follow by no or invalid cablename
|
16 | filespec is filename:action:offset:style:length
|
17 | action on of 'w|W|v|r|R'
|
18 | ....
|
Unter Windows mit Impact bzw. Vivado funktioniert natürlich alles.
Hat jemand eine Idee, was ich noch probieren könnte?
Grüße,
Ralf
[1]
http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,400,1184&Prod=NEXYS4
[2] http://sourceforge.net/projects/xc3sprog/
[3] http://www.digilentinc.com/Data/Products/NEXYS4/Nexys%204_sch.pdf
P.S.: Ein paar Links wurden wegen dem Spamschutzfilter auf htttp
geändert.