<?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[Stuck getting started on COM.NB-IoT (SIM7020G) with Core2]]></title><description><![CDATA[<p dir="auto">Have a new COM.NB-IoT (SIM7020G) with Core2 but can't get get anything much to work.</p>
<p dir="auto">Have an external 5v power supply for the COM.NB-IoT and inserted a SIM card and attached to the Core2. POwering on the external power supply starts LEDs flashing in the COM.NB-IoT and the Core2 boots up, so that looks like its all connected together properly.</p>
<p dir="auto">Flashing the Core2 with the EasyLoader from the COM.NB-IoT doc page and connecting a Serial Monitor shows:<br />
M5Stack initializing... AT+CSQ<br />
AT+CSQ<br />
AT+CSQ<br />
AT+CSQ<br />
with the AT+CSQ repeating every 10 seconds.</p>
<p dir="auto">So it looks like there is a problem with the serial connection to the COM.NB-IoT.</p>
<p dir="auto">Hunting around I found this repo: <a href="https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/COMX_NB-IoT" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/COMX_NB-IoT</a></p>
<p dir="auto">That uses #include &lt;M5Stack.h&gt; which doesn't appear to work with the Core2 so changing it to #include &lt;M5Core2.h&gt; and adding #include &lt;AXP192.h&gt; to fix another compile error, and<br />
this doc page <a href="https://shop.m5stack.com/products/com-nb-iot-modulesim7020g" target="_blank" rel="noopener noreferrer nofollow ugc">https://shop.m5stack.com/products/com-nb-iot-modulesim7020g</a> talks about changing:</p>
<pre><code>    M5.begin();
Serial2.begin(115200, SERIAL_8N1, 5, 13);
</code></pre>
<p dir="auto">to:</p>
<pre><code>  M5.begin(true, true, true, false, kMBusModeInput);
  Serial2.begin(115200, SERIAL_8N1, 13, 14);
</code></pre>
<p dir="auto">So all that gets it compiling cleanly, but still it doesn't  talk to the COMX_NB-IoT and just gets repeating AT+CSQ.</p>
<p dir="auto">Any help would be greatly appreciated.</p>
]]></description><link>https://community.m5stack.com/topic/4143/stuck-getting-started-on-com-nb-iot-sim7020g-with-core2</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 08:44:17 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4143.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 Mar 2022 17:18:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Stuck getting started on COM.NB-IoT (SIM7020G) with Core2 on Wed, 23 Mar 2022 07:36:05 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/torntrousers" aria-label="Profile: torntrousers">@<bdi>torntrousers</bdi></a></p>
<p dir="auto">if you use GPIO 13, 14 in your code (as suggested) then in the COM.NB-IoT module you'll need to set dip switches for GPIO 16, 17 to on (the other four to off).</p>
<p dir="auto">The GPIO numbering in modules are (so far) always matching the numbering in M5Stack (Base, Gray, Fire) devices but unfortunately M5Core2 uses some different GPIOs on the M5 bus.</p>
<p dir="auto">This <a href="https://www.gwendesign.ch/kb/m5stack/m5core2/#m5core2-bus-and-gpios-compared-to-m5stack" target="_blank" rel="noopener noreferrer nofollow ugc">comparison</a> I've put together a while ago might help.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/16996</link><guid isPermaLink="true">https://community.m5stack.com/post/16996</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 23 Mar 2022 07:36:05 GMT</pubDate></item></channel></rss>