<?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[Core2 CAN-bus problem...]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I want to do CAN communication using Core 2 and CAN Bus Unit (CA-IS3050G).</p>
<p dir="auto">I tried using the M5Stack example as a base, but it didn't work.</p>
<p dir="auto">It worked on Stick C +.<br />
Please let me know if you have any problems that I do not know.</p>
]]></description><link>https://community.m5stack.com/topic/3293/core2-can-bus-problem</link><generator>RSS for Node</generator><lastBuildDate>Thu, 07 May 2026 17:00:34 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3293.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 May 2021 02:31:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Core2 CAN-bus problem... on Wed, 17 Aug 2022 22:39:19 GMT]]></title><description><![CDATA[<p dir="auto">I have the same problem. With Core or Core2 the CAN Unit is not working. I tried Port B and C (with Bottom/Bottom2). It even blocks CAN communication at my test setup (2 ESP32 development modules with additional SN65HVD230). If I use the same code with an Atom it works. Also the Atom CAN (basically the same as the CAN Unit) works with no problem. I also tried the sample code from m5Stack, doesn't work...</p>
<p dir="auto">The CAN Unit is not the problem. If I hook up a logic analyzer at the connection between Core and CAN Unit the data is fine.</p>
]]></description><link>https://community.m5stack.com/post/18374</link><guid isPermaLink="true">https://community.m5stack.com/post/18374</guid><dc:creator><![CDATA[Nevyn]]></dc:creator><pubDate>Wed, 17 Aug 2022 22:39:19 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 CAN-bus problem... on Thu, 05 May 2022 01:14:49 GMT]]></title><description><![CDATA[<p dir="auto">Anyone get any further on this?  Tried the code below, which compiles and downloads, however I don't get any CANbus signals coming through.  Not sure what else to check?</p>
<hr />
<p dir="auto">#include &lt;M5Core2.h&gt;<br />
#include "CAN_config.h"<br />
#include "ESP32CAN.h"</p>
<p dir="auto">CAN_device_t CAN_cfg;               // CAN Config<br />
unsigned long previousMillis = 0;   // will store last time a CAN Message was send<br />
const int interval = 1000;          // interval at which send CAN Messages (milliseconds)<br />
const int rx_queue_size = 10;       // Receive Queue size</p>
<p dir="auto">uint8_t count = 0;</p>
<p dir="auto">void setup() {<br />
M5.begin(false,false,true,false); //(LCDEnable, SDEnable, SerialEnable, I2CEnable)<br />
CAN_cfg.speed = CAN_SPEED_250KBPS;<br />
CAN_cfg.tx_pin_id = GPIO_NUM_32;<br />
CAN_cfg.rx_pin_id = GPIO_NUM_33;<br />
CAN_cfg.rx_queue = xQueueCreate(rx_queue_size, sizeof(CAN_frame_t));<br />
ESP32Can.CANInit();<br />
}</p>
<p dir="auto">void loop() {<br />
CAN_frame_t rx_frame;<br />
unsigned long currentMillis = millis();</p>
<p dir="auto">// Receive next CAN frame from queue<br />
if (xQueueReceive(CAN_cfg.rx_queue, &amp;rx_frame, 3 * portTICK_PERIOD_MS) == pdTRUE) {</p>
<pre><code>if (rx_frame.FIR.B.RTR == CAN_RTR) {
  Serial.printf("RTR from 0x%08X, DLC %d\r\n", rx_frame.MsgID,  rx_frame.FIR.B.DLC);
}
else {
  Serial.printf("from 0x%08X, DLC %d, Data \r\n", rx_frame.MsgID,  rx_frame.FIR.B.DLC);
  for (int i = 0; i &lt; rx_frame.FIR.B.DLC; i++) {
    Serial.printf("0x%02X ", rx_frame.data.u8[i]);
  }
  Serial.println("\n");
}
</code></pre>
<p dir="auto">}<br />
}</p>
]]></description><link>https://community.m5stack.com/post/17404</link><guid isPermaLink="true">https://community.m5stack.com/post/17404</guid><dc:creator><![CDATA[antoineft]]></dc:creator><pubDate>Thu, 05 May 2022 01:14:49 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 CAN-bus problem... on Fri, 21 May 2021 19:49:42 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/hide4849" aria-label="Profile: hide4849">@<bdi>hide4849</bdi></a></p>
<p dir="auto">sorry, I am out of ideas and I don't have the CAN-bus unit so I cannot test myself.</p>
<p dir="auto">Good luck!<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/13842</link><guid isPermaLink="true">https://community.m5stack.com/post/13842</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 21 May 2021 19:49:42 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 CAN-bus problem... on Fri, 21 May 2021 16:37:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a></p>
<p dir="auto">I checked my code and it is false.<br />
<code>M5.begin(true,false,true,false);</code></p>
<p dir="auto">It doesn't work even if all are false...<br />
<code>M5.begin(false,false,false,false);</code></p>
<p dir="auto">It is the same even if all are true<br />
<code>M5.begin(true,true,true,true);</code></p>
<p dir="auto">Thanks your reply.<br />
hide4849</p>
]]></description><link>https://community.m5stack.com/post/13836</link><guid isPermaLink="true">https://community.m5stack.com/post/13836</guid><dc:creator><![CDATA[hide4849]]></dc:creator><pubDate>Fri, 21 May 2021 16:37:24 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 CAN-bus problem... on Fri, 21 May 2021 15:37:36 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/hide4849" aria-label="Profile: hide4849">@<bdi>hide4849</bdi></a></p>
<p dir="auto">you also need to make sure external I2C (using 32 and 33) does <strong>not</strong> get initialized, e.g. fourth parameter of <code>M5.begin()</code> should to be <code>false</code> (which is the default).</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/13835</link><guid isPermaLink="true">https://community.m5stack.com/post/13835</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 21 May 2021 15:37:36 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 CAN-bus problem... on Fri, 21 May 2021 14:52:21 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a><br />
I remapped with this code but it didn't work.<br />
CAN_cfg.tx_pin_id = 32;<br />
CAN_cfg.rx_pin_id = 33;</p>
<p dir="auto">Is there any more other place to reconfigure?</p>
<p dir="auto">Thanks your reply.<br />
hide4849</p>
]]></description><link>https://community.m5stack.com/post/13834</link><guid isPermaLink="true">https://community.m5stack.com/post/13834</guid><dc:creator><![CDATA[hide4849]]></dc:creator><pubDate>Fri, 21 May 2021 14:52:21 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 CAN-bus problem... on Fri, 21 May 2021 09:12:23 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/hide4849" aria-label="Profile: hide4849">@<bdi>hide4849</bdi></a></p>
<p dir="auto">the CAN bus unit uses a serial connection which by default is available on M5Stack Groove Port B. However M5Core2 (w/o M5GO battery bottom 2) only has a Port A which by default is used for I2C.</p>
<p dir="auto">So you either can try to reconfigure M5Core2 Port A from I2C to serial or stack an <a href="https://shop.m5stack.com/collections/m5-base/products/m5go-battery-bottom2-for-core2-only" target="_blank" rel="noopener noreferrer nofollow ugc">M5GO battery bottom 2</a> to your M5Core2 which then gives you Port B (and C).</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/13828</link><guid isPermaLink="true">https://community.m5stack.com/post/13828</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 21 May 2021 09:12:23 GMT</pubDate></item></channel></rss>