quartiq / bscan_spi_bitstreams

FPGA gateware and pre-build bitstreams that expose SPI over JTAG. The protocol is implemented (among others) by openocd.
MIT License
51 stars 20 forks source link

Unable to geneated bscan_spi_xc6slx9t.bit #15

Closed Dv-p closed 7 months ago

Dv-p commented 7 months ago

Hello !!

I followed README and executed command but it's having error while building bscan_spi_xc6slx9t.bit but other bit files are generating properly. Also I tried finding this in master and their branches but I couldn't found it.

Screenshot from 2024-03-16 15-23-44

Can you help me with this? Or provide me this bit file, that would be much helpful.

Thanks !!

jordens commented 7 months ago

You'll have to read the full log.

Dv-p commented 7 months ago

Thanks for the reply !! I read log file. It says invalid target device 'xc6slx9t'. Attaching log file for your reference.

xc6slx9t_log.txt

Is there any solution for this ?

jordens commented 7 months ago

I don't know. Maybe the device doesn't exist.

Dv-p commented 7 months ago

Okay I built it in different way. Not an issue. Basically I am trying to flash my spartan6 (xc6slx9t) using openocd via jtag. I am able to program my spratan6 but unable to flash it, below is the snapshot of the error: openocd_error

Using following command: openocd -f /usr/local/share/openocd/scripts/interface/raspberrypi-native.cfg -f /usr/local/share/openocd/scripts/cpld/xilinx-xc6s.cfg -f /usr/local/share/openocd/scripts/cpld/jtagspi.cfg -c "init; jtagspi_init 0 ./Downloads/bscan_spi_xc6slx9t.bit; jtagspi_program ./Desktop/topgcspihostmot2.bin 0; xc6s_program xc6s.tap; shutdown"

Can you help me with this ?

Thanks !!

jordens commented 7 months ago

How did you build.it of the device isn't recognized?

It looks like it can't talk to the flash chip. Maybe wrong pin out.

Dv-p commented 7 months ago

I built it using ISE Design suite (using generated .v and .ucf files). Also I am able to flash now, pin assignement was right, issue was in command.

jordens commented 7 months ago

Could you check what's wrong and why it doesn't build using the existing script? Maybe there's an easy fix.

Dv-p commented 7 months ago

Sorry I don't have that much scripting knowledge. That was the reason I raised the issue.