Hi,
I’m running the latest Pynq image v3.0.1 on RFSoC 4x2 and going through the example Jupyter Notebook base/rfdc/01_rf_dataconverter_introduction.ipynb
.
I’m interested in reading/setting the DAC output current setting, however, evaluating base.radio.rfdc.dac_tiles[0].blocks[0].OutputCurr
fails with the following error:
`---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [66], in <cell line: 1>()
----> 1 base.radio.rfdc.dac_tiles[0].blocks[0].OutputCurr
File /usr/local/share/pynq-venv/lib/python3.10/site-packages/xrfdc/init.py:176, in _create_c_property.._get(self)
173 value = _ffi.new(f"{typename}*“)
174 c_func = self._call_function if not implicit_read else
175 self._call_function_implicit
→ 176 c_func(f"Get{name}”, value)
177 value = _unpack_value(value)
178 if isinstance(value, PropertyDict):
File /usr/local/share/pynq-venv/lib/python3.10/site-packages/xrfdc/init.py:270, in RFdcDacBlock._call_function_implicit(self, name, *args)
269 def _call_function_implicit(self, name, *args):
→ 270 return self._parent._call_function_implicit(name, self._index, *args)
File /usr/local/share/pynq-venv/lib/python3.10/site-packages/xrfdc/init.py:307, in RFdcTile._call_function_implicit(self, name, *args)
306 def _call_function_implicit(self, name, *args):
→ 307 return self._parent._call_function(name, self._index, *args)
File /usr/local/share/pynq-venv/lib/python3.10/site-packages/xrfdc/init.py:383, in RFdc._call_function(self, name, *args)
382 def _call_function(self, name, *args):
→ 383 safe_wrapper(f"XRFdc{name}", self._instance, *args)
File /usr/local/share/pynq-venv/lib/python3.10/site-packages/xrfdc/init.py:33, in _safe_wrapper(name, *args, **kwargs)
31 if not hasattr(_lib, name):
32 raise RuntimeError(f"Function {name} not in library")
—> 33 ret = getattr(_lib, name)(*args, **kwargs)
34 if ret:
35 message = f"Function {name} call failed"
TypeError: initializer for ctype ‘unsigned int *’ must be a pointer to same type, not cdata ‘int *’`
Any ideas how to work around this?