Flash a XC6SLX9 dev board as a 7i90HD

More
07 Jan 2022 20:06 #231054 by Boaschti
I also tried to run hostmot2 on on a spartan dev board.
I hope somebody can help me.
I have a rpi3 connected with GPIO 24, 25, 26 & 27 to TDO, TCK, TDI, TMS and SPI GPIO 8, 9, 10, 11 to P14, P15, P16, P132
The 50MHz oszillator is on P50.
I want to programm the 7c80d.bit file. Programming the File with openocd looks good.

root@raspberrypi:/home/pi# openocd -f /usr/local/share/openocd/scripts/interface/raspberrypi2-native.cfg -f /usr/local/share/openocd/scripts/cpld/xilinx-xc6s.cfg -c "init; xc6s_program xc6s.tap; pld load 0 /home/pi/7c80d.bit; exit"
Open On-Chip Debugger 0.11.0+dev-00550-gd27d66bc1 (2022-01-04-20:33)
Licensed under GNU GPL v2
For bug reports, read
        openocd.org/doc/doxygen/bugs.html
DEPRECATED! use 'adapter speed' not 'adapter_khz'
adapter speed: 250 kHz

Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
xc6s_print_dna
Info : BCM2835 GPIO JTAG/SWD bitbang driver
Info : clock speed 250 kHz
Info : JTAG tap: xc6s.tap tap/device found: 0x24001093 (mfg: 0x049 (Xilinx), part: 0x4001, ver: 0x2)
Warn : gdb services need one or more targets defined
root@raspberrypi:/home/pi#
 

Mesaflash output says:

root@raspberrypi:/home/pi# mesaflash --spi --device 7c80 --addr /dev/spidev0.0 --fix-boot-block --verbose  unable to set bpw32, fallback to bpw8
Unexpected cookie at 0100..0110:
00000000 00000000 00000000
No 7C80 board found

I have an SPI output from RPI3 but from FPGA in my opinion nothing useable.  
I set the SPI speed form mesaflash to 200khz to prevent timing prevent capacitive errors.
What is a that cookie?
Any idea why it does not work?

Best regards.
Attachments:

Please Log in or Create an account to join the conversation.

More
07 Jan 2022 20:38 #231057 by PCW
1. How long is the SPI cable? (it needs to be very short and use all available GNDs if possible)
2. Lowering the clock speed will not help (its the clock signal fidelity that matters as long as it's not higher than 24 MHz or so)

Please Log in or Create an account to join the conversation.

More
07 Jan 2022 22:39 #231069 by Boaschti
All cables are (at the moment) 20cm dupont wires. There is one gnd wire from rpi to fpga board. The rpi is powered and the fpga board gets power and gnd from the rpi pin haeder. Each spi wire has a 3k serial resistor to protect fpga an rpi ports if they are not correkt configured (it is a problem if fpga bitstream isn loadet).

Please Log in or Create an account to join the conversation.

More
07 Jan 2022 23:32 #231077 by PCW
There's really no chance of that working with 3 K series resistors (especially on the clock)

Please Log in or Create an account to join the conversation.

More
08 Jan 2022 12:26 #231106 by Boaschti
Thank you very much! That helped.

Please Log in or Create an account to join the conversation.

More
11 Jan 2022 06:54 #231407 by ALittleOffTheRails
Just out of interest I have a Mimas board that has a 100Mhz clock going to pin 126 - IO_L36N_GCLK14_0 and a PIC18F14K50 as a USB Programming device.
Would this have any impact on the function of this board.

Schematics below if anyone would like to look.
Attachments:

Please Log in or Create an account to join the conversation.

More
20 Nov 2023 11:43 #286025 by Gene1934
I see no evidence in the drawings here that this will give the screw terminal i/o to wire up the machine from, in the manner of mesa's 7i42TA's.

Is that planned to be a separate probably passive board? The 50 pin idc sockets on the real 7i90HD are a pita, only really usable as take off points to connect the 7i42TA's with 2 or 4" long cables. Since I do not currantly have a fully functional 7i90HD, one of the stepgens is blown, I would be interested in such a setup that would also function with a bananapi-m5, which can run at 2GHz, has no radio, but all 4 usb portrs are usb3. Currently using a pile of them to drive 3d printers. I have visions of a tool changer that would need the 4th stepgen. I'm currently running on an rpi4b, a 7i90HD, and 3 7i42TA's with a Spin-X1 driving a vfd for spindle control.

Please keep me advised.

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <geneslinuxbox.net:6309/gene>

Please Log in or Create an account to join the conversation.

More
20 Nov 2023 12:12 #286026 by cornholio
I only linked to this thread as Pete mentions that 7i90 have FET bus switches, as do the 7i92 and 7c81, which the schematics have been shared by Pete. This gives a basic 3.3v to 5v translation. According to the Spartan 6 data sheets the inputs are tolerant up to 4.1v.

Have you tried one of the banana 5 boards with a 7i90 using the hm2_spi driver. I tried with the latest Raspberry Pi 5 and it keep erroring with SPI timeouts. The hm2_rpspi driver doesn't work at all.
I hooked back up to my RP-400 and the hm2_spi driver ok. The hm2_rpspi does work on it fine.
I've got a couple of prototype boards that work with the same Dev board which is about AUD $70 dollars now. It has the FET bus switches and has 2xDB25 connectors that will work with a standard Parallel Port breakout board or with the Mesa DB25 boards. There's also a 2*5 pin header that gives you 6 extra GPIOs with GND & 5v. That's the board that connects to the left hand header if you look at the dev board with the USB connector at the top.
The second board has the SPI connector 2x5 so that there's a ground wire between each signal. Then there's 4 of 2x10 connectors that have 8 GPIOs 5v power on the top 10 pins and ground on the bottom 10 pins.

On all boards the signal from the FPGA are routed through a get bus switch running on a 3.9v power rail, and on the "world side" pulled up to 5v, this gives about 3.2~ volts on the FPGA side . Pretty much the way Mesa do things.
The only smd parts are the bus switches everything else is through hole, makes assembly easier. Too many dollars to get the PCB fab house to assemble the board.

Please Log in or Create an account to join the conversation.

More
20 Nov 2023 12:43 #286031 by Gene1934
>Have you tried one of the banana 5 boards with a 7i90 using the hm2_spi driver. I >tried with the latest Raspberry Pi 5 and it keep erroring with SPI timeouts. The >hm2_rpspi driver doesn't work at all.

That I suspect is because the address of the gpio controller doesn't match the rpi4b address. With a genuine rpi4b the rpspi driver works flawlessly. Bertho Stultans, a cs prof at a swedish uni was kind enough to write that driver, and rewrite for the rpi4b when it came out. Perhaps he would supply an include file to make it work with the bpi5, IDK and have not had any correspondence with him since, no need to as it just works, sending 32 bit packet at 42 megabaud and receiving the replies from the 7i90HD at 25 megabaud. My spi cable is maybe 1.25" long as I turned the pi upside down so the connecters were pin aligned. And old 12 volt fan, borrowed from a defunct video card running on 5 volts and mounted under the pi is all the cooling its needed in around 5 years. And my copy of the docs says its directly connected to the fpga, no buffers.

If Peter has since modified it to provide 5 v tolerant buffers, he hasn't told me.

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <geneslinuxbox.net:6309/gene>

Please Log in or Create an account to join the conversation.

More
20 Nov 2023 13:14 - 20 Nov 2023 13:15 #286034 by cornholio
All the "low speed" interfaces have been moved off the cpu to the new RP1 io chip, this connects via the PCIe bus, and according to the docs introduces 1us latency, don't know how of an issue this may actually be.

Some rendering of the boards I described, the dev board had the header pins changed to female and located on the underside.

Board 1:
 
Board 2:


Dev board with board 1 & prototype board 2
 
Attachments:
Last edit: 20 Nov 2023 13:15 by cornholio.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.144 seconds
Powered by Kunena Forum