Hi, I just got my Sysclk LWLA1034 and was looking forward to using it. I pullled all the sigrok code from git and it compiled without problem. Unfortunately I can't connect, see listing below.
magnus@m6600:~/src$ sigrok-cli --driver sysclk-lwla --show -l 5 sr: [00:00.000001] log: libsigrok loglevel set to 5. sr: [00:00.000109] backend: libsigrok 0.4.0-git-67f890d/2:0:0 (rt: 0.4.0-git-67f890d/2:0:0). sr: [00:00.000161] backend: Libs: glib 2.40.2 (rt: 2.40.2/4002:0), libzip 0.10.1, libusb-1.0 1.0.17.10830, libftdi 0.20. sr: [00:00.000198] backend: Host: x86_64-unknown-linux-gnu, little-endian. sr: [00:00.000232] backend: SCPI backends: TCP, RPC, USBTMC. sr: [00:00.000286] backend: Sanity-checking all drivers. sr: [00:00.000321] backend: Sanity-checking all input modules. sr: [00:00.000353] backend: Sanity-checking all output modules. sr: [00:00.000384] backend: Sanity-checking all transform modules. srd: libsigrokdecode loglevel set to 5. sr: [00:00.005869] hwdriver: Initializing driver 'sysclk-lwla'. Driver functions: Logic analyzer Sample limit Time limit Sample rate External clock mode Clock edge Trigger matches Trigger source Trigger slope sr: [00:00.006142] hwdriver: sr_config_list(): key 40000 (scan_options) sdi (nil) cg NULL -> [uint32 20000] Scan options: conn sr: [00:00.006221] hwdriver: Initializing driver 'sysclk-lwla'. sr: [00:00.006352] usb: Trying to find USB device with VID:PID = 2961:6689. sr: [00:00.006443] usb: Found USB device (VID:PID = 2961:6689, bus.address = 4.10). sr: [00:00.006494] usb: Found 1 device(s). sr: [00:00.006575] hwdriver: Scan of 'sysclk-lwla' found 1 devices. sysclk-lwla - SysClk LWLA1034 with 34 channels: CH1 CH2 CH3 CH4 CH5 CH6 CH7 CH8 CH9 CH10 CH11 CH12 CH13 CH14 CH15 CH16 CH17 CH18 CH19 CH20 CH21 CH22 CH23 CH24 CH25 CH26 CH27 CH28 CH29 CH30 CH31 CH32 CH33 CH34 sr: [00:00.006705] usb: Trying to open USB device 4.10. sr: [00:00.006797] usb: Opened USB device (VID:PID = 2961:6689, bus.address = 4.10). sr: [00:00.007499] resource: Attempt to open '/home/magnus/.local/share/sigrok-firmware/sysclk-lwla1034-int.rbf' failed: No such file or directory sr: [00:00.007573] resource: Opened '/usr/local/share/sigrok-firmware/sysclk-lwla1034-int.rbf'. sr: [00:00.007752] sysclk-lwla: Downloading FPGA bitstream 'sysclk-lwla1034-int.rbf'. sr: [00:00.901891] sysclk-lwla: FPGA bitstream download of 81464 bytes done. sr: [00:00.934396] sysclk-lwla: Received invalid test word 0x1234567812345678. sr: [00:00.934536] usb: Closed USB device 4.10. Failed to open device. magnus@m6600:~/src$ I then edited protocol.c line# 722 to: /* Initialize the LWLA. This downloads a bitstream into the FPGA * and executes a simple device test sequence. */ SR_PRIV int lwla_init_device(const struct sr_dev_inst *sdi) { uint64_t value; struct dev_context *devc; int ret; devc = sdi->priv; /* Force reload of bitstream */ devc->cur_clock_config = CONF_CLOCK_NONE; ret = lwla_set_clock_config(sdi); if (ret != SR_OK) return ret; ret = lwla_read_long_reg(sdi->conn, LREG_TEST_ID, &value); if (ret != SR_OK) return ret; /* Ignore the value returned by the first read */ ret = lwla_read_long_reg(sdi->conn, LREG_TEST_ID, &value); if (ret != SR_OK) return ret; /* if (value != UINT64_C(0x1234567812345678)) { sr_err("Received invalid test word 0x%016" PRIX64 ".", value); return SR_ERR; } */ if (value != UINT64_C(0x1234567887654321)) { sr_err("Received invalid test word 0x%016" PRIX64 ".", value); return SR_ERR; } return SR_OK; } and it sort of varies whether I can connect to the device or not. Very intermittent. Any insigths to share? /Magnus
------------------------------------------------------------------------------
_______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel