mikejohnson Posted July 2, 2017 Report Share Posted July 2, 2017 Hi I bought one of these DUO 2MB boards a while ago but I've just got to start playing with it. I'm failing pretty early on, and searching older posts suggests I'm not the first. The message I'm getting is: Programming to SPI Flash Using devlist.txt Invalid chain position 0, position must be less than 0 (but not less than 0). Unknown Papilio Board Using devlist.txt USB transactions: Write 2 read 1 retries 0 Invalid chain position 0, position must be less than 0 (but not less than 0). IOException: Cannot open file I have swapped cables, and tried an account with no spaces in the name. No luck. Anyone got any ideas or am I looking at a faulty board? Quote Link to comment Share on other sites More sharing options...
mkarlsson Posted July 3, 2017 Report Share Posted July 3, 2017 This cryptic error message means that it can't find a jtag device connected to the FTDI chip (the error message have been changed in later versions of papilioprog). There are two possible cause for this error - you either have several FTDI devices connected to the computer and papilioprog is talking to the wrong one, or the papilio board has a problem with the jtag wiring from the FTDI chip to the FPGA. Magnus Quote Link to comment Share on other sites More sharing options...
mikejohnson Posted July 3, 2017 Author Report Share Posted July 3, 2017 That's a bit annoying then. It's definitely the only FTDI device connected. Must be a board problem. Quote Link to comment Share on other sites More sharing options...
mkarlsson Posted July 3, 2017 Report Share Posted July 3, 2017 On DUO there is a third possible reason for this error - the FT2232H chip on this board has two jtag controllers (port A and port B ) and if papilioprog is trying to open the wrong one you will get this error. If that's the case then one option is to specifically open the correct port using the "-d device name" option. Without the -d option papilioprog will open the first one it finds. Quote Link to comment Share on other sites More sharing options...
mikejohnson Posted July 4, 2017 Author Report Share Posted July 4, 2017 Thanks, I tried "Papilio DUO A" and "Papilio DUO B" but still no luck sadly. I just can't get DesignLab to talk to this board. Still, "Unknown Papilio Board". I did have a play with the Papilio loader and loaded C:\DesignLab-1.0.8\examples\Papilio_DUO_ArduinoISP\Papilio_DUO_ArduinoISP.bit - it seemed to almost work with the following output. Sorry if this isn't relevant, I'm new to this. JTAG chainpos: 0 Device IDCODE = 0x24001093 Desc: XC6SLX9 Using devlist.txt JTAG chainpos: 0 Device IDCODE = 0x24001093 Desc: XC6SLX9 Uploading "C:\Program Files (x86)\Gadget Factory\Papilio Loader\programmer\bscan_spi_xc6slx9.bit". DNA is 0x199aaccb571e1aff Done. Programming time 504.0 ms Programming External Flash Memory with "C:\DesignLab-1.0.8\examples\Papilio_DUO_ArduinoISP\Papilio_DUO_ArduinoISP.bit". Found Macronix Flash (Pages=32768, Page Size=256 bytes, 67108864 bits). Erasing : Doing Partial Erase ......Ok Verifying : ......Pass Programming : ......Ok Verifying : Using devlist.txt ......Pass Done. SPI execution time 16217.6 ms USB transactions: Write 6853 read 6684 retries 0 Using devlist.txt Response incompatible with mask xxxx01 Invalid chain position 0, position must be less than 0 (but not less than 0). ISC_Done = 1 ISC_Enabled = 1 House Cleaning = 1 DONE = 1 Quote Link to comment Share on other sites More sharing options...
mikejohnson Posted July 4, 2017 Author Report Share Posted July 4, 2017 OK, looks like it works on Linux, which is probably better for this sort of thing anyway. Thanks for your help! Quote Link to comment Share on other sites More sharing options...
alvieboy Posted July 6, 2017 Report Share Posted July 6, 2017 On 04/07/2017 at 4:45 PM, mikejohnson said: Response incompatible with mask xxxx01 Invalid chain position 0, position must be less than 0 (but not less than 0). This one is still odd. Never saw it. Have you tried a different USB port? Best, Alvie Quote Link to comment Share on other sites More sharing options...
mikejohnson Posted July 7, 2017 Author Report Share Posted July 7, 2017 I tried that, with no luck. Same error message Quote Link to comment Share on other sites More sharing options...
sgygax Posted January 17, 2018 Report Share Posted January 17, 2018 I have the same problem. On my pc I have pluged in other ftdi devices (e.g. usb-rs232-converter). If I unplug the other ftdi devices I can download to the papilio :-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.