On Thu, Jun 20, 2024 at 12:40:55AM +0200, Marc Schink wrote:
> To be host I'm suprised that there are still parallel port users out
> there. Although the main reason is probably more nostalgia than
> anything else ;)

I have not yet used OpenOCD with a parallel port, but last month I've
flashed an ATmega using one since I couldn't find my USB programmer.
I do have a genuine Altera and Xilinx parallel port programmer somewhere
in my collection, though.

> Anyway, my main problem with the parallel port is Windows. I'm not able
> to build a regression test setup for Windows. There is no documentation
> on how to set up OpenOCD with a parallel port driver on Windows.

Looking at the code, it appears you must install the giveio driver on
Windows. OpenOCD will ask the driver to allow direct hardware access
for the current process (like the iopl syscall for Linux does). The
newest version for 64 bit Windows can be found here:
https://www-user.tu-chemnitz.de/~heha/hs/giveio64.zip/
Yes, that driver is 9 years old, but the 4 years younger readme says
that it has been sucessfully tested on at least one Windows 10 computer.

The amt_jtagaccel and gw6012 OpenOCD backends expect the I/O port address
of the parallel port (usually 0x378, 0x278 or 0x3bc for on-board ports)
to be configured with the "parport_port" command. The parport backend
uses the "port" command instead. For amt_jtagaccel you need an EPP
capable parallel port. The other two backends use the port in plain SPP
mode.

Best regards,

  Daniel

Reply via email to