<?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>i.MX ProcessorsのトピックSWD Bitbanging with Arduino Portenta x8</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/SWD-Bitbanging-with-Arduino-Portenta-x8/m-p/2171875#M240795</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I’ve been using the&lt;A href="https://shop.blinkinlabs.com/products/jtag-hat" target="_self"&gt; Blinkinlabs JTAG Hat&lt;/A&gt; with a Raspberry Pi 3 and OpenOCD successfully for debugging devices. I followed the example from their &lt;A href="https://github.com/Blinkinlabs/JTAG_hat" target="_self"&gt;github&lt;/A&gt; for the setup. I’m now trying to use it with an Arduino Portenta X8 (with Hat Carrier), for which I created a custom sysfsgpio config:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;adapter driver&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sysfsgpio sysfsgpio_swd_nums 162 166&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sysfsgpio_srst_num 188&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With this setup, I can flash the target device when wiring Portenta's GPIOs directly. However, when routing through the JTAG Hat I get:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: Error connecting DP: cannot read IDR&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe the issue is the swdio_dir pin, which sysfsgpio doesn’t support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an adapter/driver compatible with the NXP i.MX8 mini that allows SWD direction pin control?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Aditi Verma&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Sep 2025 09:33:15 GMT</pubDate>
    <dc:creator>AditiV</dc:creator>
    <dc:date>2025-09-18T09:33:15Z</dc:date>
    <item>
      <title>SWD Bitbanging with Arduino Portenta x8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SWD-Bitbanging-with-Arduino-Portenta-x8/m-p/2171875#M240795</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I’ve been using the&lt;A href="https://shop.blinkinlabs.com/products/jtag-hat" target="_self"&gt; Blinkinlabs JTAG Hat&lt;/A&gt; with a Raspberry Pi 3 and OpenOCD successfully for debugging devices. I followed the example from their &lt;A href="https://github.com/Blinkinlabs/JTAG_hat" target="_self"&gt;github&lt;/A&gt; for the setup. I’m now trying to use it with an Arduino Portenta X8 (with Hat Carrier), for which I created a custom sysfsgpio config:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;adapter driver&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sysfsgpio sysfsgpio_swd_nums 162 166&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sysfsgpio_srst_num 188&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With this setup, I can flash the target device when wiring Portenta's GPIOs directly. However, when routing through the JTAG Hat I get:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: Error connecting DP: cannot read IDR&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe the issue is the swdio_dir pin, which sysfsgpio doesn’t support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an adapter/driver compatible with the NXP i.MX8 mini that allows SWD direction pin control?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Aditi Verma&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 09:33:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SWD-Bitbanging-with-Arduino-Portenta-x8/m-p/2171875#M240795</guid>
      <dc:creator>AditiV</dc:creator>
      <dc:date>2025-09-18T09:33:15Z</dc:date>
    </item>
  </channel>
</rss>

