dpn
Hey,
I tried to do this, but openocd is unable to find a board. Running ´artiq_flash -d /tmp start´ however works.
I wrote the following function based on your code hoping it returns the board stats, but I am not sure what to give for the serial argument for openocd.
def get_kasli_stats(board = 'artiq_105'):
script = [
"source [find board/kasli.cfg]",
f"ftdi_serial {board}",
"init",
"xadc_report xc7.tap",
"exit",
]
result = subprocess.run(["openocd", "-c", ";".join(script)],
encoding="utf-8",
capture_output=True)
if result.returncode != 0:
print("OpenOCD call failed:", result)
data = {}
for line in result.stderr.splitlines():
frags = line.split(" ")
if frags[0] in ("TEMP", "VCCINT", "VCCAUX", "VCCBRAM"):
data[frags[0].lower()] = float(frags[1])
return data
The return error is:
´´´
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6011, description 'Quad RS232-HS', serial 'artiq_105' at bus location '*'
´´´
Can you please help me with how to fix this?
Also, does the serial monitoring work in parallel when a real time experiment is running on the board?
Thanks in advance! (:
Clear skies,
Santhosh