<?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[Building Core2 FactoryDemo in PlatformIO]]></title><description><![CDATA[<p dir="auto">If anyone else is trying to do this you'll need to fix your partition table to take advantage of the larger memory.  The steps how to do this are:</p>
<ol>
<li>Go to PIO Home in Visual Studio Code</li>
<li>Click on <code>+New Project</code></li>
<li>Name it m5core2 or similar. Choose <code>M5Stack Core ESP32</code> for the board.</li>
<li>Leave Framework set to Arduino.</li>
<li>Open your platformio.ini file and replace the text with this:</li>
</ol>
<pre><code>[env:m5stack-core-esp32]
platform = espressif32
board = m5stack-core-esp32
framework = arduino
; &lsqb;&lsqb;[for macos&rsqb;&rsqb;]
;upload_port = /dev/cu.SLAB_USBtoUART
; &lsqb;&lsqb;[fix PSRAM size and you won't need have this file&rsqb;&rsqb;]
board_build.partitions = default_16MB.csv
build_flags =
    -DBOARD_HAS_PSRAM
    -mfix-esp32-psram-cache-issue
</code></pre>
<ol start="6">
<li>Copy the 16MB partition table file into your src directory. You can download this file here:</li>
</ol>
<p dir="auto"><a href="https://github.com/espressif/arduino-esp32/blob/master/tools/partitions/default_16MB.csv" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/espressif/arduino-esp32/blob/master/tools/partitions/default_16MB.csv</a></p>
<ol start="7">
<li>In the 'lib' directory you will need three libraries.<br />
FastLED - <a href="https://github.com/FastLED/FastLED" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/FastLED/FastLED</a><br />
M5Core2 - <a href="https://github.com/m5stack/M5Core2" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Core2</a><br />
ArduinoECCX08 - This one is in a zip file in the M5Core2 library repo:<br />
<a href="https://github.com/m5stack/M5Core2/blob/master/examples/core2_for_aws/ArduinoECCX08.zip" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Core2/blob/master/examples/core2_for_aws/ArduinoECCX08.zip</a></li>
</ol>
<p dir="auto">Your lib directory should look like this when you're done:<br />
<img src="/assets/uploads/files/1609802769209-40f76186-abcc-4a68-916a-468a37b4451a-image.png" alt="0_1609802773703_40f76186-abcc-4a68-916a-468a37b4451a-image.png" class=" img-fluid img-markdown" /></p>
<ol start="8">
<li>Now copy everything from the example FactoryTest directory in the M5Core2 library into your <code>src</code> folder.  The directory files can be viewed here:</li>
</ol>
<p dir="auto"><a href="https://github.com/m5stack/M5Core2/tree/master/examples/core2_for_aws/FactoryTest" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Core2/tree/master/examples/core2_for_aws/FactoryTest</a></p>
<ol start="9">
<li>
<p dir="auto">Rename FactoryTest.ino to main.cpp</p>
</li>
<li>
<p dir="auto">Edit main.cpp and comment out these two lines with <code>//</code>. These tests will fail if you don't have an SDCard or something plugged into the IO port.</p>
</li>
</ol>
<p dir="auto"><img src="/assets/uploads/files/1609802939901-e768774e-f0f1-419b-a751-2b40e2db3122-image.png" alt="0_1609802944350_e768774e-f0f1-419b-a751-2b40e2db3122-image.png" class=" img-fluid img-markdown" /></p>
<ol start="11">
<li>
<p dir="auto">Connect your M5Core2 and build/upload. You can do CTRL-Shift-P to find the Platformio:Upload option.</p>
</li>
<li>
<p dir="auto">Play with the cool factory demo!</p>
</li>
</ol>
<p dir="auto"><img src="/assets/uploads/files/1609803298975-m5-resized.jpg" alt="0_1609803302370_m5.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">Thanks to jokercatz for the tip on fixing the platform:<br />
<a href="http://jokercatz.blogspot.com/2020/11/m5stack-core2-build-from-platformio.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://jokercatz.blogspot.com/2020/11/m5stack-core2-build-from-platformio.html</a></p>
]]></description><link>https://community.m5stack.com/topic/2697/building-core2-factorydemo-in-platformio</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Mar 2026 11:26:54 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2697.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Jan 2021 23:38:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Building Core2 FactoryDemo in PlatformIO on Sun, 24 Mar 2024 19:58:35 GMT]]></title><description><![CDATA[<p dir="auto">bool Device = 1;  // Please select your device<br />
// Core2 = 1,Core2_AWS = 0;</p>
<p dir="auto">I Chaged from 0 to 1</p>
]]></description><link>https://community.m5stack.com/post/24562</link><guid isPermaLink="true">https://community.m5stack.com/post/24562</guid><dc:creator><![CDATA[fundix]]></dc:creator><pubDate>Sun, 24 Mar 2024 19:58:35 GMT</pubDate></item><item><title><![CDATA[Reply to Building Core2 FactoryDemo in PlatformIO on Sat, 15 Jul 2023 18:25:55 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, I needed this so much!</p>
]]></description><link>https://community.m5stack.com/post/21587</link><guid isPermaLink="true">https://community.m5stack.com/post/21587</guid><dc:creator><![CDATA[quincy]]></dc:creator><pubDate>Sat, 15 Jul 2023 18:25:55 GMT</pubDate></item><item><title><![CDATA[Reply to Building Core2 FactoryDemo in PlatformIO on Sun, 28 Feb 2021 02:11:30 GMT]]></title><description><![CDATA[<p dir="auto">There are pin differences for some of the features, but yes you can disable the atecc608 part of the code.</p>
]]></description><link>https://community.m5stack.com/post/12709</link><guid isPermaLink="true">https://community.m5stack.com/post/12709</guid><dc:creator><![CDATA[rashedtalukder]]></dc:creator><pubDate>Sun, 28 Feb 2021 02:11:30 GMT</pubDate></item><item><title><![CDATA[Reply to Building Core2 FactoryDemo in PlatformIO on Sat, 27 Feb 2021 10:24:54 GMT]]></title><description><![CDATA[<p dir="auto">I found the actual Factory Test code for the Core 2 as this example is for the AWS Core 2<br />
<a href="https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Core/M5Core2/Arduino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Core/M5Core2/Arduino</a></p>
]]></description><link>https://community.m5stack.com/post/12700</link><guid isPermaLink="true">https://community.m5stack.com/post/12700</guid><dc:creator><![CDATA[jimwsmith]]></dc:creator><pubDate>Sat, 27 Feb 2021 10:24:54 GMT</pubDate></item><item><title><![CDATA[Reply to Building Core2 FactoryDemo in PlatformIO on Fri, 26 Feb 2021 17:51:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/2625">@rashedtalukder</a> Actually if you comment out the code checking for AT608A chip it works on plain Core 2</p>
]]></description><link>https://community.m5stack.com/post/12689</link><guid isPermaLink="true">https://community.m5stack.com/post/12689</guid><dc:creator><![CDATA[jimwsmith]]></dc:creator><pubDate>Fri, 26 Feb 2021 17:51:02 GMT</pubDate></item><item><title><![CDATA[Reply to Building Core2 FactoryDemo in PlatformIO on Mon, 15 Feb 2021 21:31:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/5798">@greenleaf</a> said in <a href="/post/11543">Building Core2 FactoryDemo in PlatformIO</a>:</p>
<blockquote>
<p dir="auto"><a href="http://jokercatz.blogspot.com/2020/11/m5stack-core2-build-from-platformio.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://jokercatz.blogspot.com/2020/11/m5stack-core2-build-from-platformio.html</a></p>
</blockquote>
<p dir="auto">Thanks for the guidance.<br />
How could this be adjusted for the M5AtomLite, M5Stack Basic and M5Paper ?</p>
]]></description><link>https://community.m5stack.com/post/12509</link><guid isPermaLink="true">https://community.m5stack.com/post/12509</guid><dc:creator><![CDATA[DannyG86]]></dc:creator><pubDate>Mon, 15 Feb 2021 21:31:12 GMT</pubDate></item><item><title><![CDATA[Reply to Building Core2 FactoryDemo in PlatformIO on Thu, 21 Jan 2021 15:53:48 GMT]]></title><description><![CDATA[<p dir="auto">This is specifically for the Core2 for AWS IoT EduKit hardware. The regular Core2 and/or the standard M5Go bottom will not work with this firmware.</p>
]]></description><link>https://community.m5stack.com/post/11916</link><guid isPermaLink="true">https://community.m5stack.com/post/11916</guid><dc:creator><![CDATA[rashedtalukder]]></dc:creator><pubDate>Thu, 21 Jan 2021 15:53:48 GMT</pubDate></item><item><title><![CDATA[Reply to Building Core2 FactoryDemo in PlatformIO on Wed, 20 Jan 2021 08:10:39 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/5798">@greenleaf</a> Are you using the M5GO Battery Bottom2? Tried following your step-by-step and it is just stuck at AT608A Check failed.</p>
<p dir="auto">Mine is core2 without the battery bottom.</p>
<p dir="auto">Thanks,<br />
smua</p>
]]></description><link>https://community.m5stack.com/post/11904</link><guid isPermaLink="true">https://community.m5stack.com/post/11904</guid><dc:creator><![CDATA[smuasini]]></dc:creator><pubDate>Wed, 20 Jan 2021 08:10:39 GMT</pubDate></item><item><title><![CDATA[Reply to Building Core2 FactoryDemo in PlatformIO on Mon, 18 Jan 2021 17:25:19 GMT]]></title><description><![CDATA[<p dir="auto">There are modifications that need to be done to use all the examples with PlatformIO. Currently we are requiring the use of ESP-IDF v4.2 and at the moment PlatformIO only supports 4.1. You could modify the projects and they should work:</p>
<ul>
<li>Rename the "main" directory to "src"</li>
<li>Possibly update cmakelists.txt files (depends on example)</li>
</ul>
]]></description><link>https://community.m5stack.com/post/11849</link><guid isPermaLink="true">https://community.m5stack.com/post/11849</guid><dc:creator><![CDATA[rashedtalukder]]></dc:creator><pubDate>Mon, 18 Jan 2021 17:25:19 GMT</pubDate></item><item><title><![CDATA[Reply to Building Core2 FactoryDemo in PlatformIO on Sun, 17 Jan 2021 17:02:34 GMT]]></title><description><![CDATA[<p dir="auto">Could i build and upload every example ( in my case the Core2 AWS ) with platform IO or i need to use <a href="http://idf.py" target="_blank" rel="noopener noreferrer nofollow ugc">idf.py</a> from ESP-IDF ?<br />
When i use platform IO i already have the ESP-IDF install i suppose.</p>
<p dir="auto">In all cases i need it to edit the configuration with the command "<a href="http://idf.py" target="_blank" rel="noopener noreferrer nofollow ugc">idf.py</a> menuconfig" (right?), example in this step <a href="https://edukit.workshop.aws/en/blinky-hello-world/connecting-to-aws.html#configuring-the-esp32-firmware" target="_blank" rel="noopener noreferrer nofollow ugc">https://edukit.workshop.aws/en/blinky-hello-world/connecting-to-aws.html#configuring-the-esp32-firmware</a></p>
]]></description><link>https://community.m5stack.com/post/11845</link><guid isPermaLink="true">https://community.m5stack.com/post/11845</guid><dc:creator><![CDATA[masterPen6]]></dc:creator><pubDate>Sun, 17 Jan 2021 17:02:34 GMT</pubDate></item><item><title><![CDATA[Reply to Building Core2 FactoryDemo in PlatformIO on Wed, 13 Jan 2021 02:43:43 GMT]]></title><description><![CDATA[<p dir="auto">Great post! thank you for sharing your with us your knowledge, will be pretty useful for many users over here.</p>
]]></description><link>https://community.m5stack.com/post/11696</link><guid isPermaLink="true">https://community.m5stack.com/post/11696</guid><dc:creator><![CDATA[Zontex]]></dc:creator><pubDate>Wed, 13 Jan 2021 02:43:43 GMT</pubDate></item></channel></rss>