Hi,
I am trying to test the SU Servo with
artiq_sinara_tester
but the module fails to initialize. I do not receive any specific error. The tester just hangs and no output is given. Could someone point me in the right direction?
I have switched the 1 and 2 switches on the Urukul to ON.
Below is my device_db:
device_db = {
"core": {
"type": "local",
"module": "artiq.coredevice.core",
"class": "Core",
"arguments": {
"host": core_addr,
"ref_period": 1e-09,
"analyzer_proxy": "core_analyzer",
"target": "cortexa9",
"satellite_cpu_targets": {}
},
},
"core_log": {
"type": "controller",
"host": "::1",
"port": 1068,
"command": "aqctl_corelog -p {port} --bind {bind} " + core_addr
},
"core_moninj": {
"type": "controller",
"host": "::1",
"port_proxy": 1383,
"port": 1384,
"command": "aqctl_moninj_proxy --port-proxy {port_proxy} --port-control {port} --bind {bind} " + core_addr
},
"core_analyzer": {
"type": "controller",
"host": "::1",
"port_proxy": 1385,
"port": 1386,
"command": "aqctl_coreanalyzer_proxy --port-proxy {port_proxy} --port-control {port} --bind {bind} " + core_addr
},
"core_cache": {
"type": "local",
"module": "artiq.coredevice.cache",
"class": "CoreCache"
},
"core_dma": {
"type": "local",
"module": "artiq.coredevice.dma",
"class": "CoreDMA"
},
"i2c_switch0": {
"type": "local",
"module": "artiq.coredevice.i2c",
"class": "I2CSwitch",
"arguments": {"address": 0xe0}
},
"i2c_switch1": {
"type": "local",
"module": "artiq.coredevice.i2c",
"class": "I2CSwitch",
"arguments": {"address": 0xe2}
},
}
# standalone peripherals
device_db["spi_mirny0"]={
"type": "local",
"module": "artiq.coredevice.spi2",
"class": "SPIMaster",
"arguments": {"channel": 0x000000}
}
device_db["ttl_mirny0_sw0"] = {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLOut",
"arguments": {"channel": 0x000001}
}
device_db["ttl_mirny0_sw1"] = {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLOut",
"arguments": {"channel": 0x000002}
}
device_db["ttl_mirny0_sw2"] = {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLOut",
"arguments": {"channel": 0x000003}
}
device_db["ttl_mirny0_sw3"] = {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLOut",
"arguments": {"channel": 0x000004}
}
device_db["mirny0_ch0"] = {
"type": "local",
"module": "artiq.coredevice.adf5356",
"class": "ADF5356",
"arguments": {
"channel": 0,
"sw_device": "ttl_mirny0_sw0",
"cpld_device": "mirny0_cpld",
}
}
device_db["mirny0_almazny0"] = {
"type": "local",
"module": "artiq.coredevice.almazny",
"class": "AlmaznyChannel",
"arguments": {
"host_mirny": "mirny0_cpld",
"channel": 0,
},
}
device_db["mirny0_ch1"] = {
"type": "local",
"module": "artiq.coredevice.adf5356",
"class": "ADF5356",
"arguments": {
"channel": 1,
"sw_device": "ttl_mirny0_sw1",
"cpld_device": "mirny0_cpld",
}
}
device_db["mirny0_almazny1"] = {
"type": "local",
"module": "artiq.coredevice.almazny",
"class": "AlmaznyChannel",
"arguments": {
"host_mirny": "mirny0_cpld",
"channel": 1,
},
}
device_db["mirny0_ch2"] = {
"type": "local",
"module": "artiq.coredevice.adf5356",
"class": "ADF5356",
"arguments": {
"channel": 2,
"sw_device": "ttl_mirny0_sw2",
"cpld_device": "mirny0_cpld",
}
}
device_db["mirny0_almazny2"] = {
"type": "local",
"module": "artiq.coredevice.almazny",
"class": "AlmaznyChannel",
"arguments": {
"host_mirny": "mirny0_cpld",
"channel": 2,
},
}
device_db["mirny0_ch3"] = {
"type": "local",
"module": "artiq.coredevice.adf5356",
"class": "ADF5356",
"arguments": {
"channel": 3,
"sw_device": "ttl_mirny0_sw3",
"cpld_device": "mirny0_cpld",
}
}
device_db["mirny0_almazny3"] = {
"type": "local",
"module": "artiq.coredevice.almazny",
"class": "AlmaznyChannel",
"arguments": {
"host_mirny": "mirny0_cpld",
"channel": 3,
},
}
device_db["mirny0_cpld"] = {
"type": "local",
"module": "artiq.coredevice.mirny",
"class": "Mirny",
"arguments": {
"spi_device": "spi_mirny0",
"refclk": 100000000.0,
"clk_sel": 0
},
}
device_db["suservo0_ch0"] = {
"type": "local",
"module": "artiq.coredevice.suservo",
"class": "Channel",
"arguments": {"channel": 0x000005, "servo_device": "suservo0"}
}
device_db["suservo0_ch1"] = {
"type": "local",
"module": "artiq.coredevice.suservo",
"class": "Channel",
"arguments": {"channel": 0x000006, "servo_device": "suservo0"}
}
device_db["suservo0_ch2"] = {
"type": "local",
"module": "artiq.coredevice.suservo",
"class": "Channel",
"arguments": {"channel": 0x000007, "servo_device": "suservo0"}
}
device_db["suservo0_ch3"] = {
"type": "local",
"module": "artiq.coredevice.suservo",
"class": "Channel",
"arguments": {"channel": 0x000008, "servo_device": "suservo0"}
}
device_db["suservo0_ch4"] = {
"type": "local",
"module": "artiq.coredevice.suservo",
"class": "Channel",
"arguments": {"channel": 0x000009, "servo_device": "suservo0"}
}
device_db["suservo0_ch5"] = {
"type": "local",
"module": "artiq.coredevice.suservo",
"class": "Channel",
"arguments": {"channel": 0x00000a, "servo_device": "suservo0"}
}
device_db["suservo0_ch6"] = {
"type": "local",
"module": "artiq.coredevice.suservo",
"class": "Channel",
"arguments": {"channel": 0x00000b, "servo_device": "suservo0"}
}
device_db["suservo0_ch7"] = {
"type": "local",
"module": "artiq.coredevice.suservo",
"class": "Channel",
"arguments": {"channel": 0x00000c, "servo_device": "suservo0"}
}
device_db["suservo0"] = {
"type": "local",
"module": "artiq.coredevice.suservo",
"class": "SUServo",
"arguments": {
"channel": 0x00000d,
"pgia_device": "spi_sampler0_pgia",
"cpld_devices": ['urukul0_cpld', 'urukul1_cpld'],
"dds_devices": ['urukul0_dds', 'urukul1_dds'],
"sampler_hw_rev": "v2.3"
}
}
device_db["spi_sampler0_pgia"] = {
"type": "local",
"module": "artiq.coredevice.spi2",
"class": "SPIMaster",
"arguments": {"channel": 0x00000e}
}
device_db["spi_urukul0"] = {
"type": "local",
"module": "artiq.coredevice.spi2",
"class": "SPIMaster",
"arguments": {"channel": 0x00000f}
}
device_db["urukul0_cpld"] = {
"type": "local",
"module": "artiq.coredevice.urukul",
"class": "CPLD",
"arguments": {
"spi_device": "spi_urukul0",
"refclk": 125000000.0,
"clk_sel": 2
}
}
device_db["urukul0_dds"] = {
"type": "local",
"module": "artiq.coredevice.ad9910",
"class": "AD9910",
"arguments": {
"pll_n": 32,
"pll_en": 1,
"chip_select": 3,
"cpld_device": "urukul0_cpld"
}
}
device_db["spi_urukul1"] = {
"type": "local",
"module": "artiq.coredevice.spi2",
"class": "SPIMaster",
"arguments": {"channel": 0x000010}
}
device_db["urukul1_cpld"] = {
"type": "local",
"module": "artiq.coredevice.urukul",
"class": "CPLD",
"arguments": {
"spi_device": "spi_urukul1",
"refclk": 125000000.0,
"clk_sel": 2
}
}
device_db["urukul1_dds"] = {
"type": "local",
"module": "artiq.coredevice.ad9910",
"class": "AD9910",
"arguments": {
"pll_n": 32,
"pll_en": 1,
"chip_select": 3,
"cpld_device": "urukul1_cpld"
}
}
device_db["led0"] = {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLOut",
"arguments": {"channel": 0x00000e}
}
device_db["led1"] = {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLOut",
"arguments": {"channel": 0x00000f}
}
Thank you for your help.