Idea: gateware with iso7816 + usb #1
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: tnt/iso7816-test#1
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It's not that I had any time to use what you developed so far yet (so not urgent by any means), but I think it might be useful to have a ISO7816 + USB gateware at some point, so that a FPGA-noob like myself could work on firmware for e.g. a CCID USB profile.
This in turn would allow us to stress/use the UART using standard tools/applications.
Not sure where we'd go from there, as there is currently no real plan to use this ISO7816 softcore in any specific product/project.
Also FPGA noob here, but if it fits on the Glasgow's ICE40 FPGA (https://www.crowdsupply.com/1bitsquared/glasgow), that board already has a FX2 USB frontend and it'd give this project more exposure?
Glasgow is not meant for that. Trying to use it as a CCID device would be very impractical.
Added a gateware build option to include a no2usb core.
And also added another firmware that initializes it and just enumerates.
make USB=1
in the gateware project dir to build the gateware with USB core enabled.Oh, ok, I indeed had no idea :-S ... why would that be impractical? Because of the Glasgow architecture/connections, pure verilog vs applet (nmigen) integration, speed or sth else?
Because in glasgow applets don't control the FX2 firmware, hence don't control the descriptors. The whole architecture just provides a data pipe between your code in the python control app and your logic inside the FPGA and all the USB stuff is hidden. It's not designed at all to make it appear as any kind of custom/standard usb class device.
And then even if you threw away all the glasgow software stack to just use the hardware, you'd have to write your CCID stuff targetting a FX2, some cursed 8051 based architecture ...