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

Prevent flashing non .bin files (and .bin files without gateware in them) #9

Open
mithro opened this issue Sep 3, 2017 · 0 comments

Comments

@mithro
Copy link

mithro commented Sep 3, 2017

It is a common mistake to try to load a Xilinx .bit file rather than the .bin file. It would be good if the firmware detected this and prevented you from doing so.

Gateware .bin files should start with a header as described here;
https://github.com/timvideos/HDMI2USB-mode-switch/blob/master/hdmi2usb/modeswitch/files.py#L161-L170 - if that header is not detected when loading to SPI address 0, it is not going to work.

Even better would be to support decoding the .bit file on the fly and writing the generated .bin output into the flash. That is a lot more work however. (The .bit file is described at https://github.com/timvideos/HDMI2USB-mode-switch/blob/master/hdmi2usb/modeswitch/files.py#L66)

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

1 participant