From: Uwe B. <bo...@el...> - 2011-08-30 10:41:33
|
>>>>> "Tomek" == Tomek CEDRO <tom...@gm...> writes: Tomek> Hello Uwe, thank you for your support :-) Things has changes in Tomek> xc3sprog since 449 release... :-) Tomek> On Mon, Aug 29, 2011 at 7:38 PM, Uwe Bonnes Tomek> <bo...@el...> wrote: >> Bitrot: You have a working program on your disk, and trying to use it >> after some time, nothing works any longer: Libraries have changed, >> compilers get strikter, API changed, etc >> http://en.wikipedia.org/wiki/Bit_rot#Problems_with_software Tomek> Ah well this is why I definitely switched to FreeBSD - its not Tomek> lazy Windows and its not Linux where things never work after week Tomek> ;] >> Something is fishy here. Are you sure you don't have some flaky JTAG >> or SPI connection, a ringing JTAG cable, some heavy noise source, too >> low supply voltage, a microcontroller addressing the SPI lines after >> some time or something else? Tomek> I can program bitfile directly into FPGA with no problem. The Tomek> only problem is with uploading bitfile into SPI Flash. >> Test the JTAG chain with the -T0 option, and probably -I -T0 should >> test both JTAG and SPI. Tomek> -T0 works fine but -I requires a filename so -I -T0 will not work Tomek> in 635 release. The connection is fine :-) So I suspect the SPI connections to be flaky. Here is how I test the SPI chain of a new board: load the ISP Bitfile: > xc3sprog -c ftdijtag -T0 -I \ /spare/bon/xc3sprog/co/xc3sprog/trunk/bscan_spi/xc3s50an.bit The FPGA should configure. > xc3sprog -c ftdijtag -T0 -I XC3SPROG (c) 2004-2011 xc3sprog project $Rev: 635 $ OS: Linux Free software: If you contribute nothing, expect nothing! Feedback on success/failure/enhancement requests: http://sourceforge.net/mail/?group_id=170565 Check Sourceforge for updates: http://sourceforge.net/projects/xc3sprog/develop Using Libftdi, JEDEC: 1f 22 0x00 0x00 status: 8c Found Atmel Device, Device ID 0x2200: AT45DB011 Unique number: 506078a8b440f8440000c4f0fffffeff0c0c0c0a8c2cac8c500aecffffffffff dcffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 264 bytes/page, 512 pages = 135168 bytes total Running 2147483647 times .......................................................................... Dots mean successfull test. Running for some minutes no error is reported for my board. Please try to reproduce for your board. Only if the JTAG and SPI chain work reliable further errors are worth to look at. Bye -- Uwe Bonnes bo...@el... Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 162516 -------- Fax. 06151 164321 ---------- |