<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: An adc using an imx6ull processor enables continuous acquisition through a buffer at a fixed fre in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/An-adc-using-an-imx6ull-processor-enables-continuous-acquisition/m-p/1719800#M212296</link>
    <description>&lt;P&gt;could you tell me which version of BSP are you using?&lt;/P&gt;</description>
    <pubDate>Sat, 09 Sep 2023 04:53:48 GMT</pubDate>
    <dc:creator>jimmychan</dc:creator>
    <dc:date>2023-09-09T04:53:48Z</dc:date>
    <item>
      <title>An adc using an imx6ull processor enables continuous acquisition through a buffer at a fixed frequen</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/An-adc-using-an-imx6ull-processor-enables-continuous-acquisition/m-p/1717915#M212104</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;We want to use ADC for fixed-frequency downsampling, and we want to use IIO buffer interface to meet our requirements. After the CONFIG_IIO_SYSFS_TRIGGER=y is enabled in the kernel configuration, the corresponding interface appears.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt; As shown in the picture below:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/239800i1EEBC8CB6B756DB2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN&gt;After our tests, the cache is now available, and the maximum available sampling frequency provided by the system is 206250, as shown in the figure below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/239802i8C63FCBAD129197E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN&gt;But now we need a higher sampling frequency. Through reading the manual, we know that the maximum sampling frequency of the development board is 1MHZ. How should we set this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/239803i14C423BFC64422D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The current device tree configuration is as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/239804i2F24556FCEAD8EAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/239805i2072FE97632B1991/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5.png" alt="5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Thank you!&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 09:00:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/An-adc-using-an-imx6ull-processor-enables-continuous-acquisition/m-p/1717915#M212104</guid>
      <dc:creator>hyw666</dc:creator>
      <dc:date>2023-09-06T09:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: An adc using an imx6ull processor enables continuous acquisition through a buffer at a fixed fre</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/An-adc-using-an-imx6ull-processor-enables-continuous-acquisition/m-p/1719800#M212296</link>
      <description>&lt;P&gt;could you tell me which version of BSP are you using?&lt;/P&gt;</description>
      <pubDate>Sat, 09 Sep 2023 04:53:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/An-adc-using-an-imx6ull-processor-enables-continuous-acquisition/m-p/1719800#M212296</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2023-09-09T04:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: An adc using an imx6ull processor enables continuous acquisition through a buffer at a fixed fre</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/An-adc-using-an-imx6ull-processor-enables-continuous-acquisition/m-p/1719805#M212298</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We are based on nxp's uboot version 2020.10, kernel version 4.19.35, and debian system customized by the image-builder project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Item description Address：&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.embedfire.com/lubancat/build_and_deploy/zh/latest/building_image/building_debian/building_debian.html" target="_blank"&gt;23. 构建野火鲁班猫镜像 — [野火]嵌入式Linux镜像构建与部署——基于LubanCat-i.MX6ULL-MP157开发板 文档 (embedfire.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Project source code：&lt;BR /&gt;&lt;A href="https://gitee.com/Embedfire/ebf-image-builder.git" target="_blank"&gt;https://gitee.com/Embedfire/ebf-image-builder.git&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Kernel source address:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/Embedfire/ebf_linux_kernel/tree/ebf_4.19.35_imx6ul" target="_blank"&gt;Embedfire/ebf_linux_kernel at ebf_4.19.35_imx6ul (github.com)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Uboot source address:&lt;BR /&gt;&lt;A href="https://github.com/Embedfire/ebf_linux_uboot/tree/ebf_v2020_10_imx" target="_blank"&gt;Embedfire/ebf_linux_uboot at ebf_v2020_10_imx (github.com)&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Sep 2023 06:00:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/An-adc-using-an-imx6ull-processor-enables-continuous-acquisition/m-p/1719805#M212298</guid>
      <dc:creator>hyw666</dc:creator>
      <dc:date>2023-09-09T06:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: An adc using an imx6ull processor enables continuous acquisition through a buffer at a fixed fre</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/An-adc-using-an-imx6ull-processor-enables-continuous-acquisition/m-p/1720032#M212323</link>
      <description>&lt;P&gt;We build systems based on nxp 2020.10 uboot, 4.19.35 or 4.19.71 kernels, and the image-builder project.&lt;/P&gt;&lt;P&gt;The kernel source code is as follows:&lt;BR /&gt;&lt;A href="https://github.com/Embedfire/ebf_linux_kernel/tree/ebf_4.19.35_imx6ul" target="_blank"&gt;Embedfire/ebf_linux_kernel at ebf_4.19.35_imx6ul (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The device tree is as follows:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Embedfire/ebf_linux_kernel/blob/ebf_4.19.35_imx6ul/arch/arm/boot/dts/imx6ull-mmc-npi.dts" target="_blank"&gt;ebf_linux_kernel/arch/arm/boot/dts/imx6ull-mmc-npi.dts at ebf_4.19.35_imx6ul · Embedfire/ebf_linux_kernel (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The device tree plug-in is as follows:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Embedfire/ebf_linux_kernel/blob/ebf_4.19.35_imx6ul/arch/arm/boot/dts/overlays/imx-fire-adc1-overlay.dts" target="_blank"&gt;ebf_linux_kernel/arch/arm/boot/dts/overlays/imx-fire-adc1-overlay.dts at ebf_4.19.35_imx6ul · Embedfire/ebf_linux_kernel (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The uboot is as follows:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Embedfire/ebf_linux_uboot/tree/ebf_v2020_10_imx" target="_blank"&gt;Embedfire/ebf_linux_uboot at ebf_v2020_10_imx (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The image-builder project is described as follows:&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.embedfire.com/lubancat/build_and_deploy/zh/latest/building_image/building_debian/building_debian.html#" target="_blank"&gt;23. 构建野火鲁班猫镜像 — [野火]嵌入式Linux镜像构建与部署——基于LubanCat-i.MX6ULL-MP157开发板 文档 (embedfire.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.embedfire.com/lubancat/build_and_deploy/zh/latest/building_image/image_builder/image_builder.html#" target="_blank"&gt;24. image-builder编译流程及用户配置 — [野火]嵌入式Linux镜像构建与部署——基于LubanCat-i.MX6ULL-MP157开发板 文档 (embedfire.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 06:07:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/An-adc-using-an-imx6ull-processor-enables-continuous-acquisition/m-p/1720032#M212323</guid>
      <dc:creator>hyw666</dc:creator>
      <dc:date>2023-09-11T06:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: An adc using an imx6ull processor enables continuous acquisition through a buffer at a fixed fre</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/An-adc-using-an-imx6ull-processor-enables-continuous-acquisition/m-p/1720126#M212336</link>
      <description>&lt;P&gt;# The test procedure is as follows:&lt;/P&gt;&lt;P&gt;# Test buffer cache for ADC continuous acquisition&lt;BR /&gt;# First make sure iio_sysfs_trigger is enabled by the kernel&lt;BR /&gt;# The sampling frequency available in the driver is as follows:&lt;BR /&gt;206250 58098 29676 15000 7541&lt;/P&gt;&lt;P&gt;Currently test 58098 29676 15000 7541 available, 206250 will cause a stuck situation.&lt;/P&gt;&lt;P&gt;# The test procedure is as follows:&lt;BR /&gt;# 1. Jump to devices&lt;BR /&gt;cd /sys/bus/iio/devices&lt;/P&gt;&lt;P&gt;# 2. Create a trigger&lt;BR /&gt;echo 0 &amp;gt; iio_sysfs_trigger/add_trigger&lt;/P&gt;&lt;P&gt;# 3. trigger write&lt;BR /&gt;cat trigger0/name &amp;gt; iio:device0/trigger/current_trigger&lt;/P&gt;&lt;P&gt;# 4. Check the trigger&lt;BR /&gt;cat iio:device0/trigger/current_trigger&lt;/P&gt;&lt;P&gt;# 5. Enter the iio device&lt;BR /&gt;cd iio:device0&lt;/P&gt;&lt;P&gt;# 6, Change the sampling frequency (default sampling frequency is 58098)&lt;BR /&gt;echo 206250 &amp;gt; in_voltage_sampling_frequency&lt;/P&gt;&lt;P&gt;# 7. Check the sampling frequency&lt;BR /&gt;cat in_voltage_sampling_frequency&lt;/P&gt;&lt;P&gt;# 8. Enable scanning&lt;BR /&gt;echo 1 &amp;gt; scan_elements/in_voltage3_en&lt;/P&gt;&lt;P&gt;# 9. Check the scan&lt;BR /&gt;cat scan_elements/in_voltage3_en&lt;/P&gt;&lt;P&gt;# 10. Cache size settings&lt;BR /&gt;echo 1024 &amp;gt; buffer/length&lt;/P&gt;&lt;P&gt;# 11. Enable cache&lt;BR /&gt;echo 1 &amp;gt; buffer/enable&lt;/P&gt;&lt;P&gt;# 12. Close the cache&lt;BR /&gt;echo 0 &amp;gt; buffer/enable&lt;/P&gt;&lt;P&gt;# 13. Check available data&lt;BR /&gt;cat buffer/data_available&lt;/P&gt;&lt;P&gt;# 14. Print data&lt;BR /&gt;hexdump -e '"iio0 :" 8/2 "%04x " "\n"' /dev/iio:device0&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 07:32:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/An-adc-using-an-imx6ull-processor-enables-continuous-acquisition/m-p/1720126#M212336</guid>
      <dc:creator>hyw666</dc:creator>
      <dc:date>2023-09-11T07:32:27Z</dc:date>
    </item>
  </channel>
</rss>

