Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion fujprog.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,17 @@ static struct cable_hw_map {
.tdo = 0x04,
.cbus_led = 0x10
},
{
.cable_hw = CABLE_HW_USB,
.usb_vid = 0x0403,
.usb_pid = 0x6010,
.cable_path = "Lattice ECP5 Evaluation Board A",
.tck = 0x01,
.tms = 0x08,
.tdi = 0x02,
.tdo = 0x04,
.cbus_led = 0x10
},
{
.cable_hw = CABLE_HW_USB,
.usb_vid = 0x0403,
Expand Down Expand Up @@ -749,8 +760,11 @@ setup_usb(void)
return (res);
}

if (global_debug)
if (global_debug) {
fprintf(stderr, "Found FTDI device VID 0x%04X PID 0x%04X with description \"%.64s\"\n",
(deviceID >> 16), (deviceID & 0xFFFF), Description);
fprintf(stderr, "Going through cable_hw_map loop\n");
}

for (hmp = cable_hw_map; hmp->cable_hw != CABLE_HW_UNKNOWN; hmp++) {
if (global_debug)
Expand Down