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

feature request --showall #5

Open
gojimmypi opened this issue Jul 26, 2020 · 2 comments
Open

feature request --showall #5

gojimmypi opened this issue Jul 26, 2020 · 2 comments

Comments

@gojimmypi
Copy link

gojimmypi commented Jul 26, 2020

TIL from @goran-mahovlic that when testing the new @RadionaOrg ULX3S boards, the FTDI firmware version will change and some old versions of fujprog and ujprog will NO LONGER WORK. This could make for a really horrible first time user experience.

So my feature request: add something to fujprog that shows all the interesting characteristics of the board (versions, etc), with a warning as to which respective minimum versions of fujprog and ujprog are needed.

I'm thinking something like: fujprog --showall

This first step should prominently be displayed in all tutorials for the ULX3S to avoid potentially countless hours of frustration in trying the program the ULX3S with an out-of-date bitstream uploader tool.

See also: Warning: New batch - or just testing .

Thanks!

@dpavlin
Copy link
Contributor

dpavlin commented Jul 26, 2020

If fujprog had long flags (which it doesn't, @kost hint, hint) I would prefer --boards flag for that. It could be -B as short flag, since -b is already used.

Since we don't have any differences in ULX3S boards in ujprog/fujprog we could also check just prefix ignoring version which would make it future-compatibile. Or check v3.0 without minor version at least....

@dpavlin
Copy link
Contributor

dpavlin commented Aug 5, 2020

Now that @kost implemented more verbose -d output you can get list of supported boards with:

# fujprog -d -i
ULX2S / ULX3S JTAG programmer v4.6 (git e0cedeb built Aug  1 2020 07:13:47)
Copyright (C) Marko Zec, EMARD, gojimmypi, kost and contributors
Going through cable_hw_map loop
Looking cableID 0 (0x0403, 0x6001) with path FER ULXP2 board JTAG / UART
Looking cableID 0 (0x0403, 0x6001) with path FER ULX2S board JTAG / UART
Looking cableID 0 (0x0403, 0x6015) with path ULX3S FPGA board
Looking cableID 0 (0x0403, 0x6015) with path ULX3S FPGA v1.7
Looking cableID 0 (0x0403, 0x6015) with path ULX3S FPGA 25K v1.7
Looking cableID 0 (0x0403, 0x6015) with path ULX3S FPGA 45K v1.7
Looking cableID 0 (0x0403, 0x6015) with path ULX3S FPGA 12K v2.1.2
Looking cableID 0 (0x0403, 0x6015) with path ULX3S FPGA 25K v2.1.2
Looking cableID 0 (0x0403, 0x6015) with path ULX3S FPGA 45K v2.1.2
Looking cableID 0 (0x0403, 0x6015) with path ULX3S FPGA 85K v2.1.2
Looking cableID 0 (0x0403, 0x6015) with path ULX3S FPGA 12K v3.0.3
Looking cableID 0 (0x0403, 0x6015) with path ULX3S FPGA 25K v3.0.3
Looking cableID 0 (0x0403, 0x6015) with path ULX3S FPGA 45K v3.0.3
Looking cableID 0 (0x0403, 0x6015) with path ULX3S FPGA 85K v3.0.3
Looking cableID 0 (0x0403, 0x6015) with path ULX3S FPGA 12K v3.0.7
Looking cableID 0 (0x0403, 0x6015) with path ULX3S FPGA 25K v3.0.7
Looking cableID 0 (0x0403, 0x6015) with path ULX3S FPGA 45K v3.0.7
Looking cableID 0 (0x0403, 0x6015) with path ULX3S FPGA 85K v3.0.7
Found cableID 0 (0x0403, 0x6015) with path ULX3S FPGA 85K v3.0.7
Returning from setup_usb()
Using USB cable: ULX3S FPGA 85K v3.0.7

This will stop if it finds support board or list all supported boards.

I don't have any v3.0.8 boards anymore so it's not really listing all versions, but up to supported one.

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