<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[M5Dial port A as RX &#x2F; TX interface for CAN module?]]></title><description><![CDATA[<p dir="auto">I am using M5Dial for CAN, using the CAN interface and TWAI type driver on port B, no problem.  But now I am trying to interface with two CAN modules and would like to use Port A and PortB.  However seems Port A is set for I2C and can't be repurposed.  Is there any way to reconfigure Port A to work as just a serial connection so I can use the CAN interface on this port also?</p>
]]></description><link>https://community.m5stack.com/topic/6233/m5dial-port-a-as-rx-tx-interface-for-can-module</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 05:07:21 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6233.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Mar 2024 22:47:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5Dial port A as RX &#x2F; TX interface for CAN module? on Wed, 25 Jun 2025 11:29:39 GMT]]></title><description><![CDATA[<p dir="auto">Port A on the M5Dial is hardwired for I2C and shares pins with the internal screen, so repurposing it for TWAI/serial isn’t feasible without major conflicts. For dual CAN, consider using an external UART-to-CAN adapter or a separate GPIO header (if available) to assign alternate TX/RX pins for the second CAN interface.</p>
]]></description><link>https://community.m5stack.com/post/29339</link><guid isPermaLink="true">https://community.m5stack.com/post/29339</guid><dc:creator><![CDATA[hacxx]]></dc:creator><pubDate>Wed, 25 Jun 2025 11:29:39 GMT</pubDate></item><item><title><![CDATA[Reply to M5Dial port A as RX &#x2F; TX interface for CAN module? on Thu, 21 Mar 2024 16:19:40 GMT]]></title><description><![CDATA[<p dir="auto">Yes, the program works great on port B but not port A.  Library has been great and solid.  If I change the code I might get a few CAN messages (like 21-22) but then it stops.  That is why I was wondering if something was electrically different in those two ports.</p>
]]></description><link>https://community.m5stack.com/post/24512</link><guid isPermaLink="true">https://community.m5stack.com/post/24512</guid><dc:creator><![CDATA[uberdweeb]]></dc:creator><pubDate>Thu, 21 Mar 2024 16:19:40 GMT</pubDate></item><item><title><![CDATA[Reply to M5Dial port A as RX &#x2F; TX interface for CAN module? on Thu, 21 Mar 2024 07:31:15 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/uberdweeb" aria-label="Profile: uberdweeb">@<bdi>uberdweeb</bdi></a></p>
<p dir="auto">I understand in using this library you can successfully transmit data using port B but not port A, correct? That should mean the library itself works ok.</p>
<p dir="auto">What speed are you trying to use? I successfully tested with 125kBits and 500kBits.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/24494</link><guid isPermaLink="true">https://community.m5stack.com/post/24494</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 21 Mar 2024 07:31:15 GMT</pubDate></item><item><title><![CDATA[Reply to M5Dial port A as RX &#x2F; TX interface for CAN module? on Thu, 21 Mar 2024 04:36:27 GMT]]></title><description><![CDATA[<p dir="auto">I am using Collin Kidder's CAN library, and no mcp stuff as I believe this is the SPI based CAN modules.  This library:<br />
<a href="https://github.com/collin80/esp32_can" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/collin80/esp32_can</a><br />
If there is another that is more compatible please let me know.</p>
<p dir="auto">Maybe there is more I need to do so it doesn't attempt to do any SPI on that port?</p>
]]></description><link>https://community.m5stack.com/post/24485</link><guid isPermaLink="true">https://community.m5stack.com/post/24485</guid><dc:creator><![CDATA[uberdweeb]]></dc:creator><pubDate>Thu, 21 Mar 2024 04:36:27 GMT</pubDate></item><item><title><![CDATA[Reply to M5Dial port A as RX &#x2F; TX interface for CAN module? on Wed, 20 Mar 2024 20:32:31 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/uberdweeb" aria-label="Profile: uberdweeb">@<bdi>uberdweeb</bdi></a></p>
<p dir="auto">the code compiled for me after disabling the SPI chips using CAN1. I also removed all mcp* files from the libray's src directory. And yes, I successfully tested sending messages back and forth using either port.</p>
<p dir="auto">Which CAN library are you using?</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/24478</link><guid isPermaLink="true">https://community.m5stack.com/post/24478</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 20 Mar 2024 20:32:31 GMT</pubDate></item><item><title><![CDATA[Reply to M5Dial port A as RX &#x2F; TX interface for CAN module? on Wed, 20 Mar 2024 19:34:18 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the advice <a class="plugin-mentions-user plugin-mentions-a" href="/user/teastain" aria-label="Profile: teastain">@<bdi>teastain</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a> !<br />
Did that code compile for you or did you confirm that you were able to get actual CAN traffic on either port?  When I tried it I got a few CAN msgs and then no more.  Port B worked 100%</p>
<p dir="auto">I did a test with the 2 relay board on Port A, GPIO 15 and 13 and it does work just fine...</p>
]]></description><link>https://community.m5stack.com/post/24477</link><guid isPermaLink="true">https://community.m5stack.com/post/24477</guid><dc:creator><![CDATA[uberdweeb]]></dc:creator><pubDate>Wed, 20 Mar 2024 19:34:18 GMT</pubDate></item><item><title><![CDATA[Reply to M5Dial port A as RX &#x2F; TX interface for CAN module? on Wed, 20 Mar 2024 17:22:54 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/uberdweeb" aria-label="Profile: uberdweeb">@<bdi>uberdweeb</bdi></a></p>
<p dir="auto">hmm, both M5Dial ports (A and B) work for me. I used this CAN <a href="https://github.com/collin80/esp32_can/blob/master/examples/CANTestESP32_BuiltIn_AltPins/CANTestESP32_BuiltIn_AltPins.ino" target="_blank" rel="noopener noreferrer nofollow ugc">example</a> as basis. Below is the beginning of <code>setup()</code>:</p>
<pre><code>void setup()
{
  auto cfg = M5.config();
  M5Dial.begin(cfg, false, false);

  Serial.println("Initializing ...");

  CAN0.setCANPins(GPIO_NUM_15, GPIO_NUM_13); // Port A - works
//  CAN0.setCANPins(GPIO_NUM_1, GPIO_NUM_2); // Port B - works
  CAN0.begin(500000);

  Serial.println("Ready ...!");
</code></pre>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/24472</link><guid isPermaLink="true">https://community.m5stack.com/post/24472</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 20 Mar 2024 17:22:54 GMT</pubDate></item><item><title><![CDATA[Reply to M5Dial port A as RX &#x2F; TX interface for CAN module? on Wed, 20 Mar 2024 04:58:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uberdweeb" aria-label="Profile: uberdweeb">@<bdi>uberdweeb</bdi></a> said in <a href="/post/24455">M5Dial port A as RX / TX interface for CAN module?</a>:</p>
<blockquote>
<p dir="auto">CAN0.setCANPins(GPIO_NUM_1, GPIO_NUM_2);</p>
</blockquote>
<p dir="auto">It is just a StampS3 inside and I just wrote a sketch and confirmed that pin15 will turn on an LED  when the button '0' is pushed.<br />
The ESP32 uses an IOMUX to allow almost any pin to have any function.<br />
Hope this helps, -Terry</p>
]]></description><link>https://community.m5stack.com/post/24457</link><guid isPermaLink="true">https://community.m5stack.com/post/24457</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Wed, 20 Mar 2024 04:58:56 GMT</pubDate></item><item><title><![CDATA[Reply to M5Dial port A as RX &#x2F; TX interface for CAN module? on Wed, 20 Mar 2024 03:08:08 GMT]]></title><description><![CDATA[<p dir="auto">I do something like:<br />
CAN0.setCANPins(GPIO_NUM_1, GPIO_NUM_2);<br />
and it works fine but when I do:<br />
CAN0.setCANPins(GPIO_NUM_15, GPIO_NUM_13);<br />
it does not work</p>
<p dir="auto">and the pins are labeled as being for I2C, so just thinking that there is other circuitry that is blocking RX /TX operation or  other software configured to force them in another mode?</p>
]]></description><link>https://community.m5stack.com/post/24455</link><guid isPermaLink="true">https://community.m5stack.com/post/24455</guid><dc:creator><![CDATA[uberdweeb]]></dc:creator><pubDate>Wed, 20 Mar 2024 03:08:08 GMT</pubDate></item><item><title><![CDATA[Reply to M5Dial port A as RX &#x2F; TX interface for CAN module? on Wed, 20 Mar 2024 01:02:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uberdweeb" aria-label="Profile: uberdweeb">@<bdi>uberdweeb</bdi></a> If you are using Arduino IDE you can specify the pins for PortA.</p>
]]></description><link>https://community.m5stack.com/post/24454</link><guid isPermaLink="true">https://community.m5stack.com/post/24454</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Wed, 20 Mar 2024 01:02:48 GMT</pubDate></item></channel></rss>