Guest shashi Posted March 11, 2011 Report Share Posted March 11, 2011 Hi folks, Just got my hands on the Papilio 250K through the Indiashop. I successfully compiled the butterflyloader on macosx. I had to edit the configure file and comment out the lines 4076 to 4078 i.e. added the following # to the corresponding lines: #PKG_CHECK_MODULES(libftdi, libftdi >= 0.16, # CFLAGS="$CFLAGS $libftdi_CFLAGS"; # LIBS="$LIBS $libftdi_LIBS") Initially followed the description as per http://codedstructure.blogspot.com/2010/08/libftdi-on-mac-os-x.html to install ftdi on my snow leopard macosx system. In short it needed the download and install of the following (straightforward ./configure && make install from source) libraries: * libusb (tested with version 1.0.8) * pkg-config (tested with version 0.25) * libusb-compat (test with version 0.1.3) * libftdi (tested with version 0.18) Finally, the butteflyloader compiled via make. The last linking stage failed with errors that it could not understand the ftdi related functions (ld error). This was solved by running the last g++ command from outside the makefile with the added option of -l ftdi. The final g++ command run: g++ -g -O2 -o butterflyprog butterfly.o bitfile.o devicedb.o iobase.o jtag.o progalgspi.o progalgxc3s.o tools.o ioftdi.o -lftdi So far I have not tried writing to the board. Only tested it in the detection commands as below: $ ./butterflyprog -vj Using built-in device list JTAG chainpos: 0 Device IDCODE = 0x11c1a093 Desc: XC3S250E USB transactions: Write 3 read 2 retries 4 -- and $ ./butterflyprog -vc Using built-in device list JTAG chainpos: 0 Device IDCODE = 0x11c1a093 Desc: XC3S250E ISC_Done = 1 ISC_Enabled = 0 House Cleaning = 1 DONE = 1 USB transactions: Write 4 read 3 retries 6 Now what is really needed is to check whether the arduino programming environment works on macosx. Of course there's no Xilinx tool on macosx so eventually I will have to get back to Linux. But it is nice to see that the loader software is fairly cross-platform.... Thanks to open software and hardware! Best wishes, Shashi -- Shashikiran Ganesh http://www.prl.res.in/~shashi http://sarovar.org/users/shashi Registered linux user number: 39542 (http://counter.li.org) Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.