Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running fpgajtag on Windows #5

Open
gardners opened this issue May 21, 2020 · 2 comments
Open

Running fpgajtag on Windows #5

gardners opened this issue May 21, 2020 · 2 comments

Comments

@gardners
Copy link

Hello again, your chief causer of issues,

We have been porting fpgajtag to Windows (or rather, the version embedded into our MEGA65 debug tool).

We have managed to produce a binary that runs, can talk to the FTDI serial and JTAG interfaces, and can even do the JTAG device detection. However, when it comes to actually transferring a bitstream (which of course is our goal), it has trouble:

We get results like this:


X:\monitorload>monitor_load8.exe -l COM11 -b mega65r2test.bit
Getting started..
#0: fpgajtag: Digilent:Digilent USB Device:251633059648; bcd:700
Trying usb_index=0
USB device info: dev=000000001A7DAA60, idVendor=403, idProduct=6010, bcdDevice=700(0d1792)
USB bus=2, port_number=3
I'm on windows, and don't (yet) know how to work out the COMx: path.
In case it helps: bus=2, port=3
count 0/1 cortex -1 dcount 0 trail 0
STATUS 00401079 done 0 release_done 0 eos 10 startup_state 0
fpgajtag: Starting to send file
fpgajtag: Done sending file
[fpgajtag_main:1020] CONFIG_REG_BOOTSTS mismatch 0
[fpgajtag_main:1024] mismatch 88
fpgajtag: bypass first time 20
STATUS 00700019 done 0 release_done 0 eos 10 startup_state 4
fpgajtag: ERROR failed to run pciescanportal: No such file or directory
[T+3sec] Bitstream loaded

The FPGA board gets de-configured, but never completes the configuration process -- presumably because something (hopefully simple) has gone wrong in the setup prior to that point. We realise that this is not totally core for yourselves, but if in your USB hacking experience are able to offer any ideas on what might be going, this would be super helpful?

We have tried to do a bit of USB traffic capture using wireshark, but are happy to admit that we are clueless when it comes to understanding USB traffic.

The only things I have been able to see so far, is that Windows sends many smaller frames during the setup stage, compared with on Linux. Under Windows the bulk transfer of the bitstream then seems to die after sending just three packets.

Is it maybe some buffer getting full, perhaps

I have attached the two traces here, if they help provide any clues.

linux-working.pcap.gz
windows-notworking.pcap.gz

Thanks for any light you can help us shine on this,
Paul

@jankcorn
Copy link
Member

jankcorn commented May 22, 2020 via email

@gardners
Copy link
Author

Thanks. I'll get the guys with the windows machine to test this when they get up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants