<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://ez.analog.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Q&amp;amp;A - Recent Threads</title><link>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><lastBuildDate>Tue, 29 Sep 2026 14:04:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://ez.analog.com/microcontroller-no-os-drivers/f/q-a" /><item><title>ad4170_example.py crashes right in the constructor</title><link>https://ez.analog.com/thread/606338?ContentTypeID=0</link><pubDate>Tue, 29 Sep 2026 14:04:28 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:841fb510-88e1-45a5-8230-10074ceb5b1c</guid><dc:creator>crausch</dc:creator><slash:comments>5</slash:comments><comments>https://ez.analog.com/thread/606338?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/606338/ad4170_example-py-crashes-right-in-the-constructor/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a SDP-K1 and a EVAL-AD4170.&lt;/p&gt;
&lt;p&gt;I tried to run the example program&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/analogdevicesinc/pyadi-iio/blob/main/examples/ad4170_example.py"&gt;https://github.com/analogdevicesinc/pyadi-iio/blob/main/examples/ad4170_example.py&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The prgram crashes with the following error messages:&lt;/p&gt;
&lt;p&gt;-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;(.venv) PS U:\Programming\AD4170_SDPK1_orig&amp;gt; &amp;amp; u:\Programming\AD4170_SDPK1_orig\.venv\Scripts\python.exe u:/Programming/AD4170_SDPK1_orig/ad4170_example.py&lt;br /&gt;Traceback (most recent call last):&lt;br /&gt;&amp;nbsp; File &amp;quot;U:\Programming\AD4170_SDPK1_orig\.venv\Lib\site-packages\adi\context_manager.py&amp;quot;, line 36, in __init__&lt;br /&gt;&amp;nbsp; &amp;nbsp; self._ctx = iio.Context(self.uri)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ~~~~~~~~~~~^^^^^^^^^^&lt;br /&gt;&amp;nbsp; File &amp;quot;U:\Programming\AD4170_SDPK1_orig\.venv\Lib\site-packages\iio.py&amp;quot;, line 1328, in __init__&lt;br /&gt;&amp;nbsp; &amp;nbsp; self._context = _new_uri(_context.encode(&amp;quot;ascii&amp;quot;))&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;br /&gt;&amp;nbsp; File &amp;quot;U:\Programming\AD4170_SDPK1_orig\.venv\Lib\site-packages\iio.py&amp;quot;, line 56, in _check_null&lt;br /&gt;&amp;nbsp; &amp;nbsp; raise OSError(err, _strerror(err))&lt;br /&gt;OSError: [Errno 11001] Unknown error&lt;br /&gt;&lt;br /&gt;During handling of the above exception, another exception occurred:&lt;br /&gt;&lt;br /&gt;Traceback (most recent call last):&lt;br /&gt;&amp;nbsp; File &amp;quot;u:\Programming\AD4170_SDPK1_orig\ad4170_example.py&amp;quot;, line 9, in &amp;lt;module&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; ad4170_dev = adi.ad4170(&amp;quot;ip:analog&amp;quot;)&lt;br /&gt;&amp;nbsp; File &amp;quot;U:\Programming\AD4170_SDPK1_orig\.venv\Lib\site-packages\adi\device_base.py&amp;quot;, line 108, in __init__&lt;br /&gt;&amp;nbsp; &amp;nbsp; rx_def.__init__(self, uri=uri)&lt;br /&gt;&amp;nbsp; &amp;nbsp; ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^&lt;br /&gt;&amp;nbsp; File &amp;quot;U:\Programming\AD4170_SDPK1_orig\.venv\Lib\site-packages\adi\rx_tx.py&amp;quot;, line 702, in __init__&lt;br /&gt;&amp;nbsp; &amp;nbsp; rx_def_no_buff.__init__(self, *args, **kwargs)&lt;br /&gt;&amp;nbsp; &amp;nbsp; ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^&lt;br /&gt;&amp;nbsp; File &amp;quot;U:\Programming\AD4170_SDPK1_orig\.venv\Lib\site-packages\adi\rx_tx.py&amp;quot;, line 660, in __init__&lt;br /&gt;&amp;nbsp; &amp;nbsp; shared_def.__init__(self, *args, **kwargs)&lt;br /&gt;&amp;nbsp; &amp;nbsp; ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^&lt;br /&gt;&amp;nbsp; File &amp;quot;U:\Programming\AD4170_SDPK1_orig\.venv\Lib\site-packages\adi\rx_tx.py&amp;quot;, line 603, in __init__&lt;br /&gt;&amp;nbsp; &amp;nbsp; context_manager.__init__(self, uri_ctx, self._device_name)&lt;br /&gt;&amp;nbsp; &amp;nbsp; ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;br /&gt;&amp;nbsp; File &amp;quot;U:\Programming\AD4170_SDPK1_orig\.venv\Lib\site-packages\adi\context_manager.py&amp;quot;, line 38, in __init__&lt;br /&gt;&amp;nbsp; &amp;nbsp; raise Exception(&amp;quot;No device found&amp;quot;)&lt;br /&gt;Exception: No device found&lt;/p&gt;
&lt;p&gt;-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;Using IIO_INFO gives the following results:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;(.venv) PS U:\Programming\AD4170_SDPK1_orig&amp;gt; iio_info --uri &amp;quot;serial:COM13&amp;quot;&lt;br /&gt;iio_info version: 0.26 (git tag:a0eca0d)&lt;br /&gt;Libiio version: 0.26 (git tag: a0eca0d) backends: xml ip usb serial&lt;br /&gt;IIO context created with serial backend.&lt;br /&gt;Backend version: 1.1 (git tag: 0000000)&lt;br /&gt;Backend description string: no-OS/projects/NO_OS_PROJECT 1&lt;br /&gt;IIO context has 8 attributes:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fw_version: v1.0.0-d.0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; commit_version: b69cf78&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hw_carrier: SDP_K1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hw_mezzanine: EVAL-AD4170-ASDZ&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hw_name: EVAL-AD4170-ASDZ&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uri: serial:COM13,115200,8n1n&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; serial,port: COM13&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; serial,description: Serielles USB-Ger&amp;otilde;t (COM13)&lt;br /&gt;IIO context has 2 devices:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; iio:device0: ad4170 (buffer capable)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4 channels found:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; voltage0: Chn0 (input, index: 0, format: be:s24/32&amp;gt;&amp;gt;8)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9 channel-specific attributes found:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 0: raw value: 0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 1: scale value: 0.0002980232&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 2: offset value: 0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 3: internal_calibration value: NA&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 4: system_calibration value: NA&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 5: ref_select value: refout_avss&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 6: ref_select_available value: refin1p_refin1m refin2p_refin2m refout_avss avdd_avss&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 7: pga value: pga_1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 8: pga_available value: pga_1 pga_2 pga_4 pga_8 pga_16 pga_32 pga_64 pga_128 pga_0p5 pga_1_percharge_buffer&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; voltage1: Chn1 (input, index: 1, format: be:s24/32&amp;gt;&amp;gt;8)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9 channel-specific attributes found:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 0: raw value: pga_1 pga_2 pga_4 pga_8 pga_16 pga_32 pga_64 pga_128 pga_0p5 pga_1_percharge_buffer&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 1: scale value: 0.0002980232&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 2: offset value: 0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 3: internal_calibration value: NA&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 4: system_calibration value: NA&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 5: ref_select value: refout_avss&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 6: ref_select_available value: refin1p_refin1m refin2p_refin2m refout_avss avdd_avss&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 7: pga value: pga_1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 8: pga_available value: pga_1 pga_2 pga_4 pga_8 pga_16 pga_32 pga_64 pga_128 pga_0p5 pga_1_percharge_buffer&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; voltage2: Chn2 (input, index: 2, format: be:s24/32&amp;gt;&amp;gt;8)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9 channel-specific attributes found:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 0: raw value: pga_1 pga_2 pga_4 pga_8 pga_16 pga_32 pga_64 pga_128 pga_0p5 pga_1_percharge_buffer&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 1: scale value: 0.0002980232&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 2: offset value: 0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 3: internal_calibration value: NA&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 4: system_calibration value: NA&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 5: ref_select value: refout_avss&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 6: ref_select_available value: refin1p_refin1m refin2p_refin2m refout_avss avdd_avss&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 7: pga value: pga_1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 8: pga_available value: pga_1 pga_2 pga_4 pga_8 pga_16 pga_32 pga_64 pga_128 pga_0p5 pga_1_percharge_buffer&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; voltage3: Chn3 (input, index: 3, format: be:s24/32&amp;gt;&amp;gt;8)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9 channel-specific attributes found:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 0: raw value: pga_1 pga_2 pga_4 pga_8 pga_16 pga_32 pga_64 pga_128 pga_0p5 pga_1_percharge_buffer&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 1: scale value: 0.0002980232&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 2: offset value: 0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 3: internal_calibration value: NA&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 4: system_calibration value: NA&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 5: ref_select value: refout_avss&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 6: ref_select_available value: refin1p_refin1m refin2p_refin2m refout_avss avdd_avss&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 7: pga value: pga_1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 8: pga_available value: pga_1 pga_2 pga_4 pga_8 pga_16 pga_32 pga_64 pga_128 pga_0p5 pga_1_percharge_buffer&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8 device-specific attributes found:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 0: demo_config value: User Default&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 1: sampling_frequency value: 17857.14&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 2: diagnostic_error_status value: 17857.14&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 3: adc_mode_available value: Continuous_Conversion Continuous_Conversion_FIR Continuous_Conversion_IIR Standby Power_Down Idle&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 4: adc_mode value: Continuous_Conversion Continuous_Conversion_FIR Continuous_Conversion_IIR Standby Power_Down Idle&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 5: filter_available value: sinc5_avg sinc5 sinc3&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 6: clock_ctrl value: internal_osc&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 7: clock_ctrl_available value: internal_osc internal_osc_output external_osc external_xtal&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 debug attributes found:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; debug attr&amp;nbsp; 0: direct_reg_access ERROR: Permission denied (13)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; No trigger on this device&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; iio:device1: system_config (buffer capable)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4 channels found:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; voltage0: Chn0 (input, index: 0, format: be:s24/32&amp;gt;&amp;gt;8)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 channel-specific attributes found:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 0: ch_en value: enabled&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 1: ch_en_available value: disabled enabled&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 2: fs value: 1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 3: filter value: sinc5&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 4: filter_available value: sinc5_avg sinc5 sinc3&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; voltage1: Chn1 (input, index: 1, format: be:s24/32&amp;gt;&amp;gt;8)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 channel-specific attributes found:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 0: ch_en value: enabled&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 1: ch_en_available value: disabled enabled&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 2: fs value: 1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 3: filter value: sinc5&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 4: filter_available value: sinc5_avg sinc5 sinc3&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; voltage2: Chn2 (input, index: 2, format: be:s24/32&amp;gt;&amp;gt;8)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 channel-specific attributes found:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 0: ch_en value: enabled&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 1: ch_en_available value: disabled enabled&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 2: fs value: 1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 3: filter value: sinc5&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 4: filter_available value: sinc5_avg sinc5 sinc3&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; voltage3: Chn3 (input, index: 3, format: be:s24/32&amp;gt;&amp;gt;8)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 channel-specific attributes found:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 0: ch_en value: enabled&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 1: ch_en_available value: disabled enabled&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 2: fs value: 1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 3: filter value: sinc5&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 4: filter_available value: sinc5_avg sinc5 sinc3&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 device-specific attributes found:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 0: reconfigure_system value: Enable&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attr&amp;nbsp; 1: reconfigure_system_available value: Enable&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; No trigger on this device&lt;/p&gt;
&lt;p&gt;-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;I suspect the root cause of the crash of the Python code results from the German localization of the term &amp;quot;serial device&amp;quot;:&lt;/p&gt;
&lt;p&gt;serial,description: Serielles USB-Ger&amp;otilde;t (COM13)&lt;/p&gt;
&lt;p&gt;The character following the letters USB-Ger&lt;/p&gt;
&lt;p&gt;is not an ASCII character. See the Traceback.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you please help?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:106px;max-width:665px;" height="106" src="https://ez.analog.com/resized-image/__size/1330x212/__key/communityserver-components-multipleuploadfilemanager/f3758d12_2D00_c553_2D00_423f_2D00_8dfd_2D00_ca28b4caae5f-59872-complete/pastedimage1787925125935v1.png" width="665" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Can you help me?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Issues faced during SPI initialisation of the hmc7044 - after migration of the HDL reference design from VCU (referring to ADI github repo) to ZCU102 MPSoC PL</title><link>https://ez.analog.com/thread/606276?ContentTypeID=0</link><pubDate>Thu, 24 Sep 2026 14:21:31 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:91898f81-9130-488f-83dd-280f497cfe74</guid><dc:creator>PratikShukla</dc:creator><slash:comments>30</slash:comments><comments>https://ez.analog.com/thread/606276?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/606276/issues-faced-during-spi-initialisation-of-the-hmc7044---after-migration-of-the-hdl-reference-design-from-vcu-referring-to-adi-github-repo-to-zcu102-mpsoc-pl/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;I am using the AD9172 FMC evaluation board in order to generate SPOT frequencies ranging from 2 to 3.5 GHz. I have successfully migrated the ADI reference design available for the VCU to a ZCU102 with micro-blaze (PL SIde). I am also able to build the vitis application (2023.2) using ADI&amp;#39;s no os guide however during the debug process i am getting the following error:&lt;br /&gt;&lt;br /&gt;WARNING : Read/Write check failed (0xFF)&lt;br /&gt;Probed. SPI read support failed&lt;br /&gt;tx adxcvr : OK (7372800 kHz)&lt;/p&gt;
&lt;p&gt;The execution is stuck in a while loop and the jesd link does not become active&lt;/p&gt;
&lt;p&gt;I have made sure to check all physical constraints related to spi properly wrt to zcu102 and i am also able to observer the spi_mosi, spi_sclk, spi_cs on the pmod header as well as in the iLA.&lt;br /&gt;It looks like there is some issue in the read/response (spi_miso) from the hmc7044.&lt;br /&gt;I have also verified the axi quad spi IP attributes and setting and made sure that the io1_i, io1_o, io0_i, io0_o assignments are proper.&lt;br /&gt;I am using a very low SPI clock of 1.5625 MHz&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://ez.analog.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/423/0385.pastedimage1790258519646v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I can also confirm that there is nothing wrong with the zcu102 carrier board since the zynq PS design for the ad9172 is working perfectly fine.&lt;br /&gt;I am attaching my top.v file below&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;`timescale 1ns/100ps

module system_top #(
  parameter NUM_LINKS = 2,
  parameter DEVICE_CODE = 0
) (
input                   sys_rst,
input                   USER_SI570_P,
input                   USER_SI570_N,

input                   uart_sin,
output                  uart_sout,

output                  c0_ddr4_act_n,
output      [16:0]      c0_ddr4_adr,
output      [ 1:0]      c0_ddr4_ba,
output      [ 0:0]      c0_ddr4_bg,
output      [ 0:0]      c0_ddr4_ck_c,
output      [ 0:0]      c0_ddr4_ck_t,

//  output                  ddr4_ck_p,
//  output                  ddr4_ck_n,
output      [ 0:0]      c0_ddr4_cke,
output      [ 0:0]      c0_ddr4_cs_n,
inout       [ 1:0]      c0_ddr4_dm_dbi_n,
inout       [15:0]      c0_ddr4_dq,
inout       [ 1:0]      c0_ddr4_dqs_c,
inout       [ 1:0]      c0_ddr4_dqs_t,
output      [ 0:0]      c0_ddr4_odt,
output                  c0_ddr4_reset_n,

//  output                  mdio_mdc,
//  inout                   mdio_mdio,
//  input                   phy_clk_p,
//  input                   phy_clk_n,
//  output                  phy_rst_n,
input                   ETH_0_RXN,
input                   ETH_0_RXP,
output                  ETH_0_TXN,
output                  ETH_0_TXP,
output       [1:0]      SFPx_TX_DISABLE,



inout       [16:0]      gpio_bd,

output                  gpio_1,
output                  gpio_2,
input                   gpio_3,
input                   gpio_4,

//output                  iic_rstn,
inout                   iic_scl,
inout                   iic_sda,

input                   SFP_SI5328_OUT_C_N,
input                   SFP_SI5328_OUT_C_P,

input                   USER_MGT_SI570_CLOCK2_P,
input                   USER_MGT_SI570_CLOCK2_N,

input                   tx_ref_clk_n,
input                   tx_ref_clk_p,

input                   tx_sysref_p,
input                   tx_sysref_n,
input       [ 1:0]      tx_sync_p,
input       [ 1:0]      tx_sync_n,
output      [ 7:0]      tx_data_p,
output      [ 7:0]      tx_data_n,

output                  spi_csn_dac,
output                  spi_csn_clk,
output                  spi_csn_clk2,
input                   spi_miso,
output                  spi_mosi,
output                  spi_clk,
output                  spi_en,
  
output                    PMOD0_0,  
output                    PMOD0_1,  
input                     PMOD0_2, 
output                    PMOD0_3, 

output                    PMOD0_4,  
output                    PMOD0_5,  
input                     PMOD0_6,  
output                    PMOD0_7,  

output                    PMOD1_0,  
output                    PMOD1_1,  
input                     PMOD1_2,  
output                    PMOD1_3,  

output                    PMOD1_4,  
output                    PMOD1_5,  
output                    PMOD1_6,  
output                    PMOD1_7,
  

inout       [ 4:0]      dac_ctrl
);

  // internal signals

  wire    [63:0]  gpio_i;
  wire    [63:0]  gpio_o;
  wire    [63:0]  gpio_t;
  wire    [ 2:0]  spi_csn;
  wire            tx_ref_clk;
  wire            tx_sysref;
  wire    [ 1:0]  tx_sync;
  wire            tx_sysref_loc;
  wire            spi_clk_mon;
  wire            spi_miso_mon;
  wire            spi_mosi_mon;
//  assign iic_rstn = 1&amp;#39;b1;
  // spi
  assign PMOD1_4 = spi_csn[0];
  assign PMOD1_5 = spi_clk_mon;
  assign spi_miso_mon = spi_miso;
  assign PMOD1_6 = spi_miso_mon;
  assign PMOD1_7 = spi_mosi_mon;
  
  assign spi_clk = spi_clk_mon;
//  assign spi_miso = spi_miso_mon;
  assign spi_mosi = spi_mosi_mon;
  // spi_en is active ...
  //   ... high for AD9135-FMC-EBZ, AD9136-FMC-EBZ, AD9144-FMC-EBZ,
  //   ... low for AD9171-FMC-EBZ, AD9172-FMC-EBZ, AD9173-FMC-EBZ
  // If you are planning to build a bitstream for just one of those boards you
  // can hardwire the logic level here.
  //
  assign spi_en = (DEVICE_CODE &amp;lt;= 2);
  assign SFPx_TX_DISABLE = &amp;quot;11&amp;quot;;
  //                                        9135/9144/9172    916(1,2,3,4)
  //                                        9135/9144/9172    916(1,2,3,4)
  assign spi_csn_dac  = spi_csn[1];
  assign spi_csn_clk  = spi_csn[0];    //   HMC7044          AD9508
  assign spi_csn_clk2 = spi_csn[2];    //   NC               ADF4355

  /* JESD204 clocks and control signals */
//  IBUFDS_GTE3 i_ibufds_tx_ref_clk_121 (
//    .CEB (1&amp;#39;d0),
//    .I (USER_MGT_SI570_CLOCK2_P),
//    .IB (USER_MGT_SI570_CLOCK2_N),
//    .O (tx_ref_clk_156),
//    .ODIV2 ());

   IBUFDS_GTE4 #(
      .REFCLK_EN_TX_PATH(1&amp;#39;b0),   // Refer to Transceiver User Guide.
      .REFCLK_HROW_CK_SEL(2&amp;#39;b00), // Refer to Transceiver User Guide.
      .REFCLK_ICNTL_RX(2&amp;#39;b00)     // Refer to Transceiver User Guide.
   )
   IBUFDS_GTE4_inst (
      .O(tx_ref_clk_156),         // 1-bit output: Refer to Transceiver User Guide.
      .ODIV2(), // 1-bit output: Refer to Transceiver User Guide.
      .CEB(1&amp;#39;d0),     // 1-bit input: Refer to Transceiver User Guide.
      .I(tx_ref_clk_p),         // 1-bit input: Refer to Transceiver User Guide.
      .IB(tx_ref_clk_n)        // 1-bit input: Refer to Transceiver User Guide.
   );
   
//      IBUFDS_GTE4 #(
//      .REFCLK_EN_TX_PATH(1&amp;#39;b0),   // Refer to Transceiver User Guide.
//      .REFCLK_HROW_CK_SEL(2&amp;#39;b00), // Refer to Transceiver User Guide.
//      .REFCLK_ICNTL_RX(2&amp;#39;b00)     // Refer to Transceiver User Guide.
//   )
//   IBUFDS_GTE4_inst_1 (
//      .O(mgt_ref_clk),         // 1-bit output: Refer to Transceiver User Guide.
//      .ODIV2(), // 1-bit output: Refer to Transceiver User Guide.
//      .CEB(1&amp;#39;d0),     // 1-bit input: Refer to Transceiver User Guide.
//      .I(SFP_SI5328_OUT_C_P),         // 1-bit input: Refer to Transceiver User Guide.
//      .IB(SFP_SI5328_OUT_C_N)        // 1-bit input: Refer to Transceiver User Guide.
//   );

//  IBUFDS_GTE3 i_ibufds_tx_ref_clk_126 (
//    .CEB (1&amp;#39;d0),
//    .I (tx_ref_clk_126_p),
//    .IB (tx_ref_clk_126_n),
//    .O (tx_ref_clk_126),
//    .ODIV2 ());

  IBUFDS i_ibufds_tx_sysref (
    .I (tx_sysref_p),
    .IB (tx_sysref_n),
    .O (tx_sysref));

  IBUFDS i_ibufds_tx_sync_0 (
    .I (tx_sync_p[0]),
    .IB (tx_sync_n[0]),
    .O (tx_sync[0]));

  IBUFDS i_ibufds_tx_sync_1 (
    .I (tx_sync_p[1]),
    .IB (tx_sync_n[1]),
    .O (tx_sync[1]));

  /* FMC GPIOs */
  ad_iobuf #(
    .DATA_WIDTH(5)
  ) i_iobuf (
    .dio_t (gpio_t[21+:5]),
    .dio_i (gpio_o[21+:5]),
    .dio_o (gpio_i[21+:5]),
    .dio_p ({
      dac_ctrl           /* 25 - 21 */
    }));

  /*
  * Control signals for different FMC boards:
  *
  * dac_ctrl  FMC   9144 like    9162 like       9172 like
  *        0  H13   FMC_TXEN_0   FMC_TXEN_0      FMC_PE_CTRL
  *        1  C10   NC           NC              FMC_TXEN_0
  *        2  C11   NC           NC              FMC_TXEN_1
  *        3  H14   FMC_TXEN_1   NC              NC
  *        4  D15   NC           FMC_HMC849VCTL  NC
  */


  assign dac_fifo_bypass = gpio_o[40];

  /* Board GPIOS. Buttons, LEDs, etc... */
  ad_iobuf #(
    .DATA_WIDTH(17)
  ) i_iobuf_bd (
    .dio_t (gpio_t[0+:17]),
    .dio_i (gpio_o[0+:17]),
    .dio_o (gpio_i[0+:17]),
    .dio_p (gpio_bd));

  assign gpio_i[63:26] = gpio_o[63:26];
  assign gpio_i[20:17] = gpio_o[20:17];



  system_wrapper i_system_wrapper (
    .PS_28V_STS_0(1&amp;#39;b1),
    .PS_5V_LO_STS_0(1&amp;#39;b1),
    .PS_5V_TX_STS_0(1&amp;#39;b1),
    .SYNC_TRG_0(1&amp;#39;b1),
    .ddr4_act_n (c0_ddr4_act_n),
    .ddr4_adr (c0_ddr4_adr),
    .ddr4_ba (c0_ddr4_ba),
    .ddr4_bg (c0_ddr4_bg),
    .ddr4_ck_c (c0_ddr4_ck_c),
    .ddr4_ck_t (c0_ddr4_ck_t),
    .ddr4_cke (c0_ddr4_cke),
//    .ddr4_ck_c (ddr4_ck_n),
//    .ddr4_ck_t (ddr4_ck_p),
//    .ddr4_cke (c0_ddr4_cke),
    .ddr4_cs_n (c0_ddr4_cs_n),
    .ddr4_dm_n (c0_ddr4_dm_dbi_n),
    .ddr4_dq (c0_ddr4_dq),
    .ddr4_dqs_c (c0_ddr4_dqs_c),
    .ddr4_dqs_t (c0_ddr4_dqs_t),
    .ddr4_odt (c0_ddr4_odt),
    .ddr4_reset_n (c0_ddr4_reset_n),
    .gpio0_i (gpio_i[31:0]),
    .gpio0_o (gpio_o[31:0]),
    .gpio0_t (gpio_t[31:0]),
    .gpio1_i (gpio_i[63:32]),
    .gpio1_o (gpio_o[63:32]),
    .gpio1_t (gpio_t[63:32]),
    .iic_main_scl_io (iic_scl),
    .iic_main_sda_io (iic_sda),
//    .mdio_0_mdc (),
//    .mdio_0_mdio_io (1&amp;#39;b0),
    .mgt_clk_0_clk_n(USER_MGT_SI570_CLOCK2_N),
    .mgt_clk_0_clk_p(USER_MGT_SI570_CLOCK2_P),
//    .mgt_ref_clk_0(mgt_ref_clk),
//    .sgmii_phyclk_clk_n (phy_clk_n),
//    .sgmii_phyclk_clk_p (phy_clk_p),
    .phy_rst_n (),
    .phy_sd (1&amp;#39;b1),
    .ETH_0_RXN (ETH_0_RXN),
    .ETH_0_RXP (ETH_0_RXP),
    .ETH_0_TXN (ETH_0_TXN),
    .ETH_0_TXP (ETH_0_TXP),
    .spi_clk_i (spi_clk_mon),
    .spi_clk_o (spi_clk_mon),
    .spi_csn_i (spi_csn),
    .spi_csn_o (spi_csn),
    .spi_sdi_i (spi_miso_mon),
    .spi_sdo_i (spi_mosi_mon),
    .spi_sdo_o (spi_mosi_mon),
    .sys_clk_clk_n (USER_SI570_N),
    .sys_clk_clk_p (USER_SI570_P),
    .sys_rst (sys_rst),
    .tx_data_0_n (tx_data_n[0]),
    .tx_data_0_p (tx_data_p[0]),
    .tx_data_1_n (tx_data_n[1]),
    .tx_data_1_p (tx_data_p[1]),
    .tx_data_2_n (tx_data_n[2]),
    .tx_data_2_p (tx_data_p[2]),
    .tx_data_3_n (tx_data_n[3]),
    .tx_data_3_p (tx_data_p[3]),
    .tx_data_4_n (tx_data_n[4]),
    .tx_data_4_p (tx_data_p[4]),
    .tx_data_5_n (tx_data_n[5]),
    .tx_data_5_p (tx_data_p[5]),
    .tx_data_6_n (tx_data_n[6]),
    .tx_data_6_p (tx_data_p[6]),
    .tx_data_7_n (tx_data_n[7]),
    .tx_data_7_p (tx_data_p[7]),
    .tx_ref_clk_0 (tx_ref_clk_156),
    .tx_ref_clk_4 (tx_ref_clk_156),
    .tx_sync_0 (tx_sync),
    .tx_sysref_0 (tx_sysref),
    .uart_sin (uart_sin),
    .uart_sout (uart_sout),
    .dac_fifo_bypass (dac_fifo_bypass));

  // AD9161/2/4-FMC-EBZ works only in single link,
  // The FMC connector instead of SYNC1 has SYSREF connected to it
  assign tx_sysref_loc = (DEVICE_CODE == 3) ? tx_sync[1] : tx_sysref;

endmodule
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;attaching the spi related constraints below:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;set_property -dict {PACKAGE_PIN AA1 IOSTANDARD LVCMOS18} [get_ports spi_csn_dac]
set_property -dict {PACKAGE_PIN AB3 IOSTANDARD LVCMOS18} [get_ports spi_csn_clk]
set_property -dict {PACKAGE_PIN AA2 IOSTANDARD LVCMOS18} [get_ports spi_miso]
set_property -dict {PACKAGE_PIN Y1 IOSTANDARD LVCMOS18} [get_ports spi_mosi]
set_property -dict {PACKAGE_PIN Y2 IOSTANDARD LVCMOS18} [get_ports spi_clk]
set_property -dict {PACKAGE_PIN AC3 IOSTANDARD LVCMOS18} [get_ports spi_en]
# For AD916(1,2,3,4)-FMC-EBZ
set_property -dict {PACKAGE_PIN W2 IOSTANDARD LVCMOS18} [get_ports spi_csn_clk2]

# For AD9135-FMC-EBZ, AD9136-FMC-EBZ, AD9144-FMC-EBZ, AD9152-FMC-EBZ, AD9154-FMC-EBZ
set_property -dict {PACKAGE_PIN U5 IOSTANDARD LVCMOS18} [get_ports {dac_ctrl[0]}]
set_property -dict {PACKAGE_PIN U4 IOSTANDARD LVCMOS18} [get_ports {dac_ctrl[3]}]

# For AD9171-FMC-EBZ, AD9172-FMC-EBZ, AD9173-FMC-EBZ
set_property -dict {PACKAGE_PIN AC2 IOSTANDARD LVCMOS18} [get_ports {dac_ctrl[1]}]
set_property -dict {PACKAGE_PIN AC1 IOSTANDARD LVCMOS18} [get_ports {dac_ctrl[2]}]
# For AD916(1,2,3,4)-FMC-EBZ
set_property -dict {PACKAGE_PIN W1 IOSTANDARD LVCMOS18} [get_ports {dac_ctrl[4]}]&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It would be really great if someone could guide me on this. Thank you in advance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Frequency Hopping Support for ADRV9002 in no-OS</title><link>https://ez.analog.com/thread/606056?ContentTypeID=0</link><pubDate>Fri, 11 Sep 2026 03:35:47 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:80bd79a4-d776-4a1c-9121-130b27b02f34</guid><dc:creator>SaiKiran28</dc:creator><slash:comments>5</slash:comments><comments>https://ez.analog.com/thread/606056?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/606056/frequency-hopping-support-for-adrv9002-in-no-os/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi team,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;p&gt;We are currently trying the frequency hopping functionality on the &lt;strong&gt;ADRV9002 transceiver kit&lt;/strong&gt; connected to a &lt;strong&gt;Cyclone V board&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;During profile generation, we create a frequency hopping profile; however, the generated profile file does not contain any frequency hopping configuration parameters or hopping tables.&lt;/p&gt;
&lt;p&gt;When we attempt to run the frequency hopping profile, the driver expects the &lt;code&gt;fhConfig&lt;/code&gt; structure and returns the following error:&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="background-color:#999999;" data-teams="true"&gt;&lt;em&gt; [ERROR]: Error number&amp;nbsp; 1 (0x00000001), Recovery action -2.In file /home/soceds/WW35.4/no-OS/projects/adrv9001/build/noos/drivers/rf-transceiver/navassa/devices/adrv9001/public/src/adi_adrv9001_fh.c, in function adi_adrv9001_fh_Configure_Validate, in line&amp;nbsp; 197, variable name adrv9001.Error message Invalid parameter value. fhConfig-&amp;gt;minOperatingFrequency_Hz was &amp;quot;0&amp;quot;, but must be between &amp;quot;25000000&amp;quot; and &amp;quot;6000000000&amp;quot;, inclusive..&lt;/em&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;p&gt;Based on this, we would like to understand the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;How should the &lt;code&gt;fhConfig&lt;/code&gt; structure and the frequency hopping tables be provided to the drivers?&lt;/li&gt;
&lt;li&gt;Is there a recommended process or example implementation for loading these configurations and hop tables so that the drivers can correctly initialize and execute frequency hopping?&lt;/li&gt;
&lt;li&gt;If both the frequency hopping configuration and hop tables are supplied correctly, are the existing drivers fully capable of running frequency hopping, or are any additional driver modifications required?&lt;/li&gt;
&lt;li&gt;If driver changes are necessary, could you please provide the required steps or reference documentation that describe the complete frequency hopping enablement process?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Thank you for your support.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;-Sai&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>NO-OS DPD implementation for ADRV9002 RF transceiver</title><link>https://ez.analog.com/thread/605944?ContentTypeID=0</link><pubDate>Sat, 05 Sep 2026 14:36:58 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:3b5b9960-7602-4760-be61-aae0928edd53</guid><dc:creator>AnuragD</dc:creator><slash:comments>5</slash:comments><comments>https://ez.analog.com/thread/605944?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/605944/no-os-dpd-implementation-for-adrv9002-rf-transceiver/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am currently working with the ADRV9002 RF transceiver and would like to implement&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Digital Predistortion (DPD) using the No-OS software environment&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;I have successfully tested the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;RF loopback functionality in FDD mode&lt;/strong&gt;, and I have also verified the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;DPD functionality using the TES GUI&lt;/strong&gt;. The DPD results obtained through TES are satisfactory, so I would now like to replicate the same DPD functionality in my&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;No-OS implementation&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;I have gone through the ADRV9002 user guide and the available No-OS documentation/source code, but I would appreciate some guidance on the recommended sequence and configuration.&lt;br /&gt;&lt;span&gt;I would appreciate it if someone could guide me through the&amp;nbsp;&lt;/span&gt;&lt;strong&gt;complete DPD implementation flow in No-OS.&amp;nbsp;&lt;br /&gt;&lt;/strong&gt;If you want any additional information from my side kindly let me know.&lt;br /&gt;&lt;br /&gt;regards,&lt;br /&gt;Anurag&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>precision-converters-firmware for SDP-K1: Compilation errors with STM32CubeIDE</title><link>https://ez.analog.com/thread/605869?ContentTypeID=0</link><pubDate>Fri, 28 Aug 2026 13:55:27 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:0ea7ce48-0916-422f-8230-a20c5f92d1f9</guid><dc:creator>crausch</dc:creator><slash:comments>1</slash:comments><comments>https://ez.analog.com/thread/605869?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/605869/precision-converters-firmware-for-sdp-k1-compilation-errors-with-stm32cubeide/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a SDP-K1 and a EVAL-AD4170.&lt;/p&gt;
&lt;p&gt;I tried to compile the AD4170 IIo Application while strictly following your build guide:&lt;br /&gt;&lt;a id="" href="https://analogdevicesinc.github.io/precision-converters-firmware/source/projects/ad4170_iio/ad4170_iio.html"&gt;https://analogdevicesinc.github.io/precision-converters-firmware/source/projects/ad4170_iio/ad4170_iio.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I am using the latest STM32CubeIDE version (2.2.0), but I have also tried an older version (1.18.1) without success.&lt;/p&gt;
&lt;p&gt;I always get compiler errors:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:106px;max-width:665px;" height="106" src="https://ez.analog.com/resized-image/__size/1330x212/__key/communityserver-discussions-components-files/423/pastedimage1787925125935v1.png" width="665" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Can you help me?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>ADRV9002 NOOS DESIGN ISSUE</title><link>https://ez.analog.com/thread/605564?ContentTypeID=0</link><pubDate>Fri, 07 Aug 2026 04:42:07 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:8f8c3901-2a44-4b7c-b7f4-656db7cec098</guid><dc:creator>MBA1</dc:creator><slash:comments>1</slash:comments><comments>https://ez.analog.com/thread/605564?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/605564/adrv9002-noos-design-issue/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;I am using adrv9002 evaluation board with zcu102 board, and using vivado 2025.1.&lt;/p&gt;
&lt;p&gt;I have taken hdl design from&amp;nbsp;&lt;a id="" href="https://github.com/analogdevicesinc/hdl/tree/main/projects/adrv9001/zcu102"&gt;https://github.com/analogdevicesinc/hdl/tree/main/projects/adrv9001/zcu102&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and noos design from&amp;nbsp;&amp;nbsp;&lt;a id="" href="https://github.com/analogdevicesinc/no-OS/tree/main/projects/adrv9001"&gt;https://github.com/analogdevicesinc/no-OS/tree/main/projects/adrv9001&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am getting build error,&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;em&gt;[ERROR] prjpath/adrv9001/src/hal/parameters.h:65:41: error: &amp;#39;XPAR_XSPIPS_SPI_0_DEVICE_ID&amp;#39; undeclared (first use in this function)adrv_component::build&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;In vitis ide ,&amp;nbsp;&lt;span class="ph filepath"&gt;xparameters.h&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;no longer contains&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code class="ph codeph"&gt;DEVICE_ID&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;definitions. Instead the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code class="ph codeph"&gt;BASEADDR&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;definition is used,&lt;span class="ph"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;to build successfully,which files should I change?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>NOOS Build failed for adrv9002</title><link>https://ez.analog.com/thread/605480?ContentTypeID=0</link><pubDate>Tue, 04 Aug 2026 09:09:16 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:a3dd76e4-5ab9-4747-8d5e-dc7150a8925d</guid><dc:creator>LAXMIPRASANNA</dc:creator><slash:comments>18</slash:comments><comments>https://ez.analog.com/thread/605480?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/605480/noos-build-failed-for-adrv9002/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;I am using adrv9002 evaluation board with zcu102 board, and using vivado 2025.1.&lt;/p&gt;
&lt;p&gt;I have taken hdl design from&amp;nbsp;&lt;a id="" href="https://github.com/analogdevicesinc/hdl/tree/main/projects/adrv9001/zcu102"&gt;https://github.com/analogdevicesinc/hdl/tree/main/projects/adrv9001/zcu102&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and noos design from&amp;nbsp;&amp;nbsp;&lt;a id="" href="https://github.com/analogdevicesinc/no-OS/tree/main/projects/adrv9001"&gt;https://github.com/analogdevicesinc/no-OS/tree/main/projects/adrv9001&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am getting build error,&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;span style="color:#ff0000;"&gt;[ERROR] prjpath/adrv9001/src/hal/parameters.h:65:41: error: &amp;#39;XPAR_XSPIPS_SPI_0_DEVICE_ID&amp;#39; undeclared (first use in this function)adrv_component::build&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In vitis ide ,&amp;nbsp;&lt;span class="ph filepath"&gt;xparameters.h&lt;/span&gt; no longer contains &lt;code class="ph codeph"&gt;DEVICE_ID&lt;/code&gt; definitions. Instead the &lt;code class="ph codeph"&gt;BASEADDR&lt;/code&gt; definition is used,&lt;span class="ph"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;to build successfully,which files should I change?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Which brach of libiio and pyadi-iio should I use for adrv9029</title><link>https://ez.analog.com/thread/604936?ContentTypeID=0</link><pubDate>Mon, 29 Jun 2026 05:20:10 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:1b2fcb0e-301c-4455-bdc6-b93b576777ca</guid><dc:creator>mozhoudonglu</dc:creator><slash:comments>2</slash:comments><comments>https://ez.analog.com/thread/604936?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/604936/which-brach-of-libiio-and-pyadi-iio-should-i-use-for-adrv9029/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; My linux and hdl code are both 2022_R2 version, I used libiio and pyadi-iio of brach&amp;nbsp;tfcollins/adrv9025 in 2024 year, but now i found that this branch is missing in libiio, now which brach should I use? Still need v0.25 of libiio?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Can't Connect w/IIO Oscilloscope - Many Similar Issues Reported</title><link>https://ez.analog.com/thread/604901?ContentTypeID=0</link><pubDate>Mon, 22 Jun 2026 17:34:34 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:d596affb-27ca-4549-a6f0-649069459901</guid><dc:creator>jwest</dc:creator><slash:comments>4</slash:comments><comments>https://ez.analog.com/thread/604901?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/604901/can-t-connect-w-iio-oscilloscope---many-similar-issues-reported/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello All,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I made a post here:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/analogdevicesinc/no-OS/issues/3147"&gt;https://github.com/analogdevicesinc/no-OS/issues/3147&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://ez.analog.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/423/pastedimage1782149314239v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;With the Mbed announcement the obvious concern is for how much longer will these products be supported.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve read in this forum several posts that are fundamentally the same as what I&amp;#39;ve posted on github and they&lt;/p&gt;
&lt;p&gt;solve the issue by replacing the ADICUP3029.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve connected a Segger JLink to P14 in SWD mode and have looked at memory - the CN0552 app is being downloaded -&amp;nbsp;&lt;br /&gt;but I&amp;#39;m never seeing anything back from the board even though all is OK most of the time - i have seen ASSERT.TXT&amp;nbsp;&lt;br /&gt;a few times but I&amp;#39;ve been able to clear that.&lt;br /&gt;&lt;br /&gt;Is there a way to confirm the IIOD server is running properly?&amp;nbsp; Since the UART TX/RX is working - I&amp;#39;m not sure why the CN0552 app isn&amp;#39;t.&lt;/p&gt;
&lt;p&gt;TIA,&lt;br /&gt;johnw&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>when run the noorx version of `dma_example.c` in `noos/project/adrv902x`, the TX  RX data captured with XSCT is 0.</title><link>https://ez.analog.com/thread/604506?ContentTypeID=0</link><pubDate>Tue, 02 Jun 2026 09:57:09 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:aa0527e8-f1bc-4620-adfb-c37d01c74b8c</guid><dc:creator>JTHY</dc:creator><slash:comments>8</slash:comments><comments>https://ez.analog.com/thread/604506?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/604506/when-run-the-noorx-version-of-dma_example-c-in-noos-project-adrv902x-the-tx-rx-data-captured-with-xsct-is-0/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Dear teams,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I run the noorx version of &lt;code data-start="32" data-end="47"&gt;dma_example.c&lt;/code&gt; in &lt;code data-start="51" data-end="74"&gt;noos/project/adrv902x&lt;/code&gt;, the TX data captured with XSCT is 0. could you give me some advice?&lt;/p&gt;
&lt;p&gt;boad: zcu102 + adrv9029&lt;/p&gt;
&lt;p&gt;hdl main latest HEAD:5ead6f1a9fb88390efbf91c8ce97a888731af856&lt;/p&gt;
&lt;p&gt;noos main latest HEAD: 37118746bcd3ce9a42ca11377773777898c28bb4&lt;/p&gt;
&lt;p&gt;The serial port output is:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Opened with baud rate: 115200
Zynq MP First Stage Boot Loader 
Release 2025.1   May 28 2026  -  06:04:32
PMU-FW is not running, certain applications may not be supported.
adrv9025-phy Rev 0, API version: 7.0.0.14 found
adrv9025-phy Rev 0, API version: 7.0.0.14 found
rx_clkgen: MMCM-PLL locked (245760000 Hz)
tx_clkgen: MMCM-PLL locked (245760000 Hz)
tx_adxcvr: OK (9830400 kHz)
rx_adxcvr: OK (9830400 kHz)
adrv9025-phy Rev 176, Firmware 7.0.0.11 API version: 7.0.0.14 Stream version: 9.4.0.1 successfully initialized via jesd204-fsm
tx_jesd status:
        Link is enabled
        Measured Link Clock: 245.761 MHz
        Reported Link Clock: 245.760 MHz
        Lane rate: 9830.400 MHz
        Lane rate / 40: 245.760 MHz
        LMFC rate: 7.680 MHz
        SYNC~: deasserted
        Link status: DATA
        SYSREF captured: Yes
        SYSREF alignment error: No
rx_jesd status:
        Link is enabled
        Measured Link Clock: 245.761 MHz
        Reported Link Clock: 245.760 MHz
        Lane rate: 9830.400 MHz
        Lane rate / 40: 245.760 MHz
        LMFC rate: 7.680 MHz
        Link status: DATA
        SYSREF captured: Yes
        SYSREF alignment error: No
DMA_EXAMPLE Tx: address=0x8001e4f00 samples=8192 channels=8 bits=16
DMA_EXAMPLE Rx: address=0x8001ecf00 samples=65536 channels=4 bits=16&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;tx xsct cmd：xsct ../../tools/scripts/platform/xilinx/capture.tcl ZYNQ_PSU 0x8001e4f00 8192 8 16&lt;/p&gt;
&lt;p&gt;rx xsct cmd：xsct ../../tools/scripts/platform/xilinx/capture.tcl ZYNQ_PSU 0x8001ecf00 65536 4 16&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;zhangjinyu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Issues in ADC DAC loopback for ADRV9002 transceiver for ZCU102 eval board</title><link>https://ez.analog.com/thread/604431?ContentTypeID=0</link><pubDate>Thu, 21 May 2026 10:22:47 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:dd7b540b-c6c3-409f-b077-48cf2de16918</guid><dc:creator>AnuragD</dc:creator><slash:comments>1</slash:comments><comments>https://ez.analog.com/thread/604431?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/604431/issues-in-adc-dac-loopback-for-adrv9002-transceiver-for-zcu102-eval-board/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Currently i am trying to establish a ADC DAC loopback for ADRV9002 transceiver for ZCU102 eval board. For that i have taken the HDL and C files from the github and make changes in it as per the requirement . While doing so i am facing some error messages on launching the project. The issue is very frequent and i got stuck into it. I have attached the prints of the error, kindly look into it and suggest any changes or modification in the project if required. Also let me know if any further information you&amp;nbsp; required so as to establish the loopback.&lt;br /&gt;&lt;br /&gt;regards,&lt;br /&gt;&lt;br /&gt;Anurag&lt;br /&gt;&lt;br /&gt;&lt;a href="https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/423/ERROR.txt"&gt;ez.analog.com/.../ERROR.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Implementation of ADRV9002 No-OS drivers on an unsupported carrier (Versal)</title><link>https://ez.analog.com/thread/604261?ContentTypeID=0</link><pubDate>Fri, 08 May 2026 06:39:26 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:97420ecb-1ef7-4b01-a5a5-feff9316b9fe</guid><dc:creator>sumukh</dc:creator><slash:comments>4</slash:comments><comments>https://ez.analog.com/thread/604261?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/604261/implementation-of-adrv9002-no-os-drivers-on-an-unsupported-carrier-versal/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We are&amp;nbsp;trying to implement the ADRV9002 No-OS drivers on a custom Versal based system on module by referring to &lt;a href="https://wiki.analog.com/resources/eval/user-guides/adrv9002/no-os-setup"&gt;ADRV9002 No-OS System Level Design Setup [Analog Devices Wiki]&lt;/a&gt;. In the documenatation, it is mentioned the supported carriers are&amp;nbsp;ZCU102, ZC706 and Zed Board.&lt;/p&gt;
&lt;p&gt;We have built&amp;nbsp;the HDL design for our Versal SoM based on&amp;nbsp;&lt;a href="https://wiki.analog.com/resources/eval/user-guides/adrv9002/reference_hdl"&gt;ADRV9001/ADRV9002 HDL Reference Design [Analog Devices Wiki]&lt;/a&gt;, and we are using the xsa from this design for our No-OS build&lt;/p&gt;
&lt;p&gt;I would like to know what changes need to be made to the No-OS code to make the drivers work with an unsupported carrier such as ours.&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>how to config using which GPIO if I want set adi_rxagc-agc-enable-sync-pulse-for-gain-counter</title><link>https://ez.analog.com/thread/603927?ContentTypeID=0</link><pubDate>Thu, 16 Apr 2026 06:07:58 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:ec3d24a9-ca7c-478c-baac-52404e717655</guid><dc:creator>mozhoudonglu</dc:creator><slash:comments>3</slash:comments><comments>https://ez.analog.com/thread/603927?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/603927/how-to-config-using-which-gpio-if-i-want-set-adi_rxagc-agc-enable-sync-pulse-for-gain-counter/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; I want to use rx in agc mode, my platform is zcu102 with linux kernel (IIO interface), version is 2022.2. I want to tell the adrv9029 arm when to start agc measurement by gpio&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; And similar question is how to select GPIO for gain +/- in MGC mode, the according API is&amp;nbsp;adi_adrv9025_RxGainPinCtrlCfgSet, no entrance for IIO mode&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CN0565+ADICUP3029 : no device found</title><link>https://ez.analog.com/thread/603609?ContentTypeID=0</link><pubDate>Tue, 14 Apr 2026 07:45:28 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:e2a35b29-da1b-40e1-a22e-366c6ac6db4e</guid><dc:creator>VishnuE</dc:creator><slash:comments>3</slash:comments><comments>https://ez.analog.com/thread/603609?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/603609/re-cn0565-adicup3029-no-device-found/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;I facing same issue with&amp;nbsp;&lt;span&gt;ADICUP3029 + adpd4100. tried all possible steps still couldn&amp;#39;t resolve.&amp;nbsp;&lt;br /&gt;i&amp;#39;m seeing &amp;quot;Running TinyIIOD server... If successful, you may connect an IIO client application by: 1. Disconnecting the serial terminal you use to view this message. 2. Connecting the IIO client application using the serial backend configured as shown: Baudrate: 115200, Data size: 8 bits, Parity: none, Stop bits: 1, Flow control: none&amp;quot;&lt;br /&gt;&lt;br /&gt;but didn&amp;#39;t work&amp;nbsp;&lt;br /&gt;&lt;br /&gt;i&amp;#39;m looking for solution, i will let you know if i found it and please let me if you find one&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>unable to connect ADICUP3029 + ADPD4100 "No Context Found", iio_info Timeout, CrossCore Serial Flash Programmer "No Autobaud Response"</title><link>https://ez.analog.com/thread/603604?ContentTypeID=0</link><pubDate>Tue, 14 Apr 2026 07:40:10 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:151cde22-88b6-4cd2-9317-a1fcc0ebda42</guid><dc:creator>VishnuE</dc:creator><slash:comments>5</slash:comments><comments>https://ez.analog.com/thread/603604?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/603604/unable-to-connect-adicup3029-adpd4100-no-context-found-iio_info-timeout-crosscore-serial-flash-programmer-no-autobaud-response/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Board: EVAL-ADICUP3029&lt;br /&gt;Shield: EVAL-ADPD4100-ARDZ (SPI variant, ADPD4100)&lt;br /&gt;&lt;br /&gt;Firmware: ADuCM3029_demo_adpd410x_spi.hex (from official EVAL-ADICUP3029 GitHub releases)&lt;br /&gt;OS Tested: Windows 11, macOS M2 Pro, Linux Ubuntu 24 (VM)&lt;br /&gt;libiio versions tested: 0.23, 0.24&lt;br /&gt;&lt;br /&gt;followed these steps : &lt;a href="https://wiki.analog.com/resources/eval/user-guides/circuits-from-the-lab/eval-adpd410x"&gt;User Guide : eval-adpd410x&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;ISSUE:&lt;br /&gt;IIO Oscilloscope cannot connect to the board and shows &amp;quot;No context found&amp;quot;. I have followed the official EVAL-ADPD410x-ARDZ user guide step by step and cannot get past the connection stage.&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;WHAT IS WORKING:&lt;/p&gt;
&lt;p&gt;- Hex file flashes successfully via DAPLink drag and drop (no FAIL.TXT)&lt;br /&gt;- DAPLink firmware updated via Maintenance Drive&lt;br /&gt;- Board powers up correctly&lt;br /&gt;- TinyIIOD banner is received correctly over serial at 115200 baud:&lt;/p&gt;
&lt;p&gt;&amp;quot;Running TinyIIOD server...&lt;br /&gt; If successful, you may connect an IIO client application by:&lt;br /&gt; 1. Disconnecting the serial terminal you use to view this message.&lt;br /&gt; 2. Connecting the IIO client application using the serial backend configured as shown:&lt;br /&gt; Baudrate: 115200, Data size: 8 bits, Parity: none, Stop bits: 1, Flow control: none&amp;quot;&lt;/p&gt;
&lt;p&gt;(Confirmed via PuTTY on Windows and Python pyserial on macOS)&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;TEST RESULTS:&lt;/p&gt;
&lt;p&gt;1. iio_info output (Windows 11, libiio 0.23):&lt;/p&gt;
&lt;p&gt;iio_info -u serial:COM4,115200&lt;br /&gt; Library version: 0.23 (git tag: c14a0f8)&lt;br /&gt; Compiled with backends: xml ip usb serial&lt;br /&gt; ERROR: sp_blocking_read_next has timedout&lt;br /&gt; ERROR: READ LINE: -138&lt;br /&gt; Unable to create IIO context serial:COM4,115200: timed out (138)&lt;/p&gt;
&lt;p&gt;Same result with: serial:COM4,115200,8n1 and serial:COM4,115200,8n1n&lt;br /&gt; Same result with libiio 0.24.&lt;br /&gt; Same result on Linux (built from source with -DWITH_SERIAL_BACKEND=ON).&lt;/p&gt;
&lt;p&gt;2. Python pyserial VERSION command test (macOS, port: /dev/tty.usbmodem1102):&lt;/p&gt;
&lt;p&gt;import serial, time&lt;br /&gt; ser = serial.Serial(port=&amp;#39;/dev/tty.usbmodem1102&amp;#39;, baudrate=115200,&lt;br /&gt; bytesize=8, parity=&amp;#39;N&amp;#39;, stopbits=1, timeout=5)&lt;br /&gt; time.sleep(2)&lt;br /&gt; for ending in [b'\n', b'\r\n', b'\r']:&lt;br /&gt; ser.write(b&amp;#39;VERSION&amp;#39; + ending)&lt;br /&gt; time.sleep(3)&lt;br /&gt; print(f&amp;quot;Ending {repr(ending)} -&amp;gt; {repr(ser.read_all())}&amp;quot;)&lt;br /&gt; ser.close()&lt;/p&gt;
&lt;p&gt;Output:&lt;br /&gt; Ending b&amp;#39;\n&amp;#39; -&amp;gt; b&amp;#39;&amp;#39;&lt;br /&gt; Ending b&amp;#39;\r\n&amp;#39; -&amp;gt; b&amp;#39;&amp;#39;&lt;br /&gt; Ending b&amp;#39;\r&amp;#39; -&amp;gt; b&amp;#39;&amp;#39;&lt;/p&gt;
&lt;p&gt;No response received for any line ending combination.&lt;/p&gt;
&lt;p&gt;3. CrossCore Serial Flash Programmer v1.8.0 (Windows 11):&lt;/p&gt;
&lt;p&gt;Settings: Target = ADuCM302x, Port = COM4, Baud = 115200, Action = Erase&lt;br /&gt; Boot mode entered by holding S3 while power cycling USB.&lt;/p&gt;
&lt;p&gt;Status output:&lt;br /&gt; &amp;quot;Sending second stage kernel.&lt;br /&gt; Read Intel HEX application image with 668 bytes.&lt;br /&gt; No autobaud response.&amp;quot;&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;SWITCH AND JUMPER CONFIGURATION:&lt;/p&gt;
&lt;p&gt;- S2 (UART): USB&lt;br /&gt;- S5 (POWER): WALL/USB&lt;br /&gt;- IOSEL jumper: Pin 1 and 2 shorted&lt;br /&gt;- SPI interface resistors: R8 and R9 shorted, R6 and R7 open&lt;br /&gt;- P10 jumper: Pins 1-2, 3-4, 5-6 shorted&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;WHAT I HAVE TRIED:&lt;/p&gt;
&lt;p&gt;- Flashed correct hex (SPI variant) multiple times, pressed S1 reset after each flash&lt;br /&gt;- Updated DAPLink firmware via Maintenance Drive&lt;br /&gt;- Tested with 2 different USB data cables &amp;amp; 2 different ADPD4100&lt;br /&gt;- Tested on iio_info with Windows 11, macOS M2 Pro, and Linux Ubuntu 24&lt;br /&gt;- Tested libiio 0.23 and 0.24 on Windows&lt;br /&gt;- Built libiio 0.23 from source on Linux with serial backend enabled&lt;br /&gt;- Tried all serial URI formats documented in the user guide&lt;br /&gt;- Tried IIO Oscilloscope Serial context option and Manual URI option&lt;br /&gt;- Tried CrossCore Serial Flash Programmer erase with board in boot mode (S3 held during power cycle)&lt;br /&gt;- Verified no other application holding the COM port during iio_info tests&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;QUESTION:&lt;br /&gt;Could you please advise what might be causing this? The TinyIIOD banner is received correctly but no response is returned for any command sent to the board. CrossCore Serial Flash Programmer also returns &amp;quot;No autobaud response&amp;quot; even in boot mode. Is there a diagnostic step I may have missed, or could this be a board issue?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>EVAL-AD7606 no-OS: Parallel Interface Support Status and "getting samples error" on ZC702</title><link>https://ez.analog.com/thread/603712?ContentTypeID=0</link><pubDate>Wed, 01 Apr 2026 08:17:46 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:d57dbc1b-9b23-4249-a439-07c7a8f36c83</guid><dc:creator>fpgarookie</dc:creator><slash:comments>9</slash:comments><comments>https://ez.analog.com/thread/603712?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/603712/eval-ad7606-no-os-parallel-interface-support-status-and-getting-samples-error-on-zc702/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p class="isSelectedEnd"&gt;&lt;span&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;I tested the EVAL-AD7606CFMCZ and then ported the design to ZC702.&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;For the &lt;/span&gt;&lt;strong&gt;&lt;span&gt;serial interface&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;, the &lt;/span&gt;&lt;strong&gt;&lt;span&gt;no-OS driver works correctly&lt;/span&gt;&lt;/strong&gt;&lt;span&gt; and I can read valid data.&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;For the &lt;/span&gt;&lt;strong&gt;&lt;span&gt;parallel interface&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;, the initialization completes successfully, but when trying to acquire samples I get a &lt;/span&gt;&lt;strong&gt;&lt;span&gt;&amp;quot;getting samples error&amp;quot;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;I found this related discussion (from about 3 years ago), which suggests that the AD7606 no-OS driver only supports &lt;/span&gt;&lt;strong&gt;&lt;span&gt;serial mode：&lt;a href="https://ez.analog.com/fpga/f/q-a/592737/cannot-initialize-eval-ad7606b-fmcz-no-os-project"&gt;Cannot initialize EVAL-AD7606B-FMCZ (no-OS project) - Q&amp;amp;A - FPGA Reference Designs - EngineerZone&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;. I also noticed the following comment in the source code:&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;code dir="ltr"&gt;&lt;span&gt;/* Driver currently supports only serial interface, therefore, ... */&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;So I would like to confirm:&lt;/span&gt;&lt;/p&gt;
&lt;ol start="1" data-spread="false"&gt;
&lt;li&gt;&lt;span&gt;Is the &lt;/span&gt;&lt;strong&gt;&lt;span&gt;parallel interface still not supported in the current no-OS driver&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;, or has this been updated/fixed in newer versions?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;If parallel mode is now supported, are there any additional configurations or required changes (especially for porting to another device like ZC702)?&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;Any clarification would be appreciated.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Issue with "adxcvr_clk_enable()" in SDK reference design</title><link>https://ez.analog.com/thread/603404?ContentTypeID=0</link><pubDate>Mon, 16 Mar 2026 06:59:32 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:07e1e752-c954-409d-8e32-f71c43beb0e3</guid><dc:creator>UVLSIDRIVER</dc:creator><slash:comments>8</slash:comments><comments>https://ez.analog.com/thread/603404?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/603404/issue-with-adxcvr_clk_enable-in-sdk-reference-design/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I am trying to run the NO-OS reference design in ADRV9009 where I am getting an error stating &amp;quot;error: rx_adxcvr: adxcvr_clk_enable() failed&amp;quot;. My sampling rate and clock rates are 245.76MHz, Rx Lane Rate is 9.8304GHz, ORx lane rate is 4.9152GHz, Tx lane rate is 4.9152GHz. What is the root cause of this problem ?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I have updated the SDK code to print extra logs for debugging purposes and have provided the SDK code with UART terminal logs for reference.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/423/5722.app_5F00_clocking.txt"&gt;ez.analog.com/.../5722.app_5F00_clocking.txt&lt;/a&gt;&lt;a href="https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/423/7723.app_5F00_transceiver.txt"&gt;ez.analog.com/.../7723.app_5F00_transceiver.txt&lt;/a&gt;&lt;a href="https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/423/4718.axi_5F00_adxcvr.txt"&gt;ez.analog.com/.../4718.axi_5F00_adxcvr.txt&lt;/a&gt;&lt;a href="https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/423/6175.hmc7044.txt"&gt;ez.analog.com/.../6175.hmc7044.txt&lt;/a&gt;&lt;a href="https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/423/8176.main.txt"&gt;ez.analog.com/.../8176.main.txt&lt;/a&gt;&lt;a href="https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/423/4162.talise_5F00_config.txt"&gt;ez.analog.com/.../4162.talise_5F00_config.txt&lt;/a&gt;&lt;a href="https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/423/6428.UART_5F00_terminal_5F00_logs.txt"&gt;ez.analog.com/.../6428.UART_5F00_terminal_5F00_logs.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>ADRV9002_SETUP FAILED</title><link>https://ez.analog.com/thread/603223?ContentTypeID=0</link><pubDate>Sat, 07 Mar 2026 05:22:07 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:8bf38ae1-92d8-42ec-9174-b3827ece30ca</guid><dc:creator>Sambhav</dc:creator><slash:comments>4</slash:comments><comments>https://ez.analog.com/thread/603223?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/603223/adrv9002_setup-failed/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://ez.analog.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/423/6445.Adrv9002_5F00_setup_5F00_failed.png" /&gt;&lt;/p&gt;
&lt;p&gt;I am trying to run c code which i downloaded from git hub provide by Analog devices. Code is built successfully and then i created platform project by exporting .xsa file and then added all files to create application project . I am using custom board with fpga : xczu3cg-svba484 and ADRV9002 XCBZ but after running code on processor i am getting adrv9002_setup failed as shown on vitis serial terminal (Ref. png is attached). What step should be taken to fix this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Issues in getting RF output for NO-OS project</title><link>https://ez.analog.com/thread/602902?ContentTypeID=0</link><pubDate>Sat, 21 Feb 2026 04:22:22 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:5b86264c-eeb6-4de0-8816-3bfda44918f6</guid><dc:creator>AnuragD</dc:creator><slash:comments>23</slash:comments><comments>https://ez.analog.com/thread/602902?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/602902/issues-in-getting-rf-output-for-no-os-project/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I am working on HDL and NO-OS project. I have successfully built the project in two different environments:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Vivado/SDK 2019.1&lt;/strong&gt;&amp;nbsp;and&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Vivado/Vitis 2022.2&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The Problem:&lt;/strong&gt;&lt;br /&gt;Upon launching the code on the hardware, the initialization sequence appears successful. The Vitis/SDK serial terminal shows the expected prints and initialization logs. However, when monitoring the output via a Signal Analyzer at the desired carrier frequency, there is&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;no signal detected&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;(only LO leakage is seen at the carrier frequency).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Hardware Setup:&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Carrier Board:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;[ZCU102]&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;RF Transceiver:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;[ADRV9002]&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Observations:&lt;/strong&gt;&lt;/p&gt;
&lt;ol start="1"&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Software:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;The No-OS state machine completes without returning error codes.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;RF Output:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;No signal at the SMA connectors. I have verified the cables and the signal analyzer settings.&lt;br /&gt;&lt;br /&gt;I have attached the headless&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;main.c&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;files for both versions and the corresponding Vitis terminal logs. I am concerned that I may be missing a critical function call required to transition the signal from the &amp;#39;Ready&amp;#39; state to Transmitting. Kindly look into it.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/423/8625.headless_5F00_2019.txt"&gt;ez.analog.com/.../8625.headless_5F00_2019.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/423/6888.headless_5F00_2022.txt"&gt;ez.analog.com/.../6888.headless_5F00_2022.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://ez.analog.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/423/8880.Vitis_5F00_build.png" /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Guidance on Porting FMCDAQ3 Application from No-OS to FreeRTOS</title><link>https://ez.analog.com/thread/602853?ContentTypeID=0</link><pubDate>Fri, 20 Feb 2026 03:03:46 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:5d8c1ce2-a27a-4dd4-a34d-69f49dd2cbbe</guid><dc:creator>AravindGunupuru</dc:creator><slash:comments>3</slash:comments><comments>https://ez.analog.com/thread/602853?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/602853/guidance-on-porting-fmcdaq3-application-from-no-os-to-freertos/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p class="isSelectedEnd"&gt;&lt;span&gt;Hi Team,&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;I have successfully implemented the FMCDAQ3 reference design on the ZCU102 platform using the No-OS driver files provided in your GitHub repository.&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;One of my existing applications is currently running on FreeRTOS. To maintain consistency across my projects, I am planning to port the FMCDAQ3 application from No-OS to FreeRTOS.&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;I would appreciate your guidance on the following points:&lt;/span&gt;&lt;/p&gt;
&lt;ol start="1" data-spread="false"&gt;
&lt;li&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;Which driver source files and header files typically require modification when migrating from No-OS to FreeRTOS?&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;Are there any FreeRTOS-specific adaptations needed for platform abstraction, interrupt handling, timing, or SPI/UART drivers?&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;Do you have any reference source files, examples, or application notes that demonstrate FMCDAQ3 or similar platforms running on FreeRTOS?&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;Any guidance or shared resources would be greatly appreciated and would help accelerate the integration on my end.&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;Thank you for your support.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Aravind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>ADRV9002 eval board working with TES but not with no-os setup</title><link>https://ez.analog.com/thread/602847?ContentTypeID=0</link><pubDate>Thu, 19 Feb 2026 04:51:58 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:718d9837-6af2-44fa-899e-441178d67692</guid><dc:creator>fayaz</dc:creator><slash:comments>2</slash:comments><comments>https://ez.analog.com/thread/602847?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/602847/adrv9002-eval-board-working-with-tes-but-not-with-no-os-setup/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am able to program my ADRV9002 eval board using the TES software, but I am not able to run the no-os program on the board successfully using ZC706.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am facing issues with the Xilinx Vitis 2021.2 debugger so I am not using the Debugger rather generating the BOOT.bin file and copying the .bin to the sd-card.&lt;/p&gt;
&lt;p&gt;The error message I have received is this one: &amp;quot;Failed to reset device and set SPI Config&amp;quot;.&lt;/p&gt;
&lt;p&gt;I did further debugging using print statements and found that it is the ADI_MSG_EXPECT(&amp;quot;SPI Verify failed&amp;quot;, adi_adrv9001_spi_Verify, device) ;&amp;nbsp;function that fails.&lt;/p&gt;
&lt;p&gt;Inside&amp;nbsp;&lt;span&gt;adi_adrv9001_spi_Verify function, it fails in the first verification itself, the SPI is reading all zeroes.&lt;/span&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;if (spiReg != VENDOR_ID_0)
{
ADI_ERROR_REPORT(&amp;amp;device-&amp;gt;common, ADI_COMMON_ERRSRC_API, ADI_COMMON_ERR_API_FAIL,
ADI_COMMON_ACT_ERR_RESET_FULL, spiReg, &amp;quot;Cannot read from a low SPI address\n&amp;quot;);
ADI_ERROR_RETURN(device-&amp;gt;common.error.newAction);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The power supply OK LED is not lit when in no-os setup, but is lit in TES setup.&lt;/p&gt;
&lt;p&gt;another point to note is that we have made a minor adjustment in the ZC706 board. The U66 part had gotten damaged so we removed it and short&amp;nbsp;circuited the pin 5 pad with pin7 pad and pin9 pad with pin11 pad, This way we are supplying 1.8 volts directly rather than through the multiplexer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;U66 pic:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://ez.analog.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/423/2055.pastedimage1771478520303v1.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ADRV9002 pic:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://ez.analog.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/423/4857.pastedimage1771478559112v2.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;PuTTY capture:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Hello
adrv9002_setup, 899: failed with &amp;quot;Failed to reset device and set SPI Config&amp;quot; (3)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;no-os code was taken from:-&lt;a href="https://github.com/analogdevicesinc/no-OS/tree/2021_R2"&gt;github.com/.../2021_R2&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Issues in building NO-OS driver.</title><link>https://ez.analog.com/thread/602737?ContentTypeID=0</link><pubDate>Thu, 12 Feb 2026 06:33:24 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:ea4de269-b44f-4215-8ad2-0b3b3700d35a</guid><dc:creator>AnuragD</dc:creator><slash:comments>6</slash:comments><comments>https://ez.analog.com/thread/602737?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/602737/issues-in-building-no-os-driver/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;While building no-os project for zcu102 with adrv9001 transceiver,&amp;nbsp; i&amp;#39;m getting below error msgs. I am also attaching the ss of the error. Kindly look into it.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Error msgs:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;[00:00:00] [CC] no_os_util.c&lt;/span&gt;&lt;br /&gt;&lt;span&gt;[00:00:00] [LD] no_os_gpio.o no_os_spi.o axi_adc_core.o axi_dac_core.o axi_dmac.o xilinx_axi_io.o xilinx_delay.o xilinx_gpio.o xilinx_spi.o adrv9002.o adrv9002_conv.o adi_common_error.o adi_common_hal_wrapper.o adi_common_log.o adrv9001_arm.o adrv9001_bf_hal.o adrv9001_crc32.o adrv9001_gpio.o adrv9001_init.o adrv9001_rx.o adrv9001_validators.o adi_adrv9001.o adi_adrv9001_arm.o adi_adrv9001_auxadc.o adi_adrv9001_auxdac.o adi_adrv9001_bbdc.o adi_adrv9001_cals.o adi_adrv9001_common.o adi_adrv9001_dpd.o adi_adrv9001_fh.o adi_adrv9001_gpio.o adi_adrv9001_mcs.o adi_adrv9001_orx.o adi_adrv9001_powermanagement.o adi_adrv9001_powersavingandmonitormode.o adi_adrv9001_profileutil.o adi_adrv9001_radio.o adi_adrv9001_rx.o adi_adrv9001_rx_gaincontrol.o adi_adrv9001_spi.o adi_adrv9001_ssi.o adi_adrv9001_stream.o adi_adrv9001_tx.o adi_adrv9001_utilities.o jsmn.o headless.o no_os_platform.o no_os_alloc.o no_os_clk.o no_os_mutex.o no_os_util.o&lt;/span&gt;&lt;br /&gt;&lt;span&gt;make[2]: Nothing to be done for &amp;#39;post_build&amp;#39;.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;[00:00:00] Creating BOOT.BIN and archive with files&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;#39;\.\)&amp;#39; is not recognized as an internal or external command,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;operable program or batch file.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;make[1]: *** [D:/Vivado-proj/no-OS/tools/scripts/xilinx.mk:243: create_boot_bin] Error 255&lt;/span&gt;&lt;br /&gt;&lt;span&gt;make: *** [../../tools/scripts/generic.mk:334: all] Error 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " src="https://ez.analog.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/423/pastedimage1770817556036v2.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;regards,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Anurag&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Maximizing sample speed with CN0565</title><link>https://ez.analog.com/thread/602650?ContentTypeID=0</link><pubDate>Mon, 09 Feb 2026 11:33:17 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:408ffb2d-a165-4334-9b98-fdf2ad881d50</guid><dc:creator>AJollymore</dc:creator><slash:comments>4</slash:comments><comments>https://ez.analog.com/thread/602650?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/602650/maximizing-sample-speed-with-cn0565/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;&lt;span style="font-family:inherit;"&gt;I am working with the CN0565 for a project using a wrist-mounted EIT device for hand pose estimation, similar to&amp;nbsp;&lt;/span&gt;&lt;a style="font-family:inherit;" href="https://github.com/SPICExLAB/EITPose" rel="noopener noreferrer" target="_blank"&gt;https://github.com/SPICExLAB/EITPose.&lt;/a&gt;&lt;span style="font-family:inherit;"&gt;&amp;nbsp;I am currently working with the NO-OS Driver for the CN0565, but I&amp;#39;m struggling to get frames (full adjacent pair measurements) on an 8-electrode set past the 0.7-second mark.&lt;/span&gt;&amp;nbsp;I&amp;#39;ve modified &lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;AD5940BiaStructInit() to attempt to max out pBiaCfg-&amp;gt;ODR set at 2000hz&amp;nbsp;&lt;/span&gt;&lt;/span&gt;and decrease the dftNum to 1024. I&amp;#39;m wondering if there&amp;#39;s any precedent with this chip for continuous streaming, and any recommendations you may have to keep bringing this time down. I&amp;#39;ve attached my app.c, main.c, and parameters.h for reference.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ADDITIONAL INFORMATION&lt;/p&gt;
&lt;p&gt;Microcontroller board: adicup3029&lt;/p&gt;
&lt;p&gt;Connection Type: Serial UART (not IIO)&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/***************************************************************************//**
 *   @file   main.c
 *   @brief  EIT main.
 *   @author Darius Berghe (darius.berghe@analog.com)
********************************************************************************
 * Copyright 2022(c) Analog Devices, Inc.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 *    this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 *    this list of conditions and the following disclaimer in the documentation
 *    and/or other materials provided with the distribution.
 *
 * 3. Neither the name of Analog Devices, Inc. nor the names of its
 *    contributors may be used to endorse or promote products derived from this
 *    software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
 * EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************/
#include &amp;lt;stdlib.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;errno.h&amp;gt;
#include &amp;quot;parameters.h&amp;quot;
#include &amp;quot;no_os_uart.h&amp;quot;
#include &amp;quot;no_os_gpio.h&amp;quot;
#include &amp;quot;no_os_i2c.h&amp;quot;
#include &amp;quot;no_os_spi.h&amp;quot;
#include &amp;quot;no_os_irq.h&amp;quot;
#include &amp;quot;no_os_delay.h&amp;quot;
#include &amp;quot;no_os_util.h&amp;quot;

#if defined(STM32_PLATFORM)
#include &amp;quot;stm32_spi.h&amp;quot;
#include &amp;quot;stm32_gpio.h&amp;quot;
#include &amp;quot;stm32_uart.h&amp;quot;
#include &amp;quot;stm32_i2c.h&amp;quot;
#include &amp;quot;stm32_irq.h&amp;quot;
#include &amp;quot;stm32_gpio_irq.h&amp;quot;
#include &amp;quot;stm32_uart_stdio.h&amp;quot;
#elif defined(ADUCM_PLATFORM)
#include &amp;quot;platform_init.h&amp;quot;
#include &amp;quot;aducm3029_spi.h&amp;quot;
#include &amp;quot;aducm3029_gpio.h&amp;quot;
#include &amp;quot;aducm3029_uart.h&amp;quot;
#include &amp;quot;aducm3029_i2c.h&amp;quot;
#include &amp;quot;aducm3029_irq.h&amp;quot;
#include &amp;quot;aducm3029_uart_stdio.h&amp;quot;
#endif

#include &amp;quot;app.h&amp;quot;
#include &amp;quot;ad5940.h&amp;quot;

#ifdef IIO_SUPPORT
#include &amp;quot;iio_ad5940.h&amp;quot;
#include &amp;quot;iio_adg2128.h&amp;quot;
#include &amp;quot;iio_app.h&amp;quot;
#endif

struct no_os_spi_desc *spi;
struct no_os_i2c_desc *i2c;
struct no_os_uart_desc *uart;

#if defined(STM32_PLATFORM)
extern UART_HandleTypeDef huart5;
#endif

void ad5940_int_callback(void *ctx)
{
	ucInterrupted = 1;
}

int main(void)
{
	int ret;

#if defined(STM32_PLATFORM)
	stm32_init();
#elif defined(ADUCM_PLATFORM)
	ret = platform_init();
	if (ret)
		return ret;
#endif

#ifndef IIO_SUPPORT
#if defined(STM32_PLATFORM)
	struct stm32_uart_init_param xuip = {
		.huart = &amp;amp;huart5,
		.timeout = 10,
	};
#endif
	struct no_os_uart_init_param uip = {
		.device_id = UART_DEVICE_ID,
		.baud_rate = UART_BAUDRATE,
		.size = NO_OS_UART_CS_8,
		.parity = NO_OS_UART_PAR_NO,
		.stop = NO_OS_UART_STOP_1_BIT,
#if defined(STM32_PLATFORM)
		.extra = &amp;amp;xuip,
#endif
		.asynchronous_rx = true,
		.irq_id = UART_IRQ_ID,
#if defined(STM32_PLATFORM)
		.platform_ops = &amp;amp;stm32_uart_ops,
#elif defined(ADUCM_PLATFORM)
		.platform_ops = &amp;amp;aducm_uart_ops,
#endif
	};

	ret = no_os_uart_init(&amp;amp;uart, &amp;amp;uip);
	if (ret &amp;lt; 0)
		return ret;

	no_os_uart_stdio(uart);

	printf(&amp;quot;Hello!\n&amp;quot;);
#endif
	struct no_os_i2c_init_param i2cip = {
		.device_id = I2C_DEVICE_ID,
		.max_speed_hz = I2C_BAUDRATE,
		.slave_address = 0x70,
#if defined(STM32_PLATFORM)
		.platform_ops = &amp;amp;stm32_i2c_ops,
#elif defined(ADUCM_PLATFORM)
		.platform_ops = &amp;amp;aducm_i2c_ops,
#endif
	};
	ret = no_os_i2c_init(&amp;amp;i2c, &amp;amp;i2cip);
	if (ret)
		goto error;

#if defined(STM32_PLATFORM)
	struct stm32_spi_init_param xsip  = {
		.chip_select_port = SPI_CS_PORT,
		.get_input_clock = HAL_RCC_GetPCLK1Freq,
	};
#elif defined(ADUCM_PLATFORM)
	struct aducm_spi_init_param xsip = {
		.continuous_mode = true,
		.dma = false,
		.half_duplex = false,
		.master_mode = MASTER
	};
#endif
	struct no_os_spi_init_param sip = {
		.device_id = SPI_DEVICE_ID,
		.max_speed_hz = 3000000,
		.bit_order = NO_OS_SPI_BIT_ORDER_MSB_FIRST,
		.mode = NO_OS_SPI_MODE_0,
		.extra = &amp;amp;xsip,
#if defined(STM32_PLATFORM)
		.platform_ops = &amp;amp;stm32_spi_ops,
#elif defined(ADUCM_PLATFORM)
		.platform_ops = &amp;amp;aducm_spi_ops,
#endif
		.chip_select = SPI_CS,
	};

#if defined(STM32_PLATFORM)
	struct stm32_gpio_init_param reset_xgip = {
		.mode = GPIO_MODE_OUTPUT_PP,
		.speed = GPIO_SPEED_FREQ_VERY_HIGH,
	};
#endif
	struct no_os_gpio_init_param reset_gip = {
		.port = 3,
		.number = RESET_PIN,
		.pull = NO_OS_PULL_NONE,
#if defined(STM32_PLATFORM)
		.platform_ops = &amp;amp;stm32_gpio_ops,
		.extra = &amp;amp;reset_xgip,
#elif defined(ADUCM_PLATFORM)
		.platform_ops = &amp;amp;aducm_gpio_ops,
#endif
	};

#if defined(STM32_PLATFORM)
	struct stm32_gpio_init_param gp0_xgip = {
		.mode = GPIO_MODE_INPUT,
		.speed = GPIO_SPEED_FREQ_VERY_HIGH,
	};
#endif

	struct no_os_gpio_init_param gp0_gip = {
		.port = 6,
		.number = GP0_PIN,
		.pull = NO_OS_PULL_NONE,
#if defined(STM32_PLATFORM)
		.platform_ops = &amp;amp;stm32_gpio_ops,
		.extra = &amp;amp;gp0_xgip,
#elif defined(ADUCM_PLATFORM)
		.platform_ops = &amp;amp;aducm_gpio_ops,
#endif
	};

	// aducm3029 hack, need to initialize gpio before irq, otherwise it doesn&amp;#39;t work
#if defined(ADUCM_PLATFORM)
	struct no_os_gpio_desc *gp0;
	no_os_gpio_get(&amp;amp;gp0, &amp;amp;gp0_gip);
#endif

	struct ad5940_init_param ad5940_ip = {
		.spi_init = sip,
		.reset_gpio_init = reset_gip,
		.gp0_gpio_init = gp0_gip,
	};
#ifndef IIO_SUPPORT
	/* interrupt controller  */
	struct no_os_irq_init_param nvic_ip = {
		.irq_ctrl_id = INTC_DEVICE_ID,
		.platform_ops = IRQ_OPS,
	};
	struct no_os_irq_ctrl_desc *nvic;
	ret = no_os_irq_ctrl_init(&amp;amp;nvic, &amp;amp;nvic_ip);
	if (ret &amp;lt; 0)
		return ret;

	/* gpio interrupt controller  */
#if defined(STM32_PLATFORM)
	struct stm32_gpio_irq_init_param gic_xip = {
		.port_nb = 6, /* port G */
	};
#endif
	struct no_os_irq_init_param gic_ip = {
#if defined(STM32_PLATFORM)
		.irq_ctrl_id = GP0_PIN,
#elif defined(ADUCM_PLATFORM)
		.irq_ctrl_id = INTC_DEVICE_ID,
#endif
		.platform_ops = GPIO_IRQ_OPS,
#if defined(STM32_PLATFORM)
		.extra = &amp;amp;gic_xip,
#endif
	};
	struct no_os_irq_ctrl_desc *gic;
	ret = no_os_irq_ctrl_init(&amp;amp;gic, &amp;amp;gic_ip);
	if (ret &amp;lt; 0)
		return ret;

	/* callback */
	struct no_os_callback_desc int_cb = {
		.callback = ad5940_int_callback,
		.event = NO_OS_EVT_GPIO,
		.peripheral = NO_OS_GPIO_IRQ,
	};

	ret = no_os_irq_register_callback(gic, INT_IRQn, &amp;amp;int_cb);
	if (ret &amp;lt; 0)
		return ret;

	ret = no_os_irq_trigger_level_set(gic, INT_IRQn, NO_OS_IRQ_EDGE_FALLING);
	if (ret &amp;lt; 0)
		return ret;

	ret = no_os_irq_enable(gic, INT_IRQn);
	if (ret &amp;lt; 0)
		return ret;

	ret = app_main(i2c, &amp;amp;ad5940_ip);
	if (ret &amp;lt; 0)
		goto error;
#else
#if defined(STM32_PLATFORM)
	struct stm32_uart_init_param uart_extra_ip = {
		.huart = &amp;amp;huart5,
	};
#endif

	struct no_os_uart_init_param iio_uart_ip = {
		.device_id = UART_DEVICE_ID,
		.irq_id = UART_IRQ_ID,
		.baud_rate = UART_BAUDRATE,
		.size = NO_OS_UART_CS_8,
		.parity = NO_OS_UART_PAR_NO,
		.stop = NO_OS_UART_STOP_1_BIT,
#if defined(STM32_PLATFORM)
		.extra = &amp;amp;uart_extra_ip,
#else
		.extra = NULL,
#endif
		.platform_ops = UART_OPS
	};
	struct iio_app_desc *app;
	struct iio_app_init_param app_init_param = { 0 };
	struct ad5940_iio_dev *ad5940_iio = NULL;
	struct ad5940_iio_init_param ad5940_iio_ip = {
		.ad5940_init = &amp;amp;ad5940_ip,
	};
	ret = ad5940_iio_init(&amp;amp;ad5940_iio, &amp;amp;ad5940_iio_ip);
	if (ret &amp;lt; 0)
		goto error;

	struct adg2128_iio_dev *adg2128_iio = NULL;
	ret = adg2128_iio_init(&amp;amp;adg2128_iio, i2c);
	if (ret &amp;lt; 0)
		goto error;

	struct iio_app_device devices[] = {
		{
			.name = &amp;quot;ad5940&amp;quot;,
			.dev = ad5940_iio,
			.dev_descriptor = ad5940_iio-&amp;gt;iio,
			.read_buff = NULL,
			.write_buff = NULL
		},
		{
			.name = &amp;quot;adg2128&amp;quot;,
			.dev = adg2128_iio,
			.dev_descriptor = adg2128_iio-&amp;gt;iio_dev,
		},
	};

	app_init_param.devices = devices;
	app_init_param.nb_devices = NO_OS_ARRAY_SIZE(devices);
	app_init_param.uart_init_params = iio_uart_ip;

	ret = iio_app_init(&amp;amp;app, app_init_param);
	if (ret)
		return ret;

	return iio_app_run(app);
#endif

	printf(&amp;quot;Bye!\n&amp;quot;);
	return 0;
error:
	printf(&amp;quot;Bye! (%d)\n&amp;quot;, ret);
	return ret;
}

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/***************************************************************************//**
 *   @file   app.c
 *   @brief  EIT application source.
 *   @author Kister Jimenez (kister.jimenez@analog.com)
 *   @author Darius Berghe (darius.berghe@analog.com)
********************************************************************************
 * Copyright 2022(c) Analog Devices, Inc.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 *    this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 *    this list of conditions and the following disclaimer in the documentation
 *    and/or other materials provided with the distribution.
 *
 * 3. Neither the name of Analog Devices, Inc. nor the names of its
 *    contributors may be used to endorse or promote products derived from this
 *    software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
 * EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************/
#include &amp;lt;stdlib.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;stdbool.h&amp;gt;
#include &amp;lt;string.h&amp;gt;
#include &amp;lt;math.h&amp;gt;
#include &amp;quot;no_os_delay.h&amp;quot;
#include &amp;quot;no_os_uart.h&amp;quot;
#include &amp;quot;no_os_spi.h&amp;quot;
#include &amp;quot;no_os_gpio.h&amp;quot;
#include &amp;quot;no_os_timer.h&amp;quot;
#include &amp;quot;bia_measurement.h&amp;quot;
#include &amp;quot;mux_board.h&amp;quot;
#include &amp;quot;app.h&amp;quot;
#include &amp;quot;parameters.h&amp;quot;

#if defined(ADUCM_PLATFORM)
#include &amp;quot;aducm3029_timer.h&amp;quot;
#endif

extern struct no_os_uart_desc *uart;

#define APPBUFF_SIZE 100
uint32_t AppBuff[APPBUFF_SIZE];
struct electrode_combo swComboSeq[256]; // TODO review when nElCount is 32

float SinFreqVal = 0.0;
unsigned int SinFreqValUINT = 0;
unsigned int runningCmd = 0;

#if defined(ADUCM_PLATFORM)
static struct no_os_timer_desc *q_timer;
static struct no_os_timer_desc *v_total_timer;
#endif
static uint32_t q_switch_us;
static uint32_t q_meas_us;
static bool q_timing_valid;
static uint64_t v_switch_us_accum;
static uint32_t v_switch_count;
static uint32_t v_total_us;
static bool v_timing_active;

volatile uint32_t ucInterrupted = 0; /* Flag to indicate interrupt occurred */
extern volatile unsigned char szInSring[32];

/* Since the reset pin is mapped to GPIO of AD5940, Access it through
 * AD5940 GPIO Register. */
int ADG2128_SwRst(struct ad5940_dev *dev)
{
	int ret = ad5940_WriteReg(dev, REG_AGPIO_GP0OUT, 0);
	if (ret &amp;lt; 0)
		return ret;
	no_os_udelay(1);
	return ad5940_WriteReg(dev, REG_AGPIO_GP0OUT, AGPIO_Pin1);
}

uint32_t GetMCUIntFlag(void)
{
	return ucInterrupted;
}

uint32_t ClrMCUIntFlag(void)
{
	ucInterrupted = 0;
	return 1;
}

#if defined(ADUCM_PLATFORM)
static int32_t q_timer_init(struct no_os_timer_desc **timer)
{
	if (*timer)
		return 0;

	struct no_os_timer_init_param tip = {
		.id = 0,
		.freq_hz = 1000000u,
		.ticks_count = 0,
		.platform_ops = &amp;amp;aducm_timer_ops,
		.extra = NULL,
	};

	return no_os_timer_init(timer, &amp;amp;tip);
}

static void q_timer_start(void)
{
	if (q_timer_init(&amp;amp;q_timer) != 0)
		return;

	no_os_timer_counter_set(q_timer, 0);
	no_os_timer_start(q_timer);
}

static uint32_t q_timer_stop_get_us(void)
{
	uint32_t count = 0;

	if (!q_timer)
		return 0;

	no_os_timer_counter_get(q_timer, &amp;amp;count);
	no_os_timer_stop(q_timer);

	return count;
}

static void v_total_timer_start(void)
{
	if (q_timer_init(&amp;amp;v_total_timer) != 0)
		return;

	no_os_timer_counter_set(v_total_timer, 0);
	no_os_timer_start(v_total_timer);
}

static uint32_t v_total_timer_stop_get_us(void)
{
	uint32_t count = 0;

	if (!v_total_timer)
		return 0;

	no_os_timer_counter_get(v_total_timer, &amp;amp;count);
	no_os_timer_stop(v_total_timer);

	return count;
}
#else
static void q_timer_start(void) { }
static uint32_t q_timer_stop_get_us(void) { return 0; }
static void v_total_timer_start(void) { }
static uint32_t v_total_timer_stop_get_us(void) { return 0; }
#endif

void configMeasurement(struct measurement_config *oldCfg,
		       struct measurement_config newCfg)
{
	AppBiaCfg_Type *pBiaCfg;
	AppBiaGetCfg(&amp;amp;pBiaCfg);
	if (oldCfg-&amp;gt;nFrequency != newCfg.nFrequency) {
		pBiaCfg-&amp;gt;bParamsChanged = true;
		oldCfg-&amp;gt;nFrequency = newCfg.nFrequency;
		pBiaCfg-&amp;gt;SinFreq = ((float)(newCfg.nFrequency)) * 1000.0;
	}

	if (oldCfg-&amp;gt;nAmplitudePP != newCfg.nAmplitudePP) {
		pBiaCfg-&amp;gt;bParamsChanged = true;
		oldCfg-&amp;gt;nAmplitudePP = newCfg.nAmplitudePP;
		pBiaCfg-&amp;gt;DacVoltPP = newCfg.nAmplitudePP * 1.0;
	}
	pBiaCfg-&amp;gt;bImpedanceReadMode = newCfg.bImpedanceReadMode;
	pBiaCfg-&amp;gt;SweepCfg.SweepEn = newCfg.bSweepEn;
	if (newCfg.bImpedanceReadMode) { // Impedance mode
		pBiaCfg-&amp;gt;FifoThresh = 4;
	} else {
		pBiaCfg-&amp;gt;FifoThresh = 2;
	}
	// Set newCfg as old for next command execution;
	*oldCfg = newCfg;
}

void ParseResultMode(struct measurement_config *pMeasCfg)
{
	char *cmd_ptr;
	char cTmp;
	uint8_t cmd_ok = 0;
	char hex_string_byte_param[10];
	cmd_ptr = strtok(NULL, &amp;quot;,&amp;quot;);
	pMeasCfg-&amp;gt;bImpedanceReadMode = false; //default
	if (cmd_ptr) { // If last parameter exists read it
		strcpy(hex_string_byte_param, cmd_ptr);
		cmd_ok = sscanf(hex_string_byte_param, &amp;quot;%c&amp;quot;, &amp;amp;cTmp);
		if (cmd_ok) {
			if (cTmp == &amp;#39;Z&amp;#39;)
				pMeasCfg-&amp;gt;bImpedanceReadMode = true;
		}
	}

	cmd_ptr = strtok(NULL, &amp;quot;,&amp;quot;);
	pMeasCfg-&amp;gt;bMagnitudeMode = false;
	if (cmd_ptr) { // If parameter exists read it
		strcpy(hex_string_byte_param, cmd_ptr);
		cmd_ok = sscanf(hex_string_byte_param, &amp;quot;%c&amp;quot;, &amp;amp;cTmp);
		if (cmd_ok) {
			if (cTmp == &amp;#39;M&amp;#39;)
				pMeasCfg-&amp;gt;bMagnitudeMode = true;
		}
	}
}

int32_t ParseConfig(char  *pStr,
		    struct eit_config *pEitCfg,
		    struct measurement_config *pMeasCfg)
{
	char *cmd_ptr;
	uint8_t cmd_ok = 0;
	char hex_string_byte_param[10];
	*pStr = 0;
	cmd_ptr = strtok(pStr + 1, &amp;quot;,&amp;quot;);
	strcpy(hex_string_byte_param, cmd_ptr);
	cmd_ok = sscanf(hex_string_byte_param, &amp;quot;%hu&amp;quot;, &amp;amp;pMeasCfg-&amp;gt;nFrequency);
	if (cmd_ok) {
		cmd_ptr = strtok(NULL, &amp;quot;,&amp;quot;);
		strcpy(hex_string_byte_param, cmd_ptr);
		cmd_ok = sscanf(hex_string_byte_param, &amp;quot;%hu&amp;quot;,
				&amp;amp;pEitCfg-&amp;gt;nElectrodeCnt);
	}
	if (cmd_ok) {
		cmd_ptr = strtok(NULL, &amp;quot;,&amp;quot;);
		strcpy(hex_string_byte_param, cmd_ptr);
		cmd_ok = sscanf(hex_string_byte_param, &amp;quot;%hu&amp;quot;, &amp;amp;pEitCfg-&amp;gt;nForceDist);
	}
	if (cmd_ok) {
		cmd_ptr = strtok(NULL, &amp;quot;,&amp;quot;);
		strcpy(hex_string_byte_param, cmd_ptr);
		cmd_ok = sscanf(hex_string_byte_param, &amp;quot;%hu&amp;quot;, &amp;amp;pEitCfg-&amp;gt;nSenseDist);
	}
	if (cmd_ok) {
		cmd_ptr = strtok(NULL, &amp;quot;,&amp;quot;);
		strcpy(hex_string_byte_param, cmd_ptr);
		cmd_ok = sscanf(hex_string_byte_param, &amp;quot;%hu&amp;quot;, &amp;amp;pEitCfg-&amp;gt;nRefEl);
	}
	if (cmd_ok)
		ParseResultMode(pMeasCfg);

	if (!cmd_ok) //Error Parsing
		return 1;
	else
		return 0;
}

int32_t ParseQuery(char *pStr,
		   struct electrode_combo *pElCmb,
		   struct measurement_config *pMeasCfg)
{
	char *cmd_ptr;
	uint8_t cmd_ok = 0;
	char hex_string_byte_param[10];
	*pStr = 0;
	cmd_ptr = strtok(pStr + 1, &amp;quot;,&amp;quot;);
	strcpy(hex_string_byte_param, cmd_ptr);
	cmd_ok = sscanf(hex_string_byte_param, &amp;quot;%hu&amp;quot;, &amp;amp;pMeasCfg-&amp;gt;nFrequency);
	if (cmd_ok) {
		cmd_ptr = strtok(NULL, &amp;quot;,&amp;quot;);
		strcpy(hex_string_byte_param, cmd_ptr);
		cmd_ok = sscanf(hex_string_byte_param, &amp;quot;%hu&amp;quot;, &amp;amp;pElCmb-&amp;gt;F_plus);
	}
	if (cmd_ok) {
		cmd_ptr = strtok(NULL, &amp;quot;,&amp;quot;);
		strcpy(hex_string_byte_param, cmd_ptr);
		cmd_ok = sscanf(hex_string_byte_param, &amp;quot;%hu&amp;quot;, &amp;amp;pElCmb-&amp;gt;F_minus);
	}
	if (cmd_ok) {
		cmd_ptr = strtok(NULL, &amp;quot;,&amp;quot;);
		strcpy(hex_string_byte_param, cmd_ptr);
		cmd_ok = sscanf(hex_string_byte_param, &amp;quot;%hu&amp;quot;, &amp;amp;pElCmb-&amp;gt;S_plus);
	}
	if (cmd_ok) {
		cmd_ptr = strtok(NULL, &amp;quot;,&amp;quot;);
		strcpy(hex_string_byte_param, cmd_ptr);
		cmd_ok = sscanf(hex_string_byte_param, &amp;quot;%hu&amp;quot;, &amp;amp;pElCmb-&amp;gt;S_minus);
	}
	if (cmd_ok)
		ParseResultMode(pMeasCfg);

	if (!cmd_ok) //Error Parsing
		return 1;
	else
		return 0;
}

void SendResultUint32(uint32_t *pData, uint32_t nDataCount)
{
	uint32_t i;

	for (i = 0; i &amp;lt; nDataCount - 1; i++) {
		printf(&amp;quot;%lx,&amp;quot;, pData[i]);
	}

	printf(&amp;quot;%lx&amp;quot;, pData[i]);
}

void SendResultFloat32(float *data, uint32_t DataCount)
{
	uint32_t i;

	for (i = 0; i &amp;lt; DataCount - 1; i++) {
		printf(&amp;quot;%0.4f,&amp;quot;, data[i]);
	}

	printf(&amp;quot;%0.4f&amp;quot;, data[i]);
}

void SendResultIeee754(float *data, uint32_t DataCount)
{

	uint32_t *pVal = (uint32_t *)((void *)data);
	uint32_t i;

	for (i = 0; i &amp;lt; DataCount - 1; i++) {
		printf(&amp;quot;%lx,&amp;quot;, pVal[i]);
	}

	printf(&amp;quot;%lx&amp;quot;, pVal[i]);
}

void SendResult(uint32_t *pData, uint16_t len,
		bool bImpedanceReadMode, bool bMagnitudeMode)
{
	float fMagVal = 0;
	fImpCar_Type fCarZval;
	iImpCar_Type iCarVval;
	signExtend18To32(pData, len);
	if (bImpedanceReadMode &amp;amp;&amp;amp; (len == 4)) { // Send Impedance
		fCarZval = computeImpedance(pData);
		if (bMagnitudeMode) { // Complex to Magnitude
			fMagVal = sqrt(fCarZval.Real * fCarZval.Real +
				       fCarZval.Image * fCarZval.Image);
			SendResultIeee754(&amp;amp;fMagVal, 1); // Impedance Magnitude only. Float
		} else { // Complex Impedance in IEE754 uint32 hex string.
			SendResultIeee754((float *)&amp;amp;fCarZval, 2);
		}
	} else if ((!bImpedanceReadMode) &amp;amp;&amp;amp; (len == 2)) { // Send Voltage
		if (bMagnitudeMode) { // Complex to Magnitude
			iCarVval = *((iImpCar_Type *)pData);
			fMagVal = sqrt((iCarVval.Real * 1.0) * (iCarVval.Real * 1.0) +
				       (iCarVval.Image * 1.0) * (iCarVval.Image * 1.0));
			SendResultIeee754(&amp;amp;fMagVal, 1); // Voltage Magnitude only. Float
		} else { // Complex Voltage in uint32 hex string.
			SendResultUint32(pData, 2);
		}
	}
}

void MuxSupportedElectrodeCounts()
{
	//uint8_t outBuff[20]={0};
	printf(&amp;quot;%s&amp;quot;, &amp;quot;08,10,20&amp;quot;);
}

/* !!Change the application parameters here if you want to change it to
 * none-default value */
void AD5940BiaStructInit(void)
{
	AppBiaCfg_Type *pBiaCfg;

	AppBiaGetCfg(&amp;amp;pBiaCfg);

	pBiaCfg-&amp;gt;SeqStartAddr = 0;
	pBiaCfg-&amp;gt;MaxSeqLen = 512; /** @todo add checker in function */

	pBiaCfg-&amp;gt;RcalVal = 1000.0;
	// pBiaCfg-&amp;gt;DftNum = DFTNUM_8192;
	// pBiaCfg-&amp;gt;DftNum = DFTNUM_2048;
	pBiaCfg-&amp;gt;DftNum = DFTNUM_1024;

	pBiaCfg-&amp;gt;NumOfData = -1; /* Never stop until you stop it manually by
							  * AppBiaCtrl(dev, ) function */
	pBiaCfg-&amp;gt;BiaODR = 2000;	 /* ODR(Sample Rate) 20Hz */
	pBiaCfg-&amp;gt;FifoThresh = 2; /* 4 */
	pBiaCfg-&amp;gt;ADCSinc3Osr = ADCSINC3OSR_2;

	pBiaCfg-&amp;gt;DacVoltPP = 500.0; //800.0
	pBiaCfg-&amp;gt;SinFreq = 10000.0; /* 10000Hz */
	pBiaCfg-&amp;gt;SweepCfg.SweepEn = false;
	pBiaCfg-&amp;gt;SweepCfg.SweepStart = 10000;
	pBiaCfg-&amp;gt;SweepCfg.SweepStop = 80000.0;
	pBiaCfg-&amp;gt;SweepCfg.SweepPoints = 20;
	pBiaCfg-&amp;gt;SweepCfg.SweepLog = true;
	pBiaCfg-&amp;gt;SweepCfg.SweepIndex = 0;
}

uint16_t generateSwitchCombination(struct eit_config eitCfg,
				   struct electrode_combo *swSeq)
{
	uint16_t i = 0;
	uint16_t j = 0;
	uint8_t F_plus;
	uint8_t F_minus;
	uint8_t S_plus;
	uint8_t S_minus;
	uint16_t seqCtr = 0;
	for (i = 0; i &amp;lt; eitCfg.nElectrodeCnt; i++) {
		F_plus = i;
		F_minus = (i + eitCfg.nForceDist) % eitCfg.nElectrodeCnt;
		for (j = 0; j &amp;lt; eitCfg.nElectrodeCnt; j++) {
			S_plus = j % eitCfg.nElectrodeCnt;
			if (S_plus == F_plus || S_plus == F_minus)
				continue;
			S_minus = (S_plus + eitCfg.nSenseDist) % eitCfg.nElectrodeCnt;
			if (S_minus == F_plus || S_minus == F_minus)
				continue;

			swSeq[seqCtr].F_plus = F_plus;
			swSeq[seqCtr].F_minus = F_minus;
			swSeq[seqCtr].S_plus = S_plus;
			swSeq[seqCtr++].S_minus = S_minus;
		}
	}
	return seqCtr;
}

int app_main(struct no_os_i2c_desc *i2c, struct ad5940_init_param *ad5940_ip)
{
	int ret;
	static uint32_t IntCount;
	struct eit_config oldEitCfg;
	struct electrode_combo oldElCfg;
	struct measurement_config oldMeasCfg;

	struct eit_config newEitCfg;
	struct electrode_combo newElCfg;
	struct measurement_config newMeasCfg;

	char *buffStr = 0;
	uint32_t temp;
	uint16_t switchSeqCnt = 0;
	uint16_t switchSeqNum = 0;

	int32_t cmd_err = 0;
	uint8_t lastConfig = &amp;#39;C&amp;#39;;

	struct ad5940_dev *ad5940;
	ret = ad5940_init(&amp;amp;ad5940, ad5940_ip);
	if (ret)
		return ret;

	AD5940BiaStructInit(); /* Configure your parameters in this function */

	oldMeasCfg.bImpedanceReadMode = true;
	oldMeasCfg.bMagnitudeMode = false;
	oldMeasCfg.nFrequency = 10;	// default 10 Khz Excitation
	oldMeasCfg.nAmplitudePP = 300; // default 300mV peak to peak excitation
	oldMeasCfg.bSweepEn = false;

	oldElCfg.F_plus = 0;
	oldElCfg.F_minus = 3;
	oldElCfg.S_plus = 1;
	oldElCfg.S_minus = 2;

	oldEitCfg.nElectrodeCnt = 16;
	oldEitCfg.nForceDist = 1;
	oldEitCfg.nSenseDist = 1;
	oldEitCfg.nRefEl = 0;

	switchSeqNum = 0;
	switchSeqCnt = generateSwitchCombination(oldEitCfg, swComboSeq);

	uint8_t cmd[32];
	uint8_t cmdi = 0;

	while (1) {
		ret = no_os_uart_read(uart, &amp;amp;cmd[cmdi], 1);
		if (ret == 1)
			cmdi++;
		else if (!ret)
			continue;

		if (cmd[cmdi - 1] == &amp;#39;\n&amp;#39;) {
			if (cmd[0] == &amp;#39;O&amp;#39;) { // STOP
				ADG2128_SwRst(ad5940);
				AppBiaCtrl(ad5940, BIACTRL_STOPNOW, 0);
				printf(&amp;quot;%s&amp;quot;, &amp;quot;\n!O &amp;quot;);
				runningCmd = 0;
				fflush(stdin);
				printf(&amp;quot;%s&amp;quot;, &amp;quot;\n&amp;quot;);
			}
			if (cmd[0] == &amp;#39;R&amp;#39;) { // RESET
				ADG2128_SwRst(ad5940);
				printf(&amp;quot;%s&amp;quot;, &amp;quot;!R \n&amp;quot;);
				runningCmd = 0;
				fflush(stdin);
			}

			if (!runningCmd) {
				if (cmd[0] == &amp;#39;B&amp;#39;) { //
					ADG2128_SwRst(ad5940);
					printf(&amp;quot;%s&amp;quot;, &amp;quot;!B &amp;quot;);
					runningCmd = 0;
					fflush(stdin);
					MuxSupportedElectrodeCounts();
					putchar(&amp;#39;\n&amp;#39;);
				}

				if (cmd[0] == &amp;#39;Q&amp;#39;) { //Run Specific combination
					AppBiaCtrl(ad5940, BIACTRL_STOPNOW, 0);
					cmd[0] = 0;
					newElCfg = oldElCfg;
					newMeasCfg = oldMeasCfg;
					buffStr = (char *)(cmd + 1);
					cmd_err = ParseQuery(buffStr,
							     &amp;amp;newElCfg,
							     &amp;amp;newMeasCfg);
					fflush(stdin);
					// No errors during parsing.
					if (!cmd_err) {
						runningCmd = &amp;#39;Q&amp;#39;;
						printf(&amp;quot;%s&amp;quot;, &amp;quot;!CMD Q OK\n&amp;quot;);
						configMeasurement(&amp;amp;oldMeasCfg, newMeasCfg);
						AppBiaInit(ad5940, AppBuff, APPBUFF_SIZE);
						no_os_udelay(10);
						printf(&amp;quot;%s&amp;quot;, &amp;quot;!Q &amp;quot;);
						q_timer_start();
						setMuxSwitch(i2c, ad5940, newElCfg, MUXBOARD_SIZE);
						no_os_udelay(3);
						q_switch_us = q_timer_stop_get_us();
						q_timer_start();
						q_timing_valid = true;
						AppBiaCtrl(ad5940, BIACTRL_START, 0);
						lastConfig = &amp;#39;Q&amp;#39;;
					} else {
						printf(&amp;quot;%s&amp;quot;, &amp;quot;!CMD Q ERROR\n&amp;quot;);
					}
				}

				if (cmd[0] == &amp;#39;C&amp;#39;) { //Configure
					AppBiaCtrl(ad5940, BIACTRL_STOPNOW, 0);
					cmd[0] = 0;
					newEitCfg = oldEitCfg;
					newMeasCfg = oldMeasCfg;
					buffStr = (char *)(cmd + 1);
					cmd_err = ParseConfig(buffStr,
							      &amp;amp;newEitCfg,
							      &amp;amp;newMeasCfg);
					fflush(stdin);
					//all command params are valid, execute command
					if (!cmd_err) {
						runningCmd = 0;
						switchSeqNum = 0;
						printf(&amp;quot;%s&amp;quot;, &amp;quot;!CMD C OK\n&amp;quot;);
						switchSeqCnt = generateSwitchCombination(newEitCfg,
								swComboSeq);
						configMeasurement(&amp;amp;oldMeasCfg, newMeasCfg);
						AppBiaInit(ad5940, AppBuff, APPBUFF_SIZE);
						no_os_udelay(10);
						printf(&amp;quot;%s&amp;quot;, &amp;quot;!C OK\n&amp;quot;);
						lastConfig = &amp;#39;C&amp;#39;;
					} else {
						printf(&amp;quot;%s&amp;quot;, &amp;quot;!CMD C ERROR\n&amp;quot;);
					}
				}

				if (cmd[0] == &amp;#39;V&amp;#39;) { //Start boundary voltage query sequence
					fflush(stdin);
					if (lastConfig == &amp;#39;C&amp;#39;) {
						printf(&amp;quot;%s&amp;quot;, &amp;quot;!CMD V OK\n&amp;quot;);
						runningCmd = &amp;#39;V&amp;#39;;
						switchSeqNum = 0;
							v_switch_us_accum = 0;
							v_switch_count = 0;
							v_total_timer_start();
							q_timer_start();
							setMuxSwitch(i2c, ad5940, swComboSeq[switchSeqNum++], newEitCfg.nElectrodeCnt);
						AppBiaInit(ad5940, AppBuff, APPBUFF_SIZE);
						no_os_udelay(10);
							v_switch_us_accum += q_timer_stop_get_us();
							v_switch_count++;
							q_timer_start();
							v_timing_active = true;
						AppBiaCtrl(ad5940, BIACTRL_START, 0);
						printf(&amp;quot;%s&amp;quot;, &amp;quot;!V &amp;quot;);
					} else
						printf(&amp;quot;%s&amp;quot;, &amp;quot;!Send C Command first to configure!\n&amp;quot;);
				}
			}

			memset(cmd, 0, sizeof(cmd));
			cmdi = 0;
		}

		/* Check if interrupt flag which will be set when interrupt occured. */
		if (GetMCUIntFlag()) {
			IntCount++;
			ClrMCUIntFlag(); /* Clear this flag */
			temp = APPBUFF_SIZE;
			AppBiaISR(ad5940, AppBuff,
				  &amp;amp;temp); /* Deal with it and provide a buffer to store data we got */
			AppBiaCtrl(ad5940, BIACTRL_STOPNOW, 0);
			if (runningCmd == &amp;#39;V&amp;#39; || runningCmd == &amp;#39;Q&amp;#39;) {
				//If Q command is being ran return result
				if (runningCmd == &amp;#39;Q&amp;#39;) {
					if (q_timing_valid) {
						q_meas_us = q_timer_stop_get_us();
						printf(&amp;quot;!QT %lu,%lu\n&amp;quot;, (unsigned long)q_switch_us,
						       (unsigned long)q_meas_us);
						q_timing_valid = false;
					}
					SendResult(AppBuff, temp, newMeasCfg.bImpedanceReadMode,
						   newMeasCfg.bMagnitudeMode);
					putchar(&amp;#39;\n&amp;#39;);
					runningCmd = 0;
				}
				//If V or Z command is being ran and this is the last set of ADC, send a terminator character
				if ((runningCmd == &amp;#39;V&amp;#39;) &amp;amp;&amp;amp; switchSeqNum &amp;gt;= switchSeqCnt) {
					SendResult(AppBuff, temp, newMeasCfg.bImpedanceReadMode,
						   newMeasCfg.bMagnitudeMode);
					putchar(&amp;#39;\n&amp;#39;);;
					if (v_timing_active) {
						v_total_us = v_total_timer_stop_get_us();
						printf(&amp;quot;!VT %lu,%lu\n&amp;quot;,
						       (unsigned long)(v_switch_count ?
							(v_switch_us_accum / v_switch_count) : 0),
						       (unsigned long)v_total_us);
						v_timing_active = false;
					}
					runningCmd = 0;
				}

				//if V is still running and switch combinations are not exhausted, restart AFE Seq with new switch combo
				if ((runningCmd == &amp;#39;V&amp;#39;) &amp;amp;&amp;amp; switchSeqNum &amp;lt; switchSeqCnt) {
					SendResult(AppBuff, temp, newMeasCfg.bImpedanceReadMode,
						   newMeasCfg.bMagnitudeMode);
					putchar(&amp;#39;,&amp;#39;);
					q_timer_start();
					setMuxSwitch(i2c, ad5940, swComboSeq[switchSeqNum++], newEitCfg.nElectrodeCnt);
					no_os_udelay(3);
					v_switch_us_accum += q_timer_stop_get_us();
					v_switch_count++;
					AppBiaCtrl(ad5940, BIACTRL_START, 0);
				}
			}
		}
	}
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/***************************************************************************//**
 *   @file   parameters.h
 *   @brief  Parameters Definitions.
 *   @author Darius Berghe (darius.berghe@analog.com)
********************************************************************************
 * Copyright 2022(c) Analog Devices, Inc.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 *    this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 *    this list of conditions and the following disclaimer in the documentation
 *    and/or other materials provided with the distribution.
 *
 * 3. Neither the name of Analog Devices, Inc. nor the names of its
 *    contributors may be used to endorse or promote products derived from this
 *    software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
 * EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************/
#ifndef __PARAMETERS_H__
#define __PARAMETERS_H__

#if defined(ADUCM_PLATFORM)
#include &amp;quot;aducm3029_irq.h&amp;quot;
#include &amp;quot;aducm3029_gpio_irq.h&amp;quot;

#define SPI_DEVICE_ID		0
#define SPI_CS			1
#define INTC_DEVICE_ID		ADUCM_GPIO_B_GROUP_SOFT_CTRL
#define UART_DEVICE_ID		0
#define UART_IRQ_ID		ADUCM_UART_INT_ID
#define UART_BAUDRATE		230400
#define I2C_DEVICE_ID		0
#define I2C_BAUDRATE		100000
#define RESET_PIN		13 // 0.13
#define GP0_PIN			15 // 0.15
#define INT_IRQn		GP0_PIN
#define UART_OPS			&amp;amp;aducm_uart_ops
#define IRQ_OPS			&amp;amp;aducm_irq_ops
#define GPIO_IRQ_OPS    	&amp;amp;aducm_gpio_irq_ops

#elif defined(STM32_PLATFORM)
#include &amp;quot;stm32_hal.h&amp;quot;

#define SPI_DEVICE_ID		1
#define SPI_CS			15
#define SPI_CS_PORT		0
#define INTC_DEVICE_ID		0
#define INT_IRQn		EXTI9_5_IRQn
#define UART_DEVICE_ID		5
#define UART_IRQ_ID		UART5_IRQn
#define UART_OPS			&amp;amp;stm32_uart_ops
#define IRQ_OPS			&amp;amp;stm32_irq_ops
#define GPIO_IRQ_OPS    	&amp;amp;stm32_gpio_irq_ops
#ifdef IIO_SUPPORT
extern UART_HandleTypeDef 	huart5;
#endif
#define IIO_APP_HUART		&amp;amp;huart5
#define UART_BAUDRATE		230400
#define I2C_DEVICE_ID		1
#define I2C_BAUDRATE		100000

#define RESET_PIN		12 // D.12
#define GP0_PIN			7 // G.7
#endif

#endif // __PARAMETERS_H__
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>How to start adrv9029 by c code which generated in TES</title><link>https://ez.analog.com/thread/602577?ContentTypeID=0</link><pubDate>Mon, 09 Feb 2026 08:08:19 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:7bd8e69d-c3b8-47e1-9be8-7e84abc59408</guid><dc:creator>mozhoudonglu</dc:creator><slash:comments>2</slash:comments><comments>https://ez.analog.com/thread/602577?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/602577/how-to-start-adrv9029-by-c-code-which-generated-in-tes/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; After configuration of params in TES, the TES will generate C code and profile files. Now I know how to compile with profile files(both device tree compiled to kernel). But I don&amp;#39;t know how to use the c code and did not find the guide. If it need across compilation to SDK, whether the device tree which given by ADI need modified, for the device tree was in IIO mode.&amp;nbsp;Can you provide a complete process and instructions for compiling and launching using C code？&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>set able frequency OR 7kHz frequency</title><link>https://ez.analog.com/thread/602594?ContentTypeID=0</link><pubDate>Thu, 05 Feb 2026 11:17:42 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:4627a443-1645-42d6-9bc3-fa132dd5ea05</guid><dc:creator>TWAIPL</dc:creator><slash:comments>2</slash:comments><comments>https://ez.analog.com/thread/602594?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/microcontroller-no-os-drivers/f/q-a/602594/set-able-frequency-or-7khz-frequency/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;AD9838BCPZ + STM32F103, MCLK = 16 MHz.&lt;br data-start="1551" data-end="1554" /&gt; Sine wave output works, but &lt;strong data-start="1584" data-end="1606"&gt;frequency is stuck&lt;/strong&gt;.&lt;br data-start="1607" data-end="1610" /&gt;need help checking design and frequency generation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>