Skip to content

litex_server --jtag fails to connect with openocd 0.12.0 #2307

@polprog

Description

@polprog

When trying to use litex_server against xc7s target with openocd built from the latest release (0.12.0+dev-snapshot) the initialization fails due to wrong number format in the stream.cfg file.

This is the error message:

$  litex_server --jtag 
[ ... skipped ... ]
[CommUART] port: JTAG / tcp port: 1234
stream.cfg:20: Error: expected integer but got "0x0000
0001
0001
0001
[ ... many more identical lines skipped ... ]
0001
0001
0001"
Traceback (most recent call last):
, in jtagstream_serve
    jtagstream_rxtx xc7.tap ::aio.sockstream5 0
  File "stream.cfg", line 44, in jtagstream_rxtx
    jtagstream_drain xc7.tap {} 128 4096
  File "stream.cfg", line 30, in jtagstream_drain
    jtagstream_poll xc7.tap {} 128
  File "stream.cfg", line 20, in jtagstream_poll
    expr { "0x${rxj}" & 0x200 }

I think this is due to the excess "0x" format in expr, but I do not know where the stream.cfg file comes from, it seems to be auto-generated.

I believe I have updated LiteX to the latest release (2025.04) but litex_server does not show any version info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions