<?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 for AWS]]></title><description><![CDATA[Core2 for AWS]]></description><link>https://community.m5stack.com/category/41</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 21:58:04 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/category/41.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 Feb 2026 13:58:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[How to Actually Use the Core2 AWS ATECC608 with AWS IoT]]></title><description><![CDATA[<p dir="auto"><strong>TL;DR:</strong> The factory certificate in slot 10 is in a compressed format that AWS IoT rejects. You need to generate a new properly-formatted certificate. Full working example here: <a href="https://github.com/scarolan/grafana-core2aws-iot" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/scarolan/grafana-core2aws-iot</a></p>
<hr />
<h2>The Problem Everyone Hits</h2>
<p dir="auto">If you've tried to use the Core2 for AWS with its built-in ATECC608 secure element, you've probably hit this error when registering the certificate:</p>
<pre><code>CertificateValidationException: The certificate could not be parsed
</code></pre>
<p dir="auto"><strong>You're not crazy.</strong> The factory certificate in slot 10 is stored in Microchip's compressed format with:</p>
<ul>
<li>Empty issuer/subject fields</li>
<li>Invalid dates (Aug 28, 2005)</li>
<li>Missing X.509 structure</li>
</ul>
<p dir="auto">AWS IoT's <code>register-certificate-without-ca</code> API rejects it outright.</p>
<h2>The Solution</h2>
<p dir="auto">Generate a new properly-formatted certificate that <strong>still uses the locked private key in slot 0</strong> (so you maintain hardware security):</p>
<h3>1. Clone the Working Example</h3>
<pre><code class="language-bash">git clone https://github.com/scarolan/grafana-core2aws-iot
cd grafana-core2aws-iot/extras/generate_cert
</code></pre>
<h3>2. Flash the Certificate Generator</h3>
<pre><code class="language-bash">pio run -t upload --upload-port COM3
pio device monitor --port COM3 --baud 115200
</code></pre>
<h3>3. Save the Certificate</h3>
<p dir="auto">Copy the certificate output (including <code>-----BEGIN CERTIFICATE-----</code> lines) to a file.</p>
<h3>4. Register with AWS IoT</h3>
<pre><code class="language-bash">aws iot register-certificate-without-ca \
  --certificate-pem file://device_new.pem \
  --status ACTIVE \
  --region us-east-1
</code></pre>
<p dir="auto">Then attach your policy and thing as usual.</p>
<h3>5. Use in Your Firmware</h3>
<p dir="auto">Update <code>secrets.h</code> with the new certificate and you're done!</p>
<h2>Why This Works</h2>
<p dir="auto">The certificate generator:</p>
<ul>
<li>Reads the <strong>public key</strong> from slot 0 (the private key never leaves the chip)</li>
<li>Creates a proper X.509 certificate with valid dates and subject fields</li>
<li><strong>Signs it using the locked private key</strong> (signing happens inside the ATECC608)</li>
<li>Returns a properly-formatted certificate AWS IoT accepts</li>
</ul>
<p dir="auto"><strong>Hardware security is maintained</strong> - the private key in slot 0 is never exposed, it's just used differently.</p>
<h2>Complete Documentation</h2>
<p dir="auto">I've documented the full solution with explanations of what's happening:</p>
<ul>
<li><strong><a href="https://github.com/scarolan/grafana-core2aws-iot/blob/master/docs/ATECC608_ARCHITECTURE.md" target="_blank" rel="noopener noreferrer nofollow ugc">ATECC608 Architecture</a></strong> - How the secure element works, slot configuration, lock mechanism</li>
<li><strong><a href="https://github.com/scarolan/grafana-core2aws-iot/blob/master/docs/ATECC608_CERTIFICATE_SOLUTION.md" target="_blank" rel="noopener noreferrer nofollow ugc">Certificate Solution</a></strong> - Why the factory cert fails and how to fix it</li>
<li><strong><a href="https://github.com/scarolan/grafana-core2aws-iot" target="_blank" rel="noopener noreferrer nofollow ugc">Full Working Example</a></strong> - Complete vibration monitoring IoT demo with AWS IoT Core + Timestream</li>
</ul>
<h2>Why M5Stack Doesn't Document This</h2>
<p dir="auto">The compressed certificate format is a Microchip design decision (saves space on the chip). It's meant to work with:</p>
<ul>
<li>Microchip's Trust Platform provisioning tools</li>
<li>Their specific certificate reconstruction libraries</li>
<li>Microchip-managed certificate authorities</li>
</ul>
<p dir="auto">It was never designed to work directly with third-party services like AWS IoT without special handling.</p>
<p dir="auto">M5Stack provides a complex registration helper (<code>registration_helper.py</code>) that reconstructs the certificate with special manifest-based APIs, but it's <strong>800+ lines of Python with tons of dependencies</strong>.</p>
<p dir="auto">The approach above is <strong>much simpler</strong> - just generate a new cert and register it normally.</p>
<h2>Tested and Working</h2>
<p dir="auto">This solution is running in production on my demo device:</p>
<ul>
<li>MQTTS publishing to AWS IoT Core every 5 seconds</li>
<li>Data flowing to Amazon Timestream</li>
<li>Hardware-backed authentication with ATECC608</li>
<li>Zero issues with certificate validation</li>
</ul>
<h2>Hope This Saves Someone's Week</h2>
<p dir="auto">I fought with this for a week a couple years ago and gave up in frustration. Revisited it recently and finally cracked it. Hopefully this saves others the same pain!</p>
<p dir="auto">Questions/issues? Comment here or open an issue on GitHub.</p>
<hr />
<p dir="auto"><strong>Repository:</strong> <a href="https://github.com/scarolan/grafana-core2aws-iot" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/scarolan/grafana-core2aws-iot</a><br />
<strong>Hardware:</strong> M5Stack Core2 for AWS<br />
<strong>Libraries:</strong> ArduinoECCX08, ArduinoBearSSL, M5Unified<br />
<strong>Tested:</strong> PlatformIO, Arduino framework on ESP32</p>
]]></description><link>https://community.m5stack.com/topic/8058/how-to-actually-use-the-core2-aws-atecc608-with-aws-iot</link><guid isPermaLink="true">https://community.m5stack.com/topic/8058/how-to-actually-use-the-core2-aws-atecc608-with-aws-iot</guid><dc:creator><![CDATA[greenleaf]]></dc:creator><pubDate>Wed, 04 Feb 2026 13:58:12 GMT</pubDate></item><item><title><![CDATA[Detected a whitespace character]]></title><description><![CDATA[<p dir="auto">So my first steps in setting up a project with M5Stack AWS on my Mac OSX Big Sur (11.6). Installation of visual studio seems okay. When compiling the AWS IoT EduKit Getting Started PlatformIO Configuration File I get this error message</p>
]]></description><link>https://community.m5stack.com/topic/7934/detected-a-whitespace-character</link><guid isPermaLink="true">https://community.m5stack.com/topic/7934/detected-a-whitespace-character</guid><dc:creator><![CDATA[speaker]]></dc:creator><pubDate>Fri, 05 Dec 2025 11:16:48 GMT</pubDate></item><item><title><![CDATA[RTC Pins Exposed for Deep Sleep Wake?]]></title><description><![CDATA[<p dir="auto">For Core2 AWS Deep Sleep Wake:<br />
The M5Stack Core2 AWS exposes ESP32 RTC GPIOs GPIO36 (VP), GPIO39 (VN), GPIO34, GPIO35, GPIO25, GPIO26, GPIO27, and GPIO32 for external wakeup triggers. Configure via esp_sleep_enable_ext0_wakeup() or esp_sleep_enable_ext1_wakeup(). Check the Core2 pinout to avoid conflicts with built-in peripherals.</p>
<p dir="auto">Note: Some pins may require pull-up/down resistors. Test with low-power triggers (e.g., buttons) to verify wakeup reliability.</p>
]]></description><link>https://community.m5stack.com/topic/7692/rtc-pins-exposed-for-deep-sleep-wake</link><guid isPermaLink="true">https://community.m5stack.com/topic/7692/rtc-pins-exposed-for-deep-sleep-wake</guid><dc:creator><![CDATA[hacxx]]></dc:creator><pubDate>Wed, 16 Jul 2025 14:05:48 GMT</pubDate></item><item><title><![CDATA[HELP PLEASE Display Image and Play WAV File on M5Stack Core2]]></title><description><![CDATA[<p dir="auto">so what are you doing so far to display image on button press? example of your code?</p>
]]></description><link>https://community.m5stack.com/topic/7242/help-please-display-image-and-play-wav-file-on-m5stack-core2</link><guid isPermaLink="true">https://community.m5stack.com/topic/7242/help-please-display-image-and-play-wav-file-on-m5stack-core2</guid><dc:creator><![CDATA[robski]]></dc:creator><pubDate>Sun, 26 Jan 2025 22:32:26 GMT</pubDate></item><item><title><![CDATA[Core2 AWS config web server stops working]]></title><description><![CDATA[<p dir="auto">I use a web server to configure my application over WiFi. Normally it works fine with Core2 and Core3SE but not with Core2 AWS. Trying with both the old Core2 API and the new Unified.<br />
Symptoms:<br />
Launch config web server with my own SSID with IP address 192.168.5.1.<br />
The laptop (Linux Mint) connects and acquires 192.168.5.2.<br />
Connect with Firefox to <a href="http://192.168.5.1" target="_blank" rel="noopener noreferrer nofollow ugc">http://192.168.5.1</a> and the config page appears. So far so good.<br />
Fill out the config page parameters and submit the form.<br />
The page never comes back.<br />
A quick check of networking shows that the linux arp layer seems to have lost the hardware address. At first, I get the right answer, but after the form submission, the HW address comes back as &lt;incomplete&gt;.<br />
This is observed with both the original Core2 API and with the new unified API.<br />
Any suggestions? Other experiments?<br />
Thanks</p>
]]></description><link>https://community.m5stack.com/topic/7223/core2-aws-config-web-server-stops-working</link><guid isPermaLink="true">https://community.m5stack.com/topic/7223/core2-aws-config-web-server-stops-working</guid><dc:creator><![CDATA[LBertrand]]></dc:creator><pubDate>Tue, 21 Jan 2025 03:54:19 GMT</pubDate></item><item><title><![CDATA[GPIO Pins for Ports A, B and C on Core2 AWS]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/18487">@SirMichael</a><br />
<a href="https://shop.m5stack.com/products/4pin-buckled-grove-cable" target="_blank" rel="noopener noreferrer nofollow ugc">https://shop.m5stack.com/products/4pin-buckled-grove-cable</a><br />
all lengths!<br />
These are actually 'UN-buckled' type but they are an industry standard.</p>
]]></description><link>https://community.m5stack.com/topic/7026/gpio-pins-for-ports-a-b-and-c-on-core2-aws</link><guid isPermaLink="true">https://community.m5stack.com/topic/7026/gpio-pins-for-ports-a-b-and-c-on-core2-aws</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Thu, 28 Nov 2024 18:17:00 GMT</pubDate></item><item><title><![CDATA[M5Stack Core2 for AWS Text to Speech?]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I am trying the code in this post for text to speech but there is no output sound. What should I do to make this work?</p>
<p dir="auto"><a href="https://community.m5stack.com/topic/1649/how-could-i-make-text-to-speech-using-the-speaker?_=1719555088898">https://community.m5stack.com/topic/1649/how-could-i-make-text-to-speech-using-the-speaker?_=1719555088898</a></p>
<p dir="auto">Markel</p>
]]></description><link>https://community.m5stack.com/topic/6592/m5stack-core2-for-aws-text-to-speech</link><guid isPermaLink="true">https://community.m5stack.com/topic/6592/m5stack-core2-for-aws-text-to-speech</guid><dc:creator><![CDATA[mtrobregado]]></dc:creator><pubDate>Fri, 28 Jun 2024 06:20:11 GMT</pubDate></item><item><title><![CDATA[Can&#x27;t program M5Stack Core2 with USBv1.2 module, wrong boot mode detected 0x17]]></title><description><![CDATA[<p dir="auto">It still happens. Any permanent solution to the problem&gt;</p>
]]></description><link>https://community.m5stack.com/topic/6468/can-t-program-m5stack-core2-with-usbv1-2-module-wrong-boot-mode-detected-0x17</link><guid isPermaLink="true">https://community.m5stack.com/topic/6468/can-t-program-m5stack-core2-with-usbv1-2-module-wrong-boot-mode-detected-0x17</guid><dc:creator><![CDATA[mtrobregado]]></dc:creator><pubDate>Tue, 14 May 2024 05:32:24 GMT</pubDate></item><item><title><![CDATA[anyone can share M5STACK edukit for AWS&#x27;s LCD demo function in ESP-IDF explorer environment.]]></title><description><![CDATA[<p dir="auto">anyone can share M5STACK edukit for AWS's LCD demo function in ESP-IDF explorer environment.</p>
]]></description><link>https://community.m5stack.com/topic/5991/anyone-can-share-m5stack-edukit-for-aws-s-lcd-demo-function-in-esp-idf-explorer-environment</link><guid isPermaLink="true">https://community.m5stack.com/topic/5991/anyone-can-share-m5stack-edukit-for-aws-s-lcd-demo-function-in-esp-idf-explorer-environment</guid><dc:creator><![CDATA[fox1213]]></dc:creator><pubDate>Wed, 17 Jan 2024 15:15:14 GMT</pubDate></item><item><title><![CDATA[M5 Burner on Ubuntu 20.04.6 LTS issue]]></title><description><![CDATA[<p dir="auto">Did you install python3-venv ?</p>
]]></description><link>https://community.m5stack.com/topic/5923/m5-burner-on-ubuntu-20-04-6-lts-issue</link><guid isPermaLink="true">https://community.m5stack.com/topic/5923/m5-burner-on-ubuntu-20-04-6-lts-issue</guid><dc:creator><![CDATA[nefasto]]></dc:creator><pubDate>Fri, 29 Dec 2023 13:12:13 GMT</pubDate></item><item><title><![CDATA[can&#x27;t create _thread]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/41346">@m5test</a> said in <a href="/post/21119">can't create _thread</a>:</p>
<blockquote>
<p dir="auto">core2 program.</p>
</blockquote>
<p dir="auto">Same problem with core 2 program!! What should I do?</p>
]]></description><link>https://community.m5stack.com/topic/5371/can-t-create-_thread</link><guid isPermaLink="true">https://community.m5stack.com/topic/5371/can-t-create-_thread</guid><dc:creator><![CDATA[GregoryStellar]]></dc:creator><pubDate>Thu, 08 Jun 2023 01:42:49 GMT</pubDate></item><item><title><![CDATA[Question of smartconfig]]></title><description><![CDATA[<p dir="auto">Does your mobile phone or tablet show a new wifi station that you can access?</p>
<p dir="auto">Edit: change the dropdown box from station to acc-point then try again. if you run a wifi scan on a device you will now find a new esp device.</p>
]]></description><link>https://community.m5stack.com/topic/5327/question-of-smartconfig</link><guid isPermaLink="true">https://community.m5stack.com/topic/5327/question-of-smartconfig</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Mon, 22 May 2023 11:15:07 GMT</pubDate></item><item><title><![CDATA[I2C Sensor doesn&#x27;t work on PortA on Core2 AWS]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I am using this lib and example:<br />
<a href="https://github.com/m5stack/M5-DLight/blob/master/examples/Unit_DLight_M5Core2/Unit_DLight_M5Core2.ino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5-DLight/blob/master/examples/Unit_DLight_M5Core2/Unit_DLight_M5Core2.ino</a><br />
The reading is always 65535, and seems like the I2C port doesn't initiate!<br />
I connected the sensor on a general Arduino board and was reading the data so it is definitely something with the Core2 not reading the I2C portA.<br />
I ve also tried sensor.begin(&amp;Wire, 32, 33) to explicitely specify the external I2C on Core 2 but didn't work<br />
Would love some help!</p>
]]></description><link>https://community.m5stack.com/topic/5158/i2c-sensor-doesn-t-work-on-porta-on-core2-aws</link><guid isPermaLink="true">https://community.m5stack.com/topic/5158/i2c-sensor-doesn-t-work-on-porta-on-core2-aws</guid><dc:creator><![CDATA[LVangelis]]></dc:creator><pubDate>Thu, 23 Mar 2023 21:23:14 GMT</pubDate></item><item><title><![CDATA[Core2 for AWS is no longer entering bootloader mode]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/443">@ajb2k3</a> Well, this had nothing to do with the OS this time. But yeah, Ive had my own code, compiled as an EXE, promptly quarantined by the over-zealous anti-malware system. My employer takes security...very very seriously. To the point where software guys like myself get frustrated over things like this.</p>
<p dir="auto">But still, it was unnerving to be contacted by our cybersecurity team on the other side of the planet, telling me I'd set off alarms from several thousands of kilometers away, just from playing with my new m5stack devices I'd received that day, and that I'd have to have my machine scrubbed.</p>
<p dir="auto">But it looks like nothing has come of it, and was a false alarm. I'll just stick to using them at home instead of at work. I could never get M5burner to work through the layers of security anyway.</p>
<p dir="auto">BTW, Ive succeeded in geting both UIFlow1 and UIFlow2 working on my Core2 AWS. I basically bought it to use with UIFlow1 until UIFlow2 is more complete. Now I can use all my "only supported by UIFlow1" bits, while UIFlow2 grows.</p>
]]></description><link>https://community.m5stack.com/topic/5103/core2-for-aws-is-no-longer-entering-bootloader-mode</link><guid isPermaLink="true">https://community.m5stack.com/topic/5103/core2-for-aws-is-no-longer-entering-bootloader-mode</guid><dc:creator><![CDATA[mtylerjr]]></dc:creator><pubDate>Sat, 04 Mar 2023 14:24:39 GMT</pubDate></item><item><title><![CDATA[M5Stack Core2 with M5Stack COMMU Module]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/35290">@ratchapolp</a></p>
<p dir="auto">please see note <a href="https://docs.m5stack.com/en/module/commu" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>:</p>
<p dir="auto">Note:<br />
When using with the Core2, the base needs to be removed in order to burn the program properly.</p>
<p dir="auto">This has been discussed in this <a href="https://community.m5stack.com/topic/2616/core-2-and-commu">thread</a> as well.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/topic/5074/m5stack-core2-with-m5stack-commu-module</link><guid isPermaLink="true">https://community.m5stack.com/topic/5074/m5stack-core2-with-m5stack-commu-module</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 23 Feb 2023 03:46:33 GMT</pubDate></item><item><title><![CDATA[Can&#x27;t load program modifications...]]></title><description><![CDATA[<p dir="auto">Slow response could be down to having the wrong baud speed set. UIFlow is built on Micropython and so does support multi files like arduino. Checkout Micropython. Org</p>
<p dir="auto">Esp is not like the arduino as instead of having functions permanently assigned to a pin, the esp using a matrix to assign functions to pins</p>
]]></description><link>https://community.m5stack.com/topic/4875/can-t-load-program-modifications</link><guid isPermaLink="true">https://community.m5stack.com/topic/4875/can-t-load-program-modifications</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Fri, 09 Dec 2022 20:05:31 GMT</pubDate></item><item><title><![CDATA[Core2: AWS IoT Core stop publishing after a while 20 seconds of running. UI screen still being updated.]]></title><description><![CDATA[<p dir="auto">Core2: AWS IoT Core stop publishing after a while 20 seconds of running. UI screen still being updated.</p>
<p dir="auto">I'm using UIFlow.</p>
]]></description><link>https://community.m5stack.com/topic/4820/core2-aws-iot-core-stop-publishing-after-a-while-20-seconds-of-running-ui-screen-still-being-updated</link><guid isPermaLink="true">https://community.m5stack.com/topic/4820/core2-aws-iot-core-stop-publishing-after-a-while-20-seconds-of-running-ui-screen-still-being-updated</guid><dc:creator><![CDATA[VincentV]]></dc:creator><pubDate>Fri, 18 Nov 2022 08:16:34 GMT</pubDate></item><item><title><![CDATA[AWS Core2 will not power on...just makes a noise when the power on button is pressed]]></title><description><![CDATA[<p dir="auto">hey ajb2k3, I have python 3.10 and MaxOS monterey 12.6.1. When i click on the Erase, it get the error in the screenshot or the 3 dots indicating a process is in progress but the process loops indefinitely. Not sure what process is looping but it seems M5burner is trying to connect to the com port of the Core 2 but never gets a response.</p>
<p dir="auto">might be an OS bug as I swapped over to a windows laptop and i was able to download the image but after hard resetting the usb c to stay up - article <a href="https://community.m5stack.com/topic/4556/put-m5-shutdown-in-void-loop-keeps-shutting-down/4">here</a></p>
<p dir="auto">I have a working Core 2 again - happy user :-)</p>
]]></description><link>https://community.m5stack.com/topic/4798/aws-core2-will-not-power-on-just-makes-a-noise-when-the-power-on-button-is-pressed</link><guid isPermaLink="true">https://community.m5stack.com/topic/4798/aws-core2-will-not-power-on-just-makes-a-noise-when-the-power-on-button-is-pressed</guid><dc:creator><![CDATA[ravinmat]]></dc:creator><pubDate>Sat, 12 Nov 2022 14:31:03 GMT</pubDate></item><item><title><![CDATA[Error compiling for board M5Stack-Core2]]></title><description><![CDATA[<p dir="auto">See here: <a href="https://community.m5stack.com/topic/4690/executable-file-not-found-in-path">https://community.m5stack.com/topic/4690/executable-file-not-found-in-path</a></p>
]]></description><link>https://community.m5stack.com/topic/4582/error-compiling-for-board-m5stack-core2</link><guid isPermaLink="true">https://community.m5stack.com/topic/4582/error-compiling-for-board-m5stack-core2</guid><dc:creator><![CDATA[rcoppens]]></dc:creator><pubDate>Sat, 03 Sep 2022 06:51:30 GMT</pubDate></item><item><title><![CDATA[Put M5.shutdown in Void loop -keeps shutting down]]></title><description><![CDATA[<p dir="auto">Felix,<br />
It worked!  Thank You so much! I thought I made the most expensive Lego brick in the world! HA HA. In all my years playing with the UNO I never found a way of shutting down through code. If I did I might of given up on IOT.<br />
Thanks,<br />
Trent</p>
]]></description><link>https://community.m5stack.com/topic/4556/put-m5-shutdown-in-void-loop-keeps-shutting-down</link><guid isPermaLink="true">https://community.m5stack.com/topic/4556/put-m5-shutdown-in-void-loop-keeps-shutting-down</guid><dc:creator><![CDATA[TrentD]]></dc:creator><pubDate>Tue, 23 Aug 2022 13:55:33 GMT</pubDate></item><item><title><![CDATA[M5Core2 AWS with COM.X Zigbee Module]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/24393">@earthphisek</a></p>
<p dir="auto">I do not have the COM.X Zigbee module so I cannot test this myself. However with the following modifications the M5Stack <a href="https://github.com/m5stack/M5Stack/tree/master/examples/Modules/COM_Zigbee_CC2630/RSSI_TEST" target="_blank" rel="noopener noreferrer nofollow ugc">example</a> should work with an M5Core2 too.</p>

Replace #define &lt;M5Stack.h&gt; with #define &lt;M5Core2.h&gt;.
Replace Serial2.begin(38400, SERIAL_8N1, 16, 17); with Serial2.begin(38400, SERIAL_8N1, 13, 14);.

<p dir="auto">Hardware: in the COM.X Zigbee module set the two dip switches 16 and 17 to on and leave the other four in off position.</p>
<p dir="auto">Explanation: On the M5Core2 GPIO16 and GPIO17 have been replaced with GPIO13 and GPIO14. But the labeling in most modules still follow the numbering used with M5Stack devices.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/topic/4542/m5core2-aws-with-com-x-zigbee-module</link><guid isPermaLink="true">https://community.m5stack.com/topic/4542/m5core2-aws-with-com-x-zigbee-module</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 20 Aug 2022 07:10:41 GMT</pubDate></item><item><title><![CDATA[Edukit ATECC608B &amp; AWS IOT &amp; UiFlow]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a> thanks for letting me know. It’s been stable for the testing but I’m yet to move beyond. I tried looking at provisioning for vets and codes but my brain is not taking it in hence the low level MP stuff.</p>
<p dir="auto">I’m sure there will s an issue with MP but I don’t deal directly and not getting feedback from <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1">@m5stack</a> or <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/3966">@IAMLIUBO</a></p>
]]></description><link>https://community.m5stack.com/topic/4496/edukit-atecc608b-aws-iot-uiflow</link><guid isPermaLink="true">https://community.m5stack.com/topic/4496/edukit-atecc608b-aws-iot-uiflow</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Mon, 01 Aug 2022 19:51:11 GMT</pubDate></item><item><title><![CDATA[Read RFID 2 (WS1850S) from Core2 for AWS]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Can someone help me with code to ready RFID uid from Core2 for AWS using WS1850S?<br />
I am using Core2ForAWS_Port_A_I2C_Read but I am unable to read anything from RFID.<br />
It would be very helpful if you can share a working code example in C.</p>
]]></description><link>https://community.m5stack.com/topic/4387/read-rfid-2-ws1850s-from-core2-for-aws</link><guid isPermaLink="true">https://community.m5stack.com/topic/4387/read-rfid-2-ws1850s-from-core2-for-aws</guid><dc:creator><![CDATA[hsiledar]]></dc:creator><pubDate>Wed, 22 Jun 2022 22:22:10 GMT</pubDate></item><item><title><![CDATA[Troubleshooting  Core2forAWS: ATECC608 secure element initialization error!]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I am trying to use my new M5stack Core 2 for AWS following these workshops: <a href="https://edukit.workshop.aws/en/getting-started.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://edukit.workshop.aws/en/getting-started.html</a>.</p>
<p dir="auto">I have tested the ESP RainMaker Agent and cloud connected “blinky". However, when the code is building on my M5Stack I get an abort message and the screen of my device remains white. The error I get is:</p>
<p dir="auto">␛[0;31mE (22572) Core2forAWS: ATECC608 secure element initialization error!␛[0m</p>
<p dir="auto">abort() was called at PC 0x400d51c3 on core 0***</p>
<p dir="auto">Does any one have had dis problem or knows how to troubleshoot?</p>
<p dir="auto">Here I paste the terminal output.</p>
<p dir="auto">pio run --environment core2foraws --target upload --target monitor</p>
<p dir="auto">Processing core2foraws (platform: espressif32@3.2.1; framework: espidf; board: m5stack-core2)<br />
Verbose mode can be enabled via <code>-v, --verbose</code> option<br />
CONFIGURATION: <a href="https://docs.platformio.org/page/boards/espressif32/m5stack-core2.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.platformio.org/page/boards/espressif32/m5stack-core2.html</a><br />
PLATFORM: Espressif 32 (3.2.1) &gt; M5Stack Core2<br />
HARDWARE: ESP32 240MHz, 6.25MB RAM, 16MB Flash<br />
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)<br />
PACKAGES:</p>
<ul>
<li>framework-espidf @ 3.40201.210513 (4.2.1)</li>
<li>tool-cmake @ 3.16.4</li>
<li>tool-esptoolpy @ 1.30000.201119 (3.0.0)</li>
<li>tool-mkspiffs @ 2.230.0 (2.30)</li>
<li>tool-ninja @ 1.9.0</li>
<li>toolchain-esp32ulp @ 1.22851.191205 (2.28.51)</li>
<li>toolchain-xtensa32 @ 2.80400.210211 (8.4.0)<br />
Reading CMake configuration...<br />
LDF: Library Dependency Finder -&gt; <a href="https://bit.ly/configure-pio-ldf" target="_blank" rel="noopener noreferrer nofollow ugc">https://bit.ly/configure-pio-ldf</a><br />
LDF Modes: Finder ~ chain, Compatibility ~ soft<br />
Found 0 compatible libraries<br />
Scanning dependencies...<br />
No dependencies<br />
Building in release mode<br />
Linking .pio/build/core2foraws/firmware.elf<br />
Retrieving maximum program size .pio/build/core2foraws/firmware.elf<br />
Checking size .pio/build/core2foraws/firmware.elf<br />
Advanced Memory Usage is available via "PlatformIO Home &gt; Project Inspect"<br />
RAM:   [          ]   0.9% (used 56112 bytes from 6553600 bytes)<br />
Flash: [==        ]  15.5% (used 1014972 bytes from 6553600 bytes)<br />
Configuring upload protocol...<br />
AVAILABLE: esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa<br />
CURRENT: upload_protocol = esptool<br />
Looking for upload port...<br />
Auto-detected: /dev/cu.SLAB_USBtoUART<br />
Uploading .pio/build/core2foraws/firmware.bin<br />
<a href="http://esptool.py" target="_blank" rel="noopener noreferrer nofollow ugc">esptool.py</a> v3.0<br />
Serial port /dev/cu.SLAB_USBtoUART<br />
Connecting....<br />
Chip is ESP32-D0WDQ6-V3 (revision 3)<br />
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None<br />
Crystal is 40MHz<br />
MAC: 30:c6:f7:1d:11:c0<br />
Uploading stub...<br />
Running stub...<br />
Stub running...<br />
Changing baud rate to 2000000<br />
Changed.<br />
Configuring flash size...<br />
Auto-detected Flash size: 16MB<br />
Compressed 25184 bytes to 15298...<br />
Writing at 0x00001000... (100 %)<br />
Wrote 25184 bytes (15298 compressed) at 0x00001000 in 0.1 seconds (effective 1597.1 kbit/s)...<br />
Hash of data verified.<br />
Compressed 3072 bytes to 148...<br />
Writing at 0x00008000... (100 %)<br />
Wrote 3072 bytes (148 compressed) at 0x00008000 in 0.0 seconds (effective 2284.7 kbit/s)...<br />
Hash of data verified.<br />
Compressed 1015088 bytes to 638561...<br />
Writing at 0x00010000... (2 %)<br />
Writing at 0x00014000... (5 %)<br />
Writing at 0x00018000... (7 %)<br />
Writing at 0x0001c000... (10 %)<br />
Writing at 0x00020000... (12 %)<br />
Writing at 0x00024000... (15 %)<br />
Writing at 0x00028000... (17 %)<br />
Writing at 0x0002c000... (20 %)<br />
Writing at 0x00030000... (23 %)<br />
Writing at 0x00034000... (25 %)<br />
Writing at 0x00038000... (28 %)<br />
Writing at 0x0003c000... (30 %)<br />
Writing at 0x00040000... (33 %)<br />
Writing at 0x00044000... (35 %)<br />
Writing at 0x00048000... (38 %)<br />
Writing at 0x0004c000... (41 %)<br />
Writing at 0x00050000... (43 %)<br />
Writing at 0x00054000... (46 %)<br />
Writing at 0x00058000... (48 %)<br />
Writing at 0x0005c000... (51 %)<br />
Writing at 0x00060000... (53 %)<br />
Writing at 0x00064000... (56 %)<br />
Writing at 0x00068000... (58 %)<br />
Writing at 0x0006c000... (61 %)<br />
Writing at 0x00070000... (64 %)<br />
Writing at 0x00074000... (66 %)<br />
Writing at 0x00078000... (69 %)<br />
Writing at 0x0007c000... (71 %)<br />
Writing at 0x00080000... (74 %)<br />
Writing at 0x00084000... (76 %)<br />
Writing at 0x00088000... (79 %)<br />
Writing at 0x0008c000... (82 %)<br />
Writing at 0x00090000... (84 %)<br />
Writing at 0x00094000... (87 %)<br />
Writing at 0x00098000... (89 %)<br />
Writing at 0x0009c000... (92 %)<br />
Writing at 0x000a0000... (94 %)<br />
Writing at 0x000a4000... (97 %)<br />
Writing at 0x000a8000... (100 %)<br />
Wrote 1015088 bytes (638561 compressed) at 0x00010000 in 10.1 seconds (effective 807.7 kbit/s)...<br />
Hash of data verified.</li>
</ul>
<p dir="auto">Leaving...<br />
Hard resetting via RTS pin...<br />
======================================================= [SUCCESS] Took 37.79 seconds =======================================================<br />
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time<br />
--- More details at <a href="https://bit.ly/pio-monitor-filters" target="_blank" rel="noopener noreferrer nofollow ugc">https://bit.ly/pio-monitor-filters</a><br />
--- Miniterm on /dev/cu.SLAB_USBtoUART  115200,8,N,1 ---<br />
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---<br />
␛[0;32mI (1055) spiram: SPI SRAM memory test OK␛[0m<br />
␛[0;32mI (1056) heap_init: Initializing. RAM available for dynamic allocation:␛[0m<br />
␛[0;32mI (1056) heap_init: At 3FFAE6E0 len 0000F480 (61 KiB): DRAM␛[0m<br />
␛[0;32mI (1062) heap_init: At 3FFCB690 len 00014970 (82 KiB): DRAM␛[0m<br />
␛[0;32mI (1068) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM␛[0m<br />
␛[0;32mI (1075) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM␛[0m<br />
␛[0;32mI (1081) heap_init: At 40093A30 len 0000C5D0 (49 KiB): IRAM␛[0m<br />
␛[0;32mI (1088) cpu_start: Pro cpu start user code␛[0m<br />
␛[0;32mI (1092) spiram: Adding pool of 4082K of external SPI memory to heap allocator␛[0m<br />
␛[0;32mI (1113) spi_flash: detected chip: generic␛[0m<br />
␛[0;32mI (1114) spi_flash: flash io: dio␛[0m<br />
␛[0;32mI (1114) cpu_start: Starting scheduler on PRO CPU.␛[0m<br />
␛[0;32mI (0) cpu_start: Starting scheduler on APP CPU.␛[0m<br />
␛[0;32mI (1122) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations␛[0m<br />
␛[0;32mI (1342) ILI9341: Initialization.␛[0m<br />
␛[0;32mI (1542) ILI9341: Display orientation: LANDSCAPE␛[0m<br />
␛[0;32mI (1542) ILI9341: 0x36 command value: 0x08␛[0m<br />
␛[0;32mI (1542) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 1| Intr:3 ␛[0m<br />
␛[0;32mI (1552) atecc608: Seeding the random number generator...␛[0m<br />
␛[0;32mI (1552) atecc608: ok␛[0m<br />
components/esp-cryptoauthlib/cryptoauthlib/lib/calib/calib_read.c:103:f0:calib_read_zone - execution failed<br />
components/esp-cryptoauthlib/cryptoauthlib/lib/calib/calib_read.c:619:f0:calib_read_zone - falied<br />
␛[0;32mI (22562) atecc608: Initializing ATECC608 secure element␛[0m<br />
␛[0;32mI (22572) atecc608: <em>FAILED</em> atcab_init returned f0␛[0m<br />
␛[0;31mE (22572) Core2forAWS: ATECC608 secure element initialization error!␛[0m</p>
<p dir="auto">abort() was called at PC 0x400d51c3 on core 0</p>
<p dir="auto">Backtrace:0x4008bad7:0x3ffb1e20 0x4008c181:0x3ffb1e40 0x40090306:0x3ffb1e60 0x400d51c3:0x3ffb1ed0 0x400d270b:0x3ffb1f10 0x400fe605:0x3ffb1f40 0x4008c189:0x3ffb1f70</p>
<p dir="auto">ELF file SHA256: 38b4676c834503a7</p>
<p dir="auto">Rebooting...</p>
]]></description><link>https://community.m5stack.com/topic/4342/troubleshooting-core2foraws-atecc608-secure-element-initialization-error</link><guid isPermaLink="true">https://community.m5stack.com/topic/4342/troubleshooting-core2foraws-atecc608-secure-element-initialization-error</guid><dc:creator><![CDATA[lciaan]]></dc:creator><pubDate>Sun, 05 Jun 2022 14:49:49 GMT</pubDate></item><item><title><![CDATA[I2C Problem with capacitive touch]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/18971">@university123</a></p>
<p dir="auto">could you post your code? Using UiFlow I've put together a simple program which reads the touch state and x and y coordinates of the MPU6886 in a loop just fine and I do not encounter any lockup when I touch the screen. See below:</p>
from m5stack import *
from m5stack_ui import *
from uiflow import *
from m5stack import touch
import imu

screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)

imu0 = imu.IMU()

label0 = M5Label('Text', x=24, y=24, color=0x000, font=FONT_MONT_26, parent=None)
label1 = M5Label('Text', x=23, y=86, color=0x000, font=FONT_MONT_26, parent=None)
label2 = M5Label('Text', x=151, y=86, color=0x000, font=FONT_MONT_26, parent=None)

while True:
  label0.set_text(str(touch.status()))
  label1.set_text(str(imu0.ypr[1]))
  label2.set_text(str(imu0.ypr[2]))
  wait_ms(2)

<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/topic/4191/i2c-problem-with-capacitive-touch</link><guid isPermaLink="true">https://community.m5stack.com/topic/4191/i2c-problem-with-capacitive-touch</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 06 Apr 2022 16:10:37 GMT</pubDate></item></channel></rss>