sb10q
Thanks. Yes, indeed a single-user Nix enables me to install ARTIQ as documented. I added artiq-full.artiq-board-kasli-bonn
to the nix file for installation.
Running artiq_flash -V bonn
from within WSL however seems not find the board.
[nix-shell:~]$ artiq_flash -V bonn
Design: top;COMPRESS=TRUE;UserID=FFFFFFFF;Version=2021.2
Part name: 7a100tfgg484
Date: 2022/04/07
Time: 15:13:30
Bitstream payload length: 0x24d334
Open On-Chip Debugger 0.11.0+dev-snapshot (2022-01-04-10:01)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6011, description 'Quad RS232-HS', serial '*' at bus location '*'
Traceback (most recent call last):
File "/nix/store/73jhsgwx20xyfmdqqk1cbmg27xv2cg8h-python3.8-artiq-6.7661.ca67ae83/bin/.artiq_flash-wrapped", line 9, in <module>
sys.exit(main())
File "/nix/store/6nvdvfqy8xaqb9j8s47clz58ml7rhp5f-python3-3.8.11-env/lib/python3.8/site-packages/artiq/frontend/artiq_flash.py", line 474, in main
programmer.run()
File "/nix/store/6nvdvfqy8xaqb9j8s47clz58ml7rhp5f-python3-3.8.11-env/lib/python3.8/site-packages/artiq/frontend/artiq_flash.py", line 207, in run
self._client.run_command(cmdline)
File "/nix/store/6nvdvfqy8xaqb9j8s47clz58ml7rhp5f-python3-3.8.11-env/lib/python3.8/site-packages/artiq/remoting.py", line 57, in run_command
subprocess.check_call([arg.format(tmp=self._tmp, **kws) for arg in cmd])
File "/nix/store/j2hdhabhzvwy7zbw96pi7m7i066snh2i-python3-3.8.11/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['openocd', '-s', '/nix/store/sxf36v7mradwz1rdi179hi9s4mab0djl-openocd-bscanspi/share/openocd/scripts', '-c', 'source [find board/kasli.cfg]; target create xc7.spi0.proxy testee -chain-position xc7.tap; flash bank spi0 jtagspi 0 0 0 0 xc7.spi0.proxy 0x2; gdb_port disabled; tcl_port disabled; telnet_port disabled; init; xadc_report xc7.tap; pld load 0 {/nix/store/sxf36v7mradwz1rdi179hi9s4mab0djl-openocd-bscanspi/share/bscan-spi-bitstreams/bscan_spi_xc7a100t.bit}; flash probe spi0; flash erase_sector spi0 0 36; flash write_bank spi0 {/tmp/artiq_z6plutr7_top.bit} 0x0; flash verify_bank spi0 {/tmp/artiq_z6plutr7_top.bit} 0x0; flash probe spi0; flash erase_sector spi0 64 66; flash write_bank spi0 {/nix/store/6nvdvfqy8xaqb9j8s47clz58ml7rhp5f-python3-3.8.11-env/lib/python3.8/site-packages/artiq/board-support/kasli-bonn/bootloader.bin} 0x400000; flash verify_bank spi0 {/nix/store/6nvdvfqy8xaqb9j8s47clz58ml7rhp5f-python3-3.8.11-env/lib/python3.8/site-packages/artiq/board-support/kasli-bonn/bootloader.bin} 0x400000; flash probe spi0; flash erase_sector spi0 69 78; flash write_bank spi0 {/nix/store/6nvdvfqy8xaqb9j8s47clz58ml7rhp5f-python3-3.8.11-env/lib/python3.8/site-packages/artiq/board-support/kasli-bonn/runtime.fbi} 0x450000; flash verify_bank spi0 {/nix/store/6nvdvfqy8xaqb9j8s47clz58ml7rhp5f-python3-3.8.11-env/lib/python3.8/site-packages/artiq/board-support/kasli-bonn/runtime.fbi} 0x450000; xc7_program xc7.tap; exit']' returned non-zero exit status 1.
If you think this might be a Windows/conda issue I can try to get my hands on a linux machine in the next days, but I would really like to make this work under Windows as well.