OLIMEX / iCE40HX1K-EVB

FPGA development board made with KiCAD
Apache License 2.0
101 stars 29 forks source link

iceprogduino simply displays "Error" on 64-bit Windows #16

Open JarrettR opened 1 month ago

JarrettR commented 1 month ago

image

As fast as the system goes.

I haven't specifically tested this on other archs or OSs, but it does seem to be a 64-bit Windows issue.

This issue is that this line returns a ERROR_FILE_NOT_FOUND.

As per this solution, I've hardcoded my particular COM port with that sequence of escape chars. Here's my replacement line:

    hSerial = CreateFile("\\\\.\\COM25", GENERIC_READ|GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL );

I have not exhaustively tested this, and I have not properly integrated it into the existing codebase, so obviously I haven't submitted a PR. But now the answer is out there.