<?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[getting started with Core2 and stuck.]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">I just got my hands on a couple Core 2 which I plan to use on my Mac (Intel Core I9, Monterey 12.6.7) with the Arduino environment - both the IDE Version: 2.1.1 and 1.8.19</p>
<p dir="auto">I followed the guidelines I found at <a href="https://docs.m5stack.com/en/quick_start/core2/arduino" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/en/quick_start/core2/arduino</a> to configure my Arduino environment</p>
<p dir="auto">When trying to compile  a very simple code that does nothing</p>
<pre><code>void setup() {}
void loop() {}
</code></pre>
<p dir="auto">there is no issue, the process works</p>
<p dir="auto">but when I try to just add the include for the M5Core2</p>
<pre><code>#include &lt;M5Core2.h&gt;
void setup() {}
void loop() {}
</code></pre>
<p dir="auto">and try to compile again</p>
<ul>
<li>it first starts OK</li>
<li>then I get tons of warnings related to<br />
<code>missing initializer for member 'GFXfont::smooth_bpp</code><br />
or<br />
<code>warning: missing initializer for member 'GFXfont::range'</code></li>
<li>then it continues</li>
<li>then I get more warnings in the RTC code or other modules  like<br />
<code>M5Core2/src/RTC.cpp:221:30: warning: comparison is always true due to limited range of data type</code></li>
<li>then I get a bunch of warning for the fonts such as<br />
<code>warning: missing initializer for member 'GFXfont::smooth_bpp'</code></li>
<li>and a last one about<br />
<code>.../M5Core2/src/Fonts/glcdfont.c:10:28: error: 'font' defined but not used [-Werror=unused-const-variable=] static const unsigned char font[] PROGMEM = {                           ^~~~</code><br />
<code>cc1: some warnings being treated as errors</code></li>
</ul>
<p dir="auto">and then the compilation process ends with<br />
<code>exit status 1</code><br />
<code>Erreur de compilation pour la carte M5Stack-Core2</code></p>
<p dir="auto">I suspect the issue is due to compiler flags as I've seen that report<br />
<code>cc1: some warnings being treated as errors</code></p>
<p dir="auto">How to solve that ?</p>
<p dir="auto">Anyone using Core2 in the Arduino environment should be affected if this is the root cause but I could not find specific complaints about this.</p>
<p dir="auto">What did I miss?</p>
<p dir="auto">thx</p>
]]></description><link>https://community.m5stack.com/topic/5525/getting-started-with-core2-and-stuck</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 10:04:05 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5525.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Jul 2023 18:13:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to getting started with Core2 and stuck. on Mon, 31 Jul 2023 14:59:33 GMT]]></title><description><![CDATA[<p dir="auto">actually just tried and it has similar issues. If you compile some of the examples with all warnings turned on in the IDE, the compiler stops</p>
<pre><code>error: unused variable 'names' [-Werror=unused-variable]
   static constexpr const char* const names[] = { "none", "wasHold", "wasClicked", "wasPressed", "wasReleased", "wasDeciedCount" };
                                      ^~~~~
cc1plus: some warnings being treated as errors
</code></pre>
]]></description><link>https://community.m5stack.com/post/21741</link><guid isPermaLink="true">https://community.m5stack.com/post/21741</guid><dc:creator><![CDATA[jmarduino]]></dc:creator><pubDate>Mon, 31 Jul 2023 14:59:33 GMT</pubDate></item><item><title><![CDATA[Reply to getting started with Core2 and stuck. on Mon, 31 Jul 2023 14:42:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/notinthemafia" aria-label="Profile: notinthemafia">@<bdi>notinthemafia</bdi></a> thanks for the hint</p>
]]></description><link>https://community.m5stack.com/post/21740</link><guid isPermaLink="true">https://community.m5stack.com/post/21740</guid><dc:creator><![CDATA[jmarduino]]></dc:creator><pubDate>Mon, 31 Jul 2023 14:42:12 GMT</pubDate></item><item><title><![CDATA[Reply to getting started with Core2 and stuck. on Thu, 27 Jul 2023 17:31:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jmarduino" aria-label="Profile: jmarduino">@<bdi>jmarduino</bdi></a> save yourself trouble of converting your code later and use the M5Unified library, not M5Core2.</p>
]]></description><link>https://community.m5stack.com/post/21719</link><guid isPermaLink="true">https://community.m5stack.com/post/21719</guid><dc:creator><![CDATA[NotInTheMafia]]></dc:creator><pubDate>Thu, 27 Jul 2023 17:31:51 GMT</pubDate></item><item><title><![CDATA[Reply to getting started with Core2 and stuck. on Thu, 27 Jul 2023 13:08:16 GMT]]></title><description><![CDATA[<p dir="auto">answering to myself :</p>
<p dir="auto">the issue comes from setting the warnings to max level in the IDE's preferences<br />
short term fix = drop down the level of warnings to default<br />
long term fix : fix all the files with a warning. most of them are in the font area.</p>
<p dir="auto">I find it surprising the libraries were not tested with all warnings on...</p>
]]></description><link>https://community.m5stack.com/post/21715</link><guid isPermaLink="true">https://community.m5stack.com/post/21715</guid><dc:creator><![CDATA[jmarduino]]></dc:creator><pubDate>Thu, 27 Jul 2023 13:08:16 GMT</pubDate></item></channel></rss>