Re: [Emc-users] Rpi 3b+ to 7i90hd
On 01/13/2021 10:40 AM, Ralph Stirling wrote: I played around with sd on my RPi after I got things going with the USB flash. After dd copying the same image to the sd card, booting the pi successfully, and killing power, I never got a successful second boot. I would have to mount the sd card on my laptop and copy over the /boot partition each time before it would boot again. I was unimpressed. The BBB may have better protection from glitching the sd card during power fail, but I had troubles from the RPi 1 to the RPi 3B+. I have one Beagle Bone Black that won't boot from SD, but will boot from on-board MMI. I never diagnosed the issue, it could be corrupt parameters in the boot code on the MMI. I've never had an SD card harmed on the Beagle, and I do have to just kill power to it once in a while when it won't shutdown or get on the net. I do try to do a graceful shutdown when possible. Jon ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Rpi 3b+ to 7i90hd
I played around with sd on my RPi after I got things going with the USB flash. After dd copying the same image to the sd card, booting the pi successfully, and killing power, I never got a successful second boot. I would have to mount the sd card on my laptop and copy over the /boot partition each time before it would boot again. I was unimpressed. The BBB may have better protection from glitching the sd card during power fail, but I had troubles from the RPi 1 to the RPi 3B+. I'll stick with the usb drives that stick out of the socket less than 1/4" and cost the same as an sd card. -- Ralph From: Jon Elson [el...@pico-systems.com] Sent: Wednesday, January 13, 2021 8:30 AM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd On 01/12/2021 10:48 PM, Thaddeus Waldner wrote: > I’m wondering what you plan to use for flash memory on the Pi. Is the SD card > a viable solution in this application? Would the Pi compute module with > onboard flash memory be a workable solution? > > One issue with onboard flash memory is that swapping out a pi in the case of > a processor failure would be more difficult. Is there anything else that > makes the compute modules a worse choice than the standard pi? > I've used the SD as the main "disk" storage on a Beagle Bone for years. The advantage is you can pull it out, put it in a USB card reader and transfer files. Mostly I use that to initially load the OS, LinuxCNC (Machinekit fork) and etc., and once it is on the network that isn't needed again. Modern SD cards just work fine, and especially if you set a couple options like noatime in the file system, they are quite robust. Jon ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-usersdata=04%7C01%7Cralph.stirling%40wallawalla.edu%7Cb5fd931ac27c4fb378b008d8b7e0ad66%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637461522916963401%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=nqqqOV1P6xVwgC0agk3HitsmhgKNZwxZRPdpzdV9UWs%3Dreserved=0 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Rpi 3b+ to 7i90hd
On 01/12/2021 10:48 PM, Thaddeus Waldner wrote: I’m wondering what you plan to use for flash memory on the Pi. Is the SD card a viable solution in this application? Would the Pi compute module with onboard flash memory be a workable solution? One issue with onboard flash memory is that swapping out a pi in the case of a processor failure would be more difficult. Is there anything else that makes the compute modules a worse choice than the standard pi? I've used the SD as the main "disk" storage on a Beagle Bone for years. The advantage is you can pull it out, put it in a USB card reader and transfer files. Mostly I use that to initially load the OS, LinuxCNC (Machinekit fork) and etc., and once it is on the network that isn't needed again. Modern SD cards just work fine, and especially if you set a couple options like noatime in the file system, they are quite robust. Jon ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Rpi 3b+ to 7i90hd
I'm using the 3B+ and a tiny usb flash. It handles unexpected power cycles fine, unlike the sd card. Booting a 4B off usb is more difficult I believe, but my only 4B seems to be dead, so I'm progressing with the 3B+. -- Ralph On Jan 12, 2021 8:49 PM, Thaddeus Waldner wrote: CAUTION: This email originated from outside the Walla Walla University email system. I’m wondering what you plan to use for flash memory on the Pi. Is the SD card a viable solution in this application? Would the Pi compute module with onboard flash memory be a workable solution? One issue with onboard flash memory is that swapping out a pi in the case of a processor failure would be more difficult. Is there anything else that makes the compute modules a worse choice than the standard pi? Of course this is just me wishing someone would hook up a basic MESA card with the Pi4 compute module headers. > On Jan 12, 2021, at 2:33 PM, Ralph Stirling > wrote: > > Success at last! > > To summarize everything I've learned: > - I was missing one ground (RPi pin 14) > - mesaflash doesn't tell me that I have to > use --device 7i90, not 7i90hd. I had to > look at the mesaflash source to figure that out. > - my Fluke 179 dvm diode check does not > give me ~0.7v readings for fpga pins > - I have to load the spi bit file with jtag > > I now have native RPi jtag using openocd > working, so don't need the $50 Digilent > HS2 dongle any more. I edited the > raspberrypi-native.cfg file to move the > gpio pins from 11,25,10,9 to 17,27,22,5 > to avoid conflict with the 7i90's SPI pins. > > I will spin another version of my little adapter > shim pcb to include the jtag header. I'll be > happy to share that design with the group > when I get them back and tested. > > Thank you again! > -- Ralph > > >> Is there anything that needs to be done >> differently on the RPi 3b+ to communicate >> with the 7i90 via spi versus the 7c81? > > It should be identical, and AFAIK the mesaflash interface > should be less picky since it runs at a lower clock speed > than the default hm2-rpspi driver > > Are all RPI grounds connected to all 7I90 26 pin > header grounds? > > >> >> Is the next step to cobble up some vhdl to >> verify all the pins on the spi interface side >> are functioning? I suppose somewhere along >> the line I might have blown a pin. > > > If you blow a pin, it will usually show as the > protection diode being damaged. You can check > this with a DVMs diode check function. Connect > the DVMs positive lead to 7I90 ground and check > the diode voltage drop on the SPI leads, they should > all be ~.7V > >> > >> I'd really like to get this working, as I'm putting >> together a standard package I can use for all >> our custom controllers for machines and instruments. >> Bioprinters, syringe pumps, bioreactors, routers, >> pick & place, hotwire foam cutters. I'm tired of >> random castoff pc's. >> >> Thanks again, >> -- Ralph >> >> From: Peter C. Wallace [p...@mesanet.com] >> Sent: Monday, January 11, 2021 4:34 PM >> To: Enhanced Machine Controller (EMC) >> Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd >> >> CAUTION: This email originated from outside the Walla Walla University email >> system. >> >> >>> On Mon, 11 Jan 2021, Ralph Stirling wrote: >>> >>> Date: Mon, 11 Jan 2021 23:48:56 + >>> From: Ralph Stirling >>> Reply-To: "Enhanced Machine Controller (EMC)" >>> >>> To: "Enhanced Machine Controller (EMC)" >>> Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd >>> >>> I've made a bit of progress now. I found a Digilent HS2 >>> jtag dongle, and got to the point of (apparently) successfully >>> loading an SPI bitstream to the 7I90 (chose 7i90_spi_svst4_8.bit). >>> >>> Running: >>> >>> $ mesaflash --device 7i90hd --addr /dev/spidev0.0 --spi --readhmid >>> >>> gives me the same "no 7I90HD board found" error though. I tried >>> adding a pullup resistor to the SDO pin, without change, which >>> would seem to indicate the 7I90HD is actively driving it low. >>> >>> Is there a very simple blinky bitstream I can try loading to >>> be sure the jtag loading is successful? The /INIT yellow led >>> flashes briefly, and /DONE red led does go on during the load >>> and goes off afterward. >>> >>> Thanks again. >>> -- Ralph >> >> >> Theres no blinky light test bitfile but if you load the sserial >&g
Re: [Emc-users] Rpi 3b+ to 7i90hd
I’m wondering what you plan to use for flash memory on the Pi. Is the SD card a viable solution in this application? Would the Pi compute module with onboard flash memory be a workable solution? One issue with onboard flash memory is that swapping out a pi in the case of a processor failure would be more difficult. Is there anything else that makes the compute modules a worse choice than the standard pi? Of course this is just me wishing someone would hook up a basic MESA card with the Pi4 compute module headers. > On Jan 12, 2021, at 2:33 PM, Ralph Stirling > wrote: > > Success at last! > > To summarize everything I've learned: > - I was missing one ground (RPi pin 14) > - mesaflash doesn't tell me that I have to > use --device 7i90, not 7i90hd. I had to > look at the mesaflash source to figure that out. > - my Fluke 179 dvm diode check does not > give me ~0.7v readings for fpga pins > - I have to load the spi bit file with jtag > > I now have native RPi jtag using openocd > working, so don't need the $50 Digilent > HS2 dongle any more. I edited the > raspberrypi-native.cfg file to move the > gpio pins from 11,25,10,9 to 17,27,22,5 > to avoid conflict with the 7i90's SPI pins. > > I will spin another version of my little adapter > shim pcb to include the jtag header. I'll be > happy to share that design with the group > when I get them back and tested. > > Thank you again! > -- Ralph > > >> Is there anything that needs to be done >> differently on the RPi 3b+ to communicate >> with the 7i90 via spi versus the 7c81? > > It should be identical, and AFAIK the mesaflash interface > should be less picky since it runs at a lower clock speed > than the default hm2-rpspi driver > > Are all RPI grounds connected to all 7I90 26 pin > header grounds? > > >> >> Is the next step to cobble up some vhdl to >> verify all the pins on the spi interface side >> are functioning? I suppose somewhere along >> the line I might have blown a pin. > > > If you blow a pin, it will usually show as the > protection diode being damaged. You can check > this with a DVMs diode check function. Connect > the DVMs positive lead to 7I90 ground and check > the diode voltage drop on the SPI leads, they should > all be ~.7V > >> > >> I'd really like to get this working, as I'm putting >> together a standard package I can use for all >> our custom controllers for machines and instruments. >> Bioprinters, syringe pumps, bioreactors, routers, >> pick & place, hotwire foam cutters. I'm tired of >> random castoff pc's. >> >> Thanks again, >> -- Ralph >> >> From: Peter C. Wallace [p...@mesanet.com] >> Sent: Monday, January 11, 2021 4:34 PM >> To: Enhanced Machine Controller (EMC) >> Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd >> >> CAUTION: This email originated from outside the Walla Walla University email >> system. >> >> >>> On Mon, 11 Jan 2021, Ralph Stirling wrote: >>> >>> Date: Mon, 11 Jan 2021 23:48:56 + >>> From: Ralph Stirling >>> Reply-To: "Enhanced Machine Controller (EMC)" >>> >>> To: "Enhanced Machine Controller (EMC)" >>> Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd >>> >>> I've made a bit of progress now. I found a Digilent HS2 >>> jtag dongle, and got to the point of (apparently) successfully >>> loading an SPI bitstream to the 7I90 (chose 7i90_spi_svst4_8.bit). >>> >>> Running: >>> >>> $ mesaflash --device 7i90hd --addr /dev/spidev0.0 --spi --readhmid >>> >>> gives me the same "no 7I90HD board found" error though. I tried >>> adding a pullup resistor to the SDO pin, without change, which >>> would seem to indicate the 7I90HD is actively driving it low. >>> >>> Is there a very simple blinky bitstream I can try loading to >>> be sure the jtag loading is successful? The /INIT yellow led >>> flashes briefly, and /DONE red led does go on during the load >>> and goes off afterward. >>> >>> Thanks again. >>> -- Ralph >> >> >> Theres no blinky light test bitfile but if you load the sserial >> remote bitfile 7i90_ssremote.bit, The init LED should light once >> configured (well 50 ms after configured indicating a watchdog timeout) >> >>> >>> From: Peter C. Wallace [p...@mesanet.com] >>> Sent: Friday, January 8, 2021 1:22 PM >>> To: Enh
Re: [Emc-users] Rpi 3b+ to 7i90hd
Success at last! To summarize everything I've learned: - I was missing one ground (RPi pin 14) - mesaflash doesn't tell me that I have to use --device 7i90, not 7i90hd. I had to look at the mesaflash source to figure that out. - my Fluke 179 dvm diode check does not give me ~0.7v readings for fpga pins - I have to load the spi bit file with jtag I now have native RPi jtag using openocd working, so don't need the $50 Digilent HS2 dongle any more. I edited the raspberrypi-native.cfg file to move the gpio pins from 11,25,10,9 to 17,27,22,5 to avoid conflict with the 7i90's SPI pins. I will spin another version of my little adapter shim pcb to include the jtag header. I'll be happy to share that design with the group when I get them back and tested. Thank you again! -- Ralph > Is there anything that needs to be done > differently on the RPi 3b+ to communicate > with the 7i90 via spi versus the 7c81? It should be identical, and AFAIK the mesaflash interface should be less picky since it runs at a lower clock speed than the default hm2-rpspi driver Are all RPI grounds connected to all 7I90 26 pin header grounds? > > Is the next step to cobble up some vhdl to > verify all the pins on the spi interface side > are functioning? I suppose somewhere along > the line I might have blown a pin. If you blow a pin, it will usually show as the protection diode being damaged. You can check this with a DVMs diode check function. Connect the DVMs positive lead to 7I90 ground and check the diode voltage drop on the SPI leads, they should all be ~.7V > > I'd really like to get this working, as I'm putting > together a standard package I can use for all > our custom controllers for machines and instruments. > Bioprinters, syringe pumps, bioreactors, routers, > pick & place, hotwire foam cutters. I'm tired of > random castoff pc's. > > Thanks again, > -- Ralph > > From: Peter C. Wallace [p...@mesanet.com] > Sent: Monday, January 11, 2021 4:34 PM > To: Enhanced Machine Controller (EMC) > Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd > > CAUTION: This email originated from outside the Walla Walla University email > system. > > > On Mon, 11 Jan 2021, Ralph Stirling wrote: > >> Date: Mon, 11 Jan 2021 23:48:56 + >> From: Ralph Stirling >> Reply-To: "Enhanced Machine Controller (EMC)" >> >> To: "Enhanced Machine Controller (EMC)" >> Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd >> >> I've made a bit of progress now. I found a Digilent HS2 >> jtag dongle, and got to the point of (apparently) successfully >> loading an SPI bitstream to the 7I90 (chose 7i90_spi_svst4_8.bit). >> >> Running: >> >> $ mesaflash --device 7i90hd --addr /dev/spidev0.0 --spi --readhmid >> >> gives me the same "no 7I90HD board found" error though. I tried >> adding a pullup resistor to the SDO pin, without change, which >> would seem to indicate the 7I90HD is actively driving it low. >> >> Is there a very simple blinky bitstream I can try loading to >> be sure the jtag loading is successful? The /INIT yellow led >> flashes briefly, and /DONE red led does go on during the load >> and goes off afterward. >> >> Thanks again. >> -- Ralph > > > Theres no blinky light test bitfile but if you load the sserial > remote bitfile 7i90_ssremote.bit, The init LED should light once > configured (well 50 ms after configured indicating a watchdog timeout) > >> >> From: Peter C. Wallace [p...@mesanet.com] >> Sent: Friday, January 8, 2021 1:22 PM >> To: Enhanced Machine Controller (EMC) >> Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd >> >> CAUTION: This email originated from outside the Walla Walla University email >> system. >> >> >> On Fri, 8 Jan 2021, Ralph Stirling wrote: >> >>> Date: Fri, 8 Jan 2021 21:08:55 + >>> From: Ralph Stirling >>> Reply-To: "Enhanced Machine Controller (EMC)" >>> >>> To: "Enhanced Machine Controller (EMC)" >>> Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd >>> >>> Not having Xilinx Impact tool on the Rpi (or anywhere >>> at the moment), I found a tutorial on setting up >>> OpenOCD for jtag on the Rpi. I have installed OpenOCD >>> on my RPi 3B+ and connected the gpio to the JTAG pins >>> on the 7i90HD, following this tutorial: >>> >>> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmovr0.com%2F2016%2F09%2F02%2Fuse-raspberry-pi-23-as-a-jtagswd-adapter%2Fdata=04%7C01%7Cralph.stirling%40wallawalla.edu%7C4feb8
Re: [Emc-users] Rpi 3b+ to 7i90hd
On Tue, 12 Jan 2021, Ralph Stirling wrote: Date: Tue, 12 Jan 2021 01:10:47 + From: Ralph Stirling Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd Ok, 7i90_ssremote.bit lights the red led after configuration, so it appears I can successfully load bitstreams over jtag. Mesaflash still does not recognize the board over spi with an spi config loaded though (all cookies). Is there anything that needs to be done differently on the RPi 3b+ to communicate with the 7i90 via spi versus the 7c81? It should be identical, and AFAIK the mesaflash interface should be less picky since it runs at a lower clock speed than the default hm2-rpspi driver Are all RPI grounds connected to all 7I90 26 pin header grounds? Is the next step to cobble up some vhdl to verify all the pins on the spi interface side are functioning? I suppose somewhere along the line I might have blown a pin. If you blow a pin, it will usually show as the protection diode being damaged. You can check this with a DVMs diode check function. Connect the DVMs positive lead to 7I90 ground and check the diode voltage drop on the SPI leads, they should all be ~.7V I'd really like to get this working, as I'm putting together a standard package I can use for all our custom controllers for machines and instruments. Bioprinters, syringe pumps, bioreactors, routers, pick & place, hotwire foam cutters. I'm tired of random castoff pc's. Thanks again, -- Ralph From: Peter C. Wallace [p...@mesanet.com] Sent: Monday, January 11, 2021 4:34 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd CAUTION: This email originated from outside the Walla Walla University email system. On Mon, 11 Jan 2021, Ralph Stirling wrote: Date: Mon, 11 Jan 2021 23:48:56 + From: Ralph Stirling Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd I've made a bit of progress now. I found a Digilent HS2 jtag dongle, and got to the point of (apparently) successfully loading an SPI bitstream to the 7I90 (chose 7i90_spi_svst4_8.bit). Running: $ mesaflash --device 7i90hd --addr /dev/spidev0.0 --spi --readhmid gives me the same "no 7I90HD board found" error though. I tried adding a pullup resistor to the SDO pin, without change, which would seem to indicate the 7I90HD is actively driving it low. Is there a very simple blinky bitstream I can try loading to be sure the jtag loading is successful? The /INIT yellow led flashes briefly, and /DONE red led does go on during the load and goes off afterward. Thanks again. -- Ralph Theres no blinky light test bitfile but if you load the sserial remote bitfile 7i90_ssremote.bit, The init LED should light once configured (well 50 ms after configured indicating a watchdog timeout) From: Peter C. Wallace [p...@mesanet.com] Sent: Friday, January 8, 2021 1:22 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd CAUTION: This email originated from outside the Walla Walla University email system. On Fri, 8 Jan 2021, Ralph Stirling wrote: Date: Fri, 8 Jan 2021 21:08:55 + From: Ralph Stirling Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd Not having Xilinx Impact tool on the Rpi (or anywhere at the moment), I found a tutorial on setting up OpenOCD for jtag on the Rpi. I have installed OpenOCD on my RPi 3B+ and connected the gpio to the JTAG pins on the 7i90HD, following this tutorial: https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmovr0.com%2F2016%2F09%2F02%2Fuse-raspberry-pi-23-as-a-jtagswd-adapter%2Fdata=04%7C01%7Cralph.stirling%40wallawalla.edu%7Ca6b208efa1e04d60413b08d8b691d2fb%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637460084714990924%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=kGU9s6afPWfk9ojmZVO7CbY4DVNPM%2F6rgwAFTrJsqT8%3Dreserved=0 The last step seems to be to make a configuration file for the target device. The EEPROMs are WInbond 25Q16JVNIQ as best I can read the chip labels. OpenOCD doesn't have anything that looks directly applicable. I also don't know where the two chips are in the jtag chain. You dont need to do this if you can program the FPGA (and JTAG programming large EEPROMS is glacially slow) If you can program the FPGA via JTAG, you program the FPGA with a SPI configuration, and then run mesaflash from the RPI to write the flash memory Am I heading down a rat hole, or getting close to success? Thanks again. -- Ralph From: Peter C. Wallace [p...@mesanet.com] Sent: Thursday,
Re: [Emc-users] Rpi 3b+ to 7i90hd
Ok, 7i90_ssremote.bit lights the red led after configuration, so it appears I can successfully load bitstreams over jtag. Mesaflash still does not recognize the board over spi with an spi config loaded though (all cookies). Is there anything that needs to be done differently on the RPi 3b+ to communicate with the 7i90 via spi versus the 7c81? Is the next step to cobble up some vhdl to verify all the pins on the spi interface side are functioning? I suppose somewhere along the line I might have blown a pin. I'd really like to get this working, as I'm putting together a standard package I can use for all our custom controllers for machines and instruments. Bioprinters, syringe pumps, bioreactors, routers, pick & place, hotwire foam cutters. I'm tired of random castoff pc's. Thanks again, -- Ralph From: Peter C. Wallace [p...@mesanet.com] Sent: Monday, January 11, 2021 4:34 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd CAUTION: This email originated from outside the Walla Walla University email system. On Mon, 11 Jan 2021, Ralph Stirling wrote: > Date: Mon, 11 Jan 2021 23:48:56 + > From: Ralph Stirling > Reply-To: "Enhanced Machine Controller (EMC)" > > To: "Enhanced Machine Controller (EMC)" > Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd > > I've made a bit of progress now. I found a Digilent HS2 > jtag dongle, and got to the point of (apparently) successfully > loading an SPI bitstream to the 7I90 (chose 7i90_spi_svst4_8.bit). > > Running: > > $ mesaflash --device 7i90hd --addr /dev/spidev0.0 --spi --readhmid > > gives me the same "no 7I90HD board found" error though. I tried > adding a pullup resistor to the SDO pin, without change, which > would seem to indicate the 7I90HD is actively driving it low. > > Is there a very simple blinky bitstream I can try loading to > be sure the jtag loading is successful? The /INIT yellow led > flashes briefly, and /DONE red led does go on during the load > and goes off afterward. > > Thanks again. > -- Ralph Theres no blinky light test bitfile but if you load the sserial remote bitfile 7i90_ssremote.bit, The init LED should light once configured (well 50 ms after configured indicating a watchdog timeout) > > From: Peter C. Wallace [p...@mesanet.com] > Sent: Friday, January 8, 2021 1:22 PM > To: Enhanced Machine Controller (EMC) > Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd > > CAUTION: This email originated from outside the Walla Walla University email > system. > > > On Fri, 8 Jan 2021, Ralph Stirling wrote: > >> Date: Fri, 8 Jan 2021 21:08:55 +0000 >> From: Ralph Stirling >> Reply-To: "Enhanced Machine Controller (EMC)" >> >> To: "Enhanced Machine Controller (EMC)" >> Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd >> >> Not having Xilinx Impact tool on the Rpi (or anywhere >> at the moment), I found a tutorial on setting up >> OpenOCD for jtag on the Rpi. I have installed OpenOCD >> on my RPi 3B+ and connected the gpio to the JTAG pins >> on the 7i90HD, following this tutorial: >> >> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmovr0.com%2F2016%2F09%2F02%2Fuse-raspberry-pi-23-as-a-jtagswd-adapter%2Fdata=04%7C01%7Cralph.stirling%40wallawalla.edu%7Ca6b208efa1e04d60413b08d8b691d2fb%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637460084714990924%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=kGU9s6afPWfk9ojmZVO7CbY4DVNPM%2F6rgwAFTrJsqT8%3Dreserved=0 >> >> The last step seems to be to make a configuration >> file for the target device. The EEPROMs are WInbond >> 25Q16JVNIQ as best I can read the chip labels. OpenOCD >> doesn't have anything that looks directly applicable. >> I also don't know where the two chips are in the jtag >> chain. > > You dont need to do this if you can program the FPGA > (and JTAG programming large EEPROMS is glacially slow) > > If you can program the FPGA via JTAG, you program the FPGA with a SPI > configuration, and then run mesaflash from the RPI to write the > flash memory > > >> >> Am I heading down a rat hole, or getting close to success? >> >> Thanks again. >> -- Ralph >> >> From: Peter C. Wallace [p...@mesanet.com] >> Sent: Thursday, January 7, 2021 3:47 PM >> To: Enhanced Machine Controller (EMC) >> Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd >> >> CAUTION: This email originated from outside the Walla Walla University email >> system. >> >> >> O
Re: [Emc-users] Rpi 3b+ to 7i90hd
On Mon, 11 Jan 2021, Ralph Stirling wrote: Date: Mon, 11 Jan 2021 23:48:56 + From: Ralph Stirling Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd I've made a bit of progress now. I found a Digilent HS2 jtag dongle, and got to the point of (apparently) successfully loading an SPI bitstream to the 7I90 (chose 7i90_spi_svst4_8.bit). Running: $ mesaflash --device 7i90hd --addr /dev/spidev0.0 --spi --readhmid gives me the same "no 7I90HD board found" error though. I tried adding a pullup resistor to the SDO pin, without change, which would seem to indicate the 7I90HD is actively driving it low. Is there a very simple blinky bitstream I can try loading to be sure the jtag loading is successful? The /INIT yellow led flashes briefly, and /DONE red led does go on during the load and goes off afterward. Thanks again. -- Ralph Theres no blinky light test bitfile but if you load the sserial remote bitfile 7i90_ssremote.bit, The init LED should light once configured (well 50 ms after configured indicating a watchdog timeout) From: Peter C. Wallace [p...@mesanet.com] Sent: Friday, January 8, 2021 1:22 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd CAUTION: This email originated from outside the Walla Walla University email system. On Fri, 8 Jan 2021, Ralph Stirling wrote: Date: Fri, 8 Jan 2021 21:08:55 + From: Ralph Stirling Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd Not having Xilinx Impact tool on the Rpi (or anywhere at the moment), I found a tutorial on setting up OpenOCD for jtag on the Rpi. I have installed OpenOCD on my RPi 3B+ and connected the gpio to the JTAG pins on the 7i90HD, following this tutorial: https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmovr0.com%2F2016%2F09%2F02%2Fuse-raspberry-pi-23-as-a-jtagswd-adapter%2Fdata=04%7C01%7Cralph.stirling%40wallawalla.edu%7C0e816ca3cbad4d7d899008d8b41b9984%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637457377919675638%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=6NnpSk67I%2FpHEaLUmq1Fmg0%2FX6XH2KpNqNghMfBq6lk%3Dreserved=0 The last step seems to be to make a configuration file for the target device. The EEPROMs are WInbond 25Q16JVNIQ as best I can read the chip labels. OpenOCD doesn't have anything that looks directly applicable. I also don't know where the two chips are in the jtag chain. You dont need to do this if you can program the FPGA (and JTAG programming large EEPROMS is glacially slow) If you can program the FPGA via JTAG, you program the FPGA with a SPI configuration, and then run mesaflash from the RPI to write the flash memory Am I heading down a rat hole, or getting close to success? Thanks again. -- Ralph From: Peter C. Wallace [p...@mesanet.com] Sent: Thursday, January 7, 2021 3:47 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd CAUTION: This email originated from outside the Walla Walla University email system. On Thu, 7 Jan 2021, Ralph Stirling wrote: Date: Thu, 7 Jan 2021 23:37:03 + From: Ralph Stirling Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd I assumed that the 7i90hd would recognize SPI directly, like the 7c81 does. Do I have to go dig up a parallel port computer from somewhere and get at least mesaflash running on it just so I can get spi working for the pi? That is an unfortunate hurdle. I don't see anything in the manual about needing to load the correct bitstream over parallel in order to use spi. In fact, I read this in the manual: Yep, you need to have SPI firmware loaded in the 7I90HD default 7I90HD firmware is EPP, so a device with a EPP interface is needed to load the SPI configuration I would suggest loading the SPI interface into the secondary flash leaving the primary as EPP for a fallback That is, power the 7I90 with the flash jumper in the "P" position them move the jumper to "S" before loadin the SPI firmware "Linux and Windows utility programs mesaflash and mesaflash.exe are provided to write configuration files to the 7I90HD EEPROM via the RS-422 interface and LBP16. The linux utility can also write configuration files via the EPP interface. These files depend on a simple SPI interface built into both the standard user FPGA bitfiles and the fallback bitfile." Well there are 2 SPI interfaces, the HM2 compatible host interface (which needs specific SPI firmware) and the SPI Flash memory interface (which is in HM2 memory space and allows access to the SPI flas
Re: [Emc-users] Rpi 3b+ to 7i90hd
Additional discovery. If I run mesaflash with /dev/spidev0.1 and my pullup resistor, I get unexpected cookies of . So it appears that the 7i90 is driving SDO when I attempt communication at /dev/spidev0.0. -- Ralph From: Ralph Stirling Sent: Monday, January 11, 2021 3:48 PM To: Enhanced Machine Controller (EMC) Subject: RE: [Emc-users] Rpi 3b+ to 7i90hd I've made a bit of progress now. I found a Digilent HS2 jtag dongle, and got to the point of (apparently) successfully loading an SPI bitstream to the 7I90 (chose 7i90_spi_svst4_8.bit). Running: $ mesaflash --device 7i90hd --addr /dev/spidev0.0 --spi --readhmid gives me the same "no 7I90HD board found" error though. I tried adding a pullup resistor to the SDO pin, without change, which would seem to indicate the 7I90HD is actively driving it low. Is there a very simple blinky bitstream I can try loading to be sure the jtag loading is successful? The /INIT yellow led flashes briefly, and /DONE red led does go on during the load and goes off afterward. Thanks again. -- Ralph From: Peter C. Wallace [p...@mesanet.com] Sent: Friday, January 8, 2021 1:22 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd CAUTION: This email originated from outside the Walla Walla University email system. On Fri, 8 Jan 2021, Ralph Stirling wrote: > Date: Fri, 8 Jan 2021 21:08:55 + > From: Ralph Stirling > Reply-To: "Enhanced Machine Controller (EMC)" > > To: "Enhanced Machine Controller (EMC)" > Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd > > Not having Xilinx Impact tool on the Rpi (or anywhere > at the moment), I found a tutorial on setting up > OpenOCD for jtag on the Rpi. I have installed OpenOCD > on my RPi 3B+ and connected the gpio to the JTAG pins > on the 7i90HD, following this tutorial: > > https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmovr0.com%2F2016%2F09%2F02%2Fuse-raspberry-pi-23-as-a-jtagswd-adapter%2Fdata=04%7C01%7Cralph.stirling%40wallawalla.edu%7C0e816ca3cbad4d7d899008d8b41b9984%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637457377919675638%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=6NnpSk67I%2FpHEaLUmq1Fmg0%2FX6XH2KpNqNghMfBq6lk%3Dreserved=0 > > The last step seems to be to make a configuration > file for the target device. The EEPROMs are WInbond > 25Q16JVNIQ as best I can read the chip labels. OpenOCD > doesn't have anything that looks directly applicable. > I also don't know where the two chips are in the jtag > chain. You dont need to do this if you can program the FPGA (and JTAG programming large EEPROMS is glacially slow) If you can program the FPGA via JTAG, you program the FPGA with a SPI configuration, and then run mesaflash from the RPI to write the flash memory > > Am I heading down a rat hole, or getting close to success? > > Thanks again. > -- Ralph > > From: Peter C. Wallace [p...@mesanet.com] > Sent: Thursday, January 7, 2021 3:47 PM > To: Enhanced Machine Controller (EMC) > Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd > > CAUTION: This email originated from outside the Walla Walla University email > system. > > > On Thu, 7 Jan 2021, Ralph Stirling wrote: > >> Date: Thu, 7 Jan 2021 23:37:03 +0000 >> From: Ralph Stirling >> Reply-To: "Enhanced Machine Controller (EMC)" >> >> To: "Enhanced Machine Controller (EMC)" >> Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd >> >> I assumed that the 7i90hd would recognize SPI >> directly, like the 7c81 does. Do I have to go >> dig up a parallel port computer from somewhere >> and get at least mesaflash running on it just >> so I can get spi working for the pi? That is an >> unfortunate hurdle. I don't see anything in the >> manual about needing to load the correct bitstream >> over parallel in order to use spi. In fact, I read >> this in the manual: > > Yep, you need to have SPI firmware loaded in the 7I90HD > default 7I90HD firmware is EPP, so a device with a EPP > interface is needed to load the SPI configuration > I would suggest loading the SPI interface into the > secondary flash leaving the primary as EPP for a fallback > > That is, power the 7I90 with the flash jumper in the "P" position > them move the jumper to "S" before loadin the SPI firmware > > >> >> "Linux and Windows utility programs mesaflash and mesaflash.exe are provided >> to >> write configuration files to the 7I90HD EEPROM via the RS-422 interface and >> LBP16. The >> linux utility can also write con
Re: [Emc-users] Rpi 3b+ to 7i90hd
I've made a bit of progress now. I found a Digilent HS2 jtag dongle, and got to the point of (apparently) successfully loading an SPI bitstream to the 7I90 (chose 7i90_spi_svst4_8.bit). Running: $ mesaflash --device 7i90hd --addr /dev/spidev0.0 --spi --readhmid gives me the same "no 7I90HD board found" error though. I tried adding a pullup resistor to the SDO pin, without change, which would seem to indicate the 7I90HD is actively driving it low. Is there a very simple blinky bitstream I can try loading to be sure the jtag loading is successful? The /INIT yellow led flashes briefly, and /DONE red led does go on during the load and goes off afterward. Thanks again. -- Ralph From: Peter C. Wallace [p...@mesanet.com] Sent: Friday, January 8, 2021 1:22 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd CAUTION: This email originated from outside the Walla Walla University email system. On Fri, 8 Jan 2021, Ralph Stirling wrote: > Date: Fri, 8 Jan 2021 21:08:55 + > From: Ralph Stirling > Reply-To: "Enhanced Machine Controller (EMC)" > > To: "Enhanced Machine Controller (EMC)" > Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd > > Not having Xilinx Impact tool on the Rpi (or anywhere > at the moment), I found a tutorial on setting up > OpenOCD for jtag on the Rpi. I have installed OpenOCD > on my RPi 3B+ and connected the gpio to the JTAG pins > on the 7i90HD, following this tutorial: > > https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmovr0.com%2F2016%2F09%2F02%2Fuse-raspberry-pi-23-as-a-jtagswd-adapter%2Fdata=04%7C01%7Cralph.stirling%40wallawalla.edu%7C0e816ca3cbad4d7d899008d8b41b9984%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637457377919675638%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=6NnpSk67I%2FpHEaLUmq1Fmg0%2FX6XH2KpNqNghMfBq6lk%3Dreserved=0 > > The last step seems to be to make a configuration > file for the target device. The EEPROMs are WInbond > 25Q16JVNIQ as best I can read the chip labels. OpenOCD > doesn't have anything that looks directly applicable. > I also don't know where the two chips are in the jtag > chain. You dont need to do this if you can program the FPGA (and JTAG programming large EEPROMS is glacially slow) If you can program the FPGA via JTAG, you program the FPGA with a SPI configuration, and then run mesaflash from the RPI to write the flash memory > > Am I heading down a rat hole, or getting close to success? > > Thanks again. > -- Ralph > > From: Peter C. Wallace [p...@mesanet.com] > Sent: Thursday, January 7, 2021 3:47 PM > To: Enhanced Machine Controller (EMC) > Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd > > CAUTION: This email originated from outside the Walla Walla University email > system. > > > On Thu, 7 Jan 2021, Ralph Stirling wrote: > >> Date: Thu, 7 Jan 2021 23:37:03 +0000 >> From: Ralph Stirling >> Reply-To: "Enhanced Machine Controller (EMC)" >> >> To: "Enhanced Machine Controller (EMC)" >> Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd >> >> I assumed that the 7i90hd would recognize SPI >> directly, like the 7c81 does. Do I have to go >> dig up a parallel port computer from somewhere >> and get at least mesaflash running on it just >> so I can get spi working for the pi? That is an >> unfortunate hurdle. I don't see anything in the >> manual about needing to load the correct bitstream >> over parallel in order to use spi. In fact, I read >> this in the manual: > > Yep, you need to have SPI firmware loaded in the 7I90HD > default 7I90HD firmware is EPP, so a device with a EPP > interface is needed to load the SPI configuration > I would suggest loading the SPI interface into the > secondary flash leaving the primary as EPP for a fallback > > That is, power the 7I90 with the flash jumper in the "P" position > them move the jumper to "S" before loadin the SPI firmware > > >> >> "Linux and Windows utility programs mesaflash and mesaflash.exe are provided >> to >> write configuration files to the 7I90HD EEPROM via the RS-422 interface and >> LBP16. The >> linux utility can also write configuration files via the EPP interface. >> These files depend on >> a simple SPI interface built into both the standard user FPGA bitfiles and >> the fallback >> bitfile." > > > Well there are 2 SPI interfaces, the HM2 compatible host interface (which > needs > specific SPI firmware) and the SPI Flash memory interface (which is in HM2 > memory space and allows acc
Re: [Emc-users] Rpi 3b+ to 7i90hd
On Fri, 8 Jan 2021, Ralph Stirling wrote: Date: Fri, 8 Jan 2021 21:08:55 + From: Ralph Stirling Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd Not having Xilinx Impact tool on the Rpi (or anywhere at the moment), I found a tutorial on setting up OpenOCD for jtag on the Rpi. I have installed OpenOCD on my RPi 3B+ and connected the gpio to the JTAG pins on the 7i90HD, following this tutorial: https://movr0.com/2016/09/02/use-raspberry-pi-23-as-a-jtagswd-adapter/ The last step seems to be to make a configuration file for the target device. The EEPROMs are WInbond 25Q16JVNIQ as best I can read the chip labels. OpenOCD doesn't have anything that looks directly applicable. I also don't know where the two chips are in the jtag chain. You dont need to do this if you can program the FPGA (and JTAG programming large EEPROMS is glacially slow) If you can program the FPGA via JTAG, you program the FPGA with a SPI configuration, and then run mesaflash from the RPI to write the flash memory Am I heading down a rat hole, or getting close to success? Thanks again. -- Ralph From: Peter C. Wallace [p...@mesanet.com] Sent: Thursday, January 7, 2021 3:47 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd CAUTION: This email originated from outside the Walla Walla University email system. On Thu, 7 Jan 2021, Ralph Stirling wrote: Date: Thu, 7 Jan 2021 23:37:03 + From: Ralph Stirling Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd I assumed that the 7i90hd would recognize SPI directly, like the 7c81 does. Do I have to go dig up a parallel port computer from somewhere and get at least mesaflash running on it just so I can get spi working for the pi? That is an unfortunate hurdle. I don't see anything in the manual about needing to load the correct bitstream over parallel in order to use spi. In fact, I read this in the manual: Yep, you need to have SPI firmware loaded in the 7I90HD default 7I90HD firmware is EPP, so a device with a EPP interface is needed to load the SPI configuration I would suggest loading the SPI interface into the secondary flash leaving the primary as EPP for a fallback That is, power the 7I90 with the flash jumper in the "P" position them move the jumper to "S" before loadin the SPI firmware "Linux and Windows utility programs mesaflash and mesaflash.exe are provided to write configuration files to the 7I90HD EEPROM via the RS-422 interface and LBP16. The linux utility can also write configuration files via the EPP interface. These files depend on a simple SPI interface built into both the standard user FPGA bitfiles and the fallback bitfile." Well there are 2 SPI interfaces, the HM2 compatible host interface (which needs specific SPI firmware) and the SPI Flash memory interface (which is in HM2 memory space and allows access to the SPI flash chip) I can tack on a pullup to SDO. I have put four scope probes on the four signals, and see data when interrogating the 7c81, but not the 7i90hd. The clock from the pi is correct. Thanks again. -- Ralph From: Peter C. Wallace [p...@mesanet.com] Sent: Thursday, January 7, 2021 3:18 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd Looks right 2 layer should be fine as long as the ground is solid (wide) between the 7I90 and the RPI (and lo longer than a couple of inches You might try adding a pullup to SDO (7I90 15) to see if you read 0x which would indicate the the 7I90 is not driving SDO Sure you have a SPI config in the 7I90? Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-usersdata=04%7C01%7Cralph.stirling%40wallawalla.edu%7C5c8bbaf5f3984eec51d008d8b366a9bc%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637456600811311135%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=m8smz8GxQR83SZ5IKfEacp6Rr12LQnmpghFS5H0l1JM%3Dreserved=0 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-usersdata=04%7C01%7Cralph.stirling%40wallawalla.edu%7C5c8bbaf5f3984eec51d008d8b366a9bc%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637456600811311135%7CUnknown%7CTWFpbGZsb3
Re: [Emc-users] Rpi 3b+ to 7i90hd
Not having Xilinx Impact tool on the Rpi (or anywhere at the moment), I found a tutorial on setting up OpenOCD for jtag on the Rpi. I have installed OpenOCD on my RPi 3B+ and connected the gpio to the JTAG pins on the 7i90HD, following this tutorial: https://movr0.com/2016/09/02/use-raspberry-pi-23-as-a-jtagswd-adapter/ The last step seems to be to make a configuration file for the target device. The EEPROMs are WInbond 25Q16JVNIQ as best I can read the chip labels. OpenOCD doesn't have anything that looks directly applicable. I also don't know where the two chips are in the jtag chain. Am I heading down a rat hole, or getting close to success? Thanks again. -- Ralph From: Peter C. Wallace [p...@mesanet.com] Sent: Thursday, January 7, 2021 3:47 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd CAUTION: This email originated from outside the Walla Walla University email system. On Thu, 7 Jan 2021, Ralph Stirling wrote: > Date: Thu, 7 Jan 2021 23:37:03 + > From: Ralph Stirling > Reply-To: "Enhanced Machine Controller (EMC)" > > To: "Enhanced Machine Controller (EMC)" > Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd > > I assumed that the 7i90hd would recognize SPI > directly, like the 7c81 does. Do I have to go > dig up a parallel port computer from somewhere > and get at least mesaflash running on it just > so I can get spi working for the pi? That is an > unfortunate hurdle. I don't see anything in the > manual about needing to load the correct bitstream > over parallel in order to use spi. In fact, I read > this in the manual: Yep, you need to have SPI firmware loaded in the 7I90HD default 7I90HD firmware is EPP, so a device with a EPP interface is needed to load the SPI configuration I would suggest loading the SPI interface into the secondary flash leaving the primary as EPP for a fallback That is, power the 7I90 with the flash jumper in the "P" position them move the jumper to "S" before loadin the SPI firmware > > "Linux and Windows utility programs mesaflash and mesaflash.exe are provided > to > write configuration files to the 7I90HD EEPROM via the RS-422 interface and > LBP16. The > linux utility can also write configuration files via the EPP interface. These > files depend on > a simple SPI interface built into both the standard user FPGA bitfiles and > the fallback > bitfile." Well there are 2 SPI interfaces, the HM2 compatible host interface (which needs specific SPI firmware) and the SPI Flash memory interface (which is in HM2 memory space and allows access to the SPI flash chip) > > I can tack on a pullup to SDO. I have put four > scope probes on the four signals, and see data > when interrogating the 7c81, but not the 7i90hd. > The clock from the pi is correct. > > Thanks again. > -- Ralph > ________ > From: Peter C. Wallace [p...@mesanet.com] > Sent: Thursday, January 7, 2021 3:18 PM > To: Enhanced Machine Controller (EMC) > Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd > > > Looks right > > 2 layer should be fine as long as the ground is solid (wide) > between the 7I90 and the RPI (and lo longer than a couple of > inches > > You might try adding a pullup to SDO (7I90 15) to see if you read > 0x which would indicate the the 7I90 is not driving SDO > > Sure you have a SPI config in the 7I90? > > > Peter Wallace > Mesa Electronics > > (\__/) > (='.'=) This is Bunny. Copy and paste bunny into your > (")_(") signature to help him gain world domination. > > > > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-usersdata=04%7C01%7Cralph.stirling%40wallawalla.edu%7C5c8bbaf5f3984eec51d008d8b366a9bc%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637456600811311135%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=m8smz8GxQR83SZ5IKfEacp6Rr12LQnmpghFS5H0l1JM%3Dreserved=0 > > > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-usersdata=04%7C01%7Cralph.stirling%40wallawalla.edu%7C5c8bbaf5f3984eec51d008d8b366a9bc%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637456600811311135%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=m8smz8GxQR83SZ5IKfEacp6Rr12LQnmpghFS5H0l1JM%3Dreserved=0 > Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny
Re: [Emc-users] Rpi 3b+ to 7i90hd
A jtag driver for mesaflash would be a nice way to program the 7i90hd, since setting up an epp machine just for loading the bitstream is a real pain. The RPi gpio should be able to do jtag without trouble, even if it is a little slow. -- Ralph From: Peter C. Wallace [p...@mesanet.com] Sent: Thursday, January 7, 2021 3:47 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd Yep, you need to have SPI firmware loaded in the 7I90HD default 7I90HD firmware is EPP, so a device with a EPP interface is needed to load the SPI configuration I would suggest loading the SPI interface into the secondary flash leaving the primary as EPP for a fallback That is, power the 7I90 with the flash jumper in the "P" position them move the jumper to "S" before loadin the SPI firmware > > "Linux and Windows utility programs mesaflash and mesaflash.exe are provided > to > write configuration files to the 7I90HD EEPROM via the RS-422 interface and > LBP16. The > linux utility can also write configuration files via the EPP interface. These > files depend on > a simple SPI interface built into both the standard user FPGA bitfiles and > the fallback > bitfile." Well there are 2 SPI interfaces, the HM2 compatible host interface (which needs specific SPI firmware) and the SPI Flash memory interface (which is in HM2 memory space and allows access to the SPI flash chip) > > I can tack on a pullup to SDO. I have put four > scope probes on the four signals, and see data > when interrogating the 7c81, but not the 7i90hd. > The clock from the pi is correct. > > Thanks again. > -- Ralph > > From: Peter C. Wallace [p...@mesanet.com] > Sent: Thursday, January 7, 2021 3:18 PM > To: Enhanced Machine Controller (EMC) > Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd > > > Looks right > > 2 layer should be fine as long as the ground is solid (wide) > between the 7I90 and the RPI (and lo longer than a couple of > inches > > You might try adding a pullup to SDO (7I90 15) to see if you read > 0x which would indicate the the 7I90 is not driving SDO > > Sure you have a SPI config in the 7I90? > > > Peter Wallace > Mesa Electronics > > (\__/) > (='.'=) This is Bunny. Copy and paste bunny into your > (")_(") signature to help him gain world domination. > > > > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-usersdata=04%7C01%7Cralph.stirling%40wallawalla.edu%7C5c8bbaf5f3984eec51d008d8b366a9bc%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637456600811311135%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=m8smz8GxQR83SZ5IKfEacp6Rr12LQnmpghFS5H0l1JM%3Dreserved=0 > > > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-usersdata=04%7C01%7Cralph.stirling%40wallawalla.edu%7C5c8bbaf5f3984eec51d008d8b366a9bc%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637456600811311135%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=m8smz8GxQR83SZ5IKfEacp6Rr12LQnmpghFS5H0l1JM%3Dreserved=0 > Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-usersdata=04%7C01%7Cralph.stirling%40wallawalla.edu%7C5c8bbaf5f3984eec51d008d8b366a9bc%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637456600811311135%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=m8smz8GxQR83SZ5IKfEacp6Rr12LQnmpghFS5H0l1JM%3Dreserved=0 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Rpi 3b+ to 7i90hd
On Thursday 07 January 2021 18:58:27 Gene Heskett wrote: > On Thursday 07 January 2021 18:18:52 Peter C. Wallace wrote: > > On Thu, 7 Jan 2021, Ralph Stirling wrote: > > > Date: Thu, 7 Jan 2021 22:05:32 + > > > From: Ralph Stirling > > > Reply-To: "Enhanced Machine Controller (EMC)" > > > > > > To: "emc-users@lists.sourceforge.net" > > > Subject: [Emc-users] Rpi 3b+ to > > > 7i90hd > > > > > > I have a Raspberry Pi 3b+ successfully talking to a > > > Mesa 7c81, but am now trying to get it working with > > > a 7i90hd. I have a very compact pcb made to go > > > from the 2x20 header on the pi to the 2x13 header > > > on the 7i90hd. It is wired: > > > > > > Signal Rpi7i90hd > > > SDI19 13 > > > SDO 21 15 > > > SCK 23 11 > > > SCS 24 17 > > > > > > +5V 2,4 26 > > > GND6,9,20,25,30,34,39 10,12,14,16,18,20,22,24 > > > > > > My test is: > > > $ mesaflash --device 7i90hd --addr /dev/spidev0.0 --spi > > > --readhmid > > > > > > Response is: > > > unable to set bpw32, fallback to bpw8 > > > Unexpected cookie at 0100..0110: > > > > > > No 7I90HD board found > > > > > > Since a 7c81 works, it would seem my software setup is ok. > > > The problem would seem to lie with either my little adapter > > > board or with the 7i90hd. I have a bypass cap right between > > > pins 4 and 6 on the RPi connector (22uF 0805 ceramic). Do > > > I need to use a four layer board to have sufficient ground > > > plane? I have copper pour on the top and bottom of the board, > > > but it did not go between pins of the connectors. > > > > > > Any suggestions? > > > > > > Thanks, > > > -- Ralph > > > > Looks right > > > > 2 layer should be fine as long as the ground is solid (wide) > > between the 7I90 and the RPI (and lo longer than a couple of > > inches > > > > You might try adding a pullup to SDO (7I90 15) to see if you read > > 0x which would indicate the the 7I90 is not driving SDO > > > > Sure you have a SPI config in the 7I90? > > The rpspi driver should handle that. > But I missead the question, yes, he will need to install the spi version of the firmware with mesaflash. > > Peter Wallace > > Mesa Electronics > > > > (\__/) > > (='.'=) This is Bunny. Copy and paste bunny into your > > (")_(") signature to help him gain world domination. > > > > > > > > ___ > > Emc-users mailing list > > Emc-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/emc-users > > Cheers, Gene Heskett 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) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene> ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Rpi 3b+ to 7i90hd
On Thursday 07 January 2021 18:18:52 Peter C. Wallace wrote: > On Thu, 7 Jan 2021, Ralph Stirling wrote: > > Date: Thu, 7 Jan 2021 22:05:32 + > > From: Ralph Stirling > > Reply-To: "Enhanced Machine Controller (EMC)" > > > > To: "emc-users@lists.sourceforge.net" > > Subject: [Emc-users] Rpi 3b+ to > > 7i90hd > > > > I have a Raspberry Pi 3b+ successfully talking to a > > Mesa 7c81, but am now trying to get it working with > > a 7i90hd. I have a very compact pcb made to go > > from the 2x20 header on the pi to the 2x13 header > > on the 7i90hd. It is wired: > > > > Signal Rpi7i90hd > > SDI19 13 > > SDO 21 15 > > SCK 23 11 > > SCS 24 17 > > > > +5V 2,4 26 > > GND6,9,20,25,30,34,39 10,12,14,16,18,20,22,24 > > > > My test is: > > $ mesaflash --device 7i90hd --addr /dev/spidev0.0 --spi --readhmid > > > > Response is: > > unable to set bpw32, fallback to bpw8 > > Unexpected cookie at 0100..0110: > > > > No 7I90HD board found > > > > Since a 7c81 works, it would seem my software setup is ok. > > The problem would seem to lie with either my little adapter > > board or with the 7i90hd. I have a bypass cap right between > > pins 4 and 6 on the RPi connector (22uF 0805 ceramic). Do > > I need to use a four layer board to have sufficient ground > > plane? I have copper pour on the top and bottom of the board, > > but it did not go between pins of the connectors. > > > > Any suggestions? > > > > Thanks, > > -- Ralph > > Looks right > > 2 layer should be fine as long as the ground is solid (wide) > between the 7I90 and the RPI (and lo longer than a couple of > inches > > You might try adding a pullup to SDO (7I90 15) to see if you read > 0x which would indicate the the 7I90 is not driving SDO > > Sure you have a SPI config in the 7I90? > The rpspi driver should handle that. > > Peter Wallace > Mesa Electronics > > (\__/) > (='.'=) This is Bunny. Copy and paste bunny into your > (")_(") signature to help him gain world domination. > > > > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users 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) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene> ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Rpi 3b+ to 7i90hd
On Thu, 7 Jan 2021, Ralph Stirling wrote: Date: Thu, 7 Jan 2021 23:37:03 + From: Ralph Stirling Reply-To: "Enhanced Machine Controller (EMC)" To: "Enhanced Machine Controller (EMC)" Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd I assumed that the 7i90hd would recognize SPI directly, like the 7c81 does. Do I have to go dig up a parallel port computer from somewhere and get at least mesaflash running on it just so I can get spi working for the pi? That is an unfortunate hurdle. I don't see anything in the manual about needing to load the correct bitstream over parallel in order to use spi. In fact, I read this in the manual: Yep, you need to have SPI firmware loaded in the 7I90HD default 7I90HD firmware is EPP, so a device with a EPP interface is needed to load the SPI configuration I would suggest loading the SPI interface into the secondary flash leaving the primary as EPP for a fallback That is, power the 7I90 with the flash jumper in the "P" position them move the jumper to "S" before loadin the SPI firmware "Linux and Windows utility programs mesaflash and mesaflash.exe are provided to write configuration files to the 7I90HD EEPROM via the RS-422 interface and LBP16. The linux utility can also write configuration files via the EPP interface. These files depend on a simple SPI interface built into both the standard user FPGA bitfiles and the fallback bitfile." Well there are 2 SPI interfaces, the HM2 compatible host interface (which needs specific SPI firmware) and the SPI Flash memory interface (which is in HM2 memory space and allows access to the SPI flash chip) I can tack on a pullup to SDO. I have put four scope probes on the four signals, and see data when interrogating the 7c81, but not the 7i90hd. The clock from the pi is correct. Thanks again. -- Ralph From: Peter C. Wallace [p...@mesanet.com] Sent: Thursday, January 7, 2021 3:18 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd Looks right 2 layer should be fine as long as the ground is solid (wide) between the 7I90 and the RPI (and lo longer than a couple of inches You might try adding a pullup to SDO (7I90 15) to see if you read 0x which would indicate the the 7I90 is not driving SDO Sure you have a SPI config in the 7I90? Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-usersdata=04%7C01%7Cralph.stirling%40wallawalla.edu%7C2f1545841f8d4543ae6508d8b362a7cb%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637456583593747863%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=N92UNNqfvDYhsmSGI4EAkbQ9%2F8guRn8JkuXRyMbez3Y%3Dreserved=0 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Rpi 3b+ to 7i90hd
I assumed that the 7i90hd would recognize SPI directly, like the 7c81 does. Do I have to go dig up a parallel port computer from somewhere and get at least mesaflash running on it just so I can get spi working for the pi? That is an unfortunate hurdle. I don't see anything in the manual about needing to load the correct bitstream over parallel in order to use spi. In fact, I read this in the manual: "Linux and Windows utility programs mesaflash and mesaflash.exe are provided to write configuration files to the 7I90HD EEPROM via the RS-422 interface and LBP16. The linux utility can also write configuration files via the EPP interface. These files depend on a simple SPI interface built into both the standard user FPGA bitfiles and the fallback bitfile." I can tack on a pullup to SDO. I have put four scope probes on the four signals, and see data when interrogating the 7c81, but not the 7i90hd. The clock from the pi is correct. Thanks again. -- Ralph From: Peter C. Wallace [p...@mesanet.com] Sent: Thursday, January 7, 2021 3:18 PM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Rpi 3b+ to 7i90hd Looks right 2 layer should be fine as long as the ground is solid (wide) between the 7I90 and the RPI (and lo longer than a couple of inches You might try adding a pullup to SDO (7I90 15) to see if you read 0x which would indicate the the 7I90 is not driving SDO Sure you have a SPI config in the 7I90? Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-usersdata=04%7C01%7Cralph.stirling%40wallawalla.edu%7C2f1545841f8d4543ae6508d8b362a7cb%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637456583593747863%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=N92UNNqfvDYhsmSGI4EAkbQ9%2F8guRn8JkuXRyMbez3Y%3Dreserved=0 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Rpi 3b+ to 7i90hd
On Thu, 7 Jan 2021, Ralph Stirling wrote: Date: Thu, 7 Jan 2021 22:05:32 + From: Ralph Stirling Reply-To: "Enhanced Machine Controller (EMC)" To: "emc-users@lists.sourceforge.net" Subject: [Emc-users] Rpi 3b+ to 7i90hd I have a Raspberry Pi 3b+ successfully talking to a Mesa 7c81, but am now trying to get it working with a 7i90hd. I have a very compact pcb made to go from the 2x20 header on the pi to the 2x13 header on the 7i90hd. It is wired: Signal Rpi7i90hd SDI19 13 SDO 21 15 SCK 23 11 SCS 24 17 +5V 2,4 26 GND6,9,20,25,30,34,39 10,12,14,16,18,20,22,24 My test is: $ mesaflash --device 7i90hd --addr /dev/spidev0.0 --spi --readhmid Response is: unable to set bpw32, fallback to bpw8 Unexpected cookie at 0100..0110: No 7I90HD board found Since a 7c81 works, it would seem my software setup is ok. The problem would seem to lie with either my little adapter board or with the 7i90hd. I have a bypass cap right between pins 4 and 6 on the RPi connector (22uF 0805 ceramic). Do I need to use a four layer board to have sufficient ground plane? I have copper pour on the top and bottom of the board, but it did not go between pins of the connectors. Any suggestions? Thanks, -- Ralph Looks right 2 layer should be fine as long as the ground is solid (wide) between the 7I90 and the RPI (and lo longer than a couple of inches You might try adding a pullup to SDO (7I90 15) to see if you read 0x which would indicate the the 7I90 is not driving SDO Sure you have a SPI config in the 7I90? Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Rpi 3b+ to 7i90hd
I have a Raspberry Pi 3b+ successfully talking to a Mesa 7c81, but am now trying to get it working with a 7i90hd. I have a very compact pcb made to go from the 2x20 header on the pi to the 2x13 header on the 7i90hd. It is wired: Signal Rpi7i90hd SDI19 13 SDO 21 15 SCK 23 11 SCS 24 17 +5V 2,4 26 GND6,9,20,25,30,34,39 10,12,14,16,18,20,22,24 My test is: $ mesaflash --device 7i90hd --addr /dev/spidev0.0 --spi --readhmid Response is: unable to set bpw32, fallback to bpw8 Unexpected cookie at 0100..0110: No 7I90HD board found Since a 7c81 works, it would seem my software setup is ok. The problem would seem to lie with either my little adapter board or with the 7i90hd. I have a bypass cap right between pins 4 and 6 on the RPi connector (22uF 0805 ceramic). Do I need to use a four layer board to have sufficient ground plane? I have copper pour on the top and bottom of the board, but it did not go between pins of the connectors. Any suggestions? Thanks, -- Ralph ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users