Skip to content
New issue

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

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

Already on GitHub? # to your account

Extremely long programming time #14

Open
langfordpang opened this issue Sep 25, 2019 · 5 comments
Open

Extremely long programming time #14

langfordpang opened this issue Sep 25, 2019 · 5 comments

Comments

@langfordpang
Copy link

I'm having trouble programming MCS file to flash. Basically, after I run prog-fpga.tcl, it takes more than 8 hrs elapsed time to program the flash, while the CPU time is just a few minutes. I am not even sure if the flash is correctly programmed after 8 hrs because all I have right now is the MCS file from the master branch, which I believe is the same one as default.

I am using CentOS 7.6 and Vivado 2018.3, which I don't believe makes a difference in this case. I thought about other possibilities are USB device busy(?) or JTAG speed too low(?) but none of them make sense. I cannot explain. Please advise.

@langfordpang
Copy link
Author

Follow up on this issue -

  1. tried another image using different chip ID and confirmed the image can be successfully programmed. But it takes the same amount of time (8+hrs)
  2. while building XVCD, it failed to find function ftdi_write_data_async. I searched in the header file and library and no such a symbol. I also failed to find a reliable source online to build myself. So I removed the ASYNC macro. I guess this could be the reason. If it’s true, can you advise how I should get over this? Thank you.

@RHSResearchLLC
Copy link
Owner

Normal programming time is 20 minutes, which isn't great but better than 8hr. You can try an executable I pre-built for Linux: https://github.com/RHSResearchLLC/xvcd/blob/master/linux/bin/xvcd

It depends on a few libraries:

linux-vdso.so.1 (0x00007fffe7969000)
	libftdi.so.1 => /usr/lib/x86_64-linux-gnu/libftdi.so.1 (0x00007f32c195f000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f32c156e000)
	libusb-0.1.so.4 => /lib/x86_64-linux-gnu/libusb-0.1.so.4 (0x00007f32c1365000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f32c1d6b000)

@resinbeard
Copy link

As a data point, my programming time takes 28min

@RHSResearchLLC
Copy link
Owner

Just added https://github.com/RHSResearchLLC/PicoEVB/tree/master/spi-flash-program-openocd. This can program the entire flash in under 5 minutes. The sample project programs in 2 minutes.

@RHSResearchLLC
Copy link
Owner

RHSResearchLLC commented Feb 9, 2022 via email

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

No branches or pull requests

3 participants