<?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[M5Stack boards package for Arduino causes compile errors]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">On Friday 2022-12-02 on a desktop PC with MS Windows 11 Pro, and runing the Arduino IDE v1.8.19, a sketch<br />
for a M5Stack Core2  would not compile while this sketch built successfully on 2022-04-24.</p>
<p dir="auto">To investigate the problem, I turned on 'File &gt; Preferences &gt; Show detailed messages during compilation'.</p>
<p dir="auto">I discovered that the name of the folder of the M5Stack board package contained a '+' character (ASCII decimal value 43, hexadecimal value 2B).<br />
The compiler reported that it could not find (the) file(s). (see below).</p>
<p dir="auto">There are some sources that describe the limitations of which characters can be used in the Microsoft Filesystems.<br />
For example:<br />
a) <a href="https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file" target="_blank" rel="noopener noreferrer nofollow ugc">Naming Files, Paths and Namespaces</a>;<br />
b) <a href="https://en.wikipedia.org/wiki/Filename#Comparison_of_filename_limitations" target="_blank" rel="noopener noreferrer nofollow ugc">Wikipedia Filename</a>.</p>
<p dir="auto">As far as I understand it: for the current Microsoft filesystem, NTFS, the '+' character is not a 'reserved character'.<br />
That is probably why there is no error generated when installing the M5Stack board package with the '+' in the name,<br />
however source b above mentions limitations in FAT12, FAT16 and FAT32 file systems. See the text in the most right column,<br />
the text I marked with an orange rectangle. Here the '+' character is listed as 'reserved character'. In other words: one cannot<br />
use the '+' character in file or folder names for these file systems:<br />
<img src="https://i.imgur.com/afCdwE4.png" alt="FAT12, FAT16 and FAT32 reserved characters" class=" img-fluid img-markdown" />.</p>
<p dir="auto">Despite a successful install of the M5Stack board package, the compiler was not able to find files because of<br />
the '+' character in the folder name.</p>
<p dir="auto">Fortunately I was able to install the package with version ID: '2.0.5-1.0'. Next I was able to delete the package with version ID: '2.0.5+1.0'.<br />
After this correction the sketch compiled and built successfully (again)</p>
<p dir="auto">Here the last part of the build session with the compile error:<br />
<img src="https://i.imgur.com/FYVocLv.png" alt="compile error" class=" img-fluid img-markdown" /></p>
<p dir="auto">The offending folder location and name was:<br />
C:\Users&lt;User&gt;\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.5+1.0</p>
<p dir="auto">Today, when using the newest version of the Arduino IDE (version 2.0.3), I was asked to update a boards package from M5Stack.<br />
While the version 2.0.5-1.0 was installed, the Arduino IDE suggested me to install the M5Stack version 2.0.5+1.0. Again the version<br />
with the '+' sign in the version (and sure, the folder name too). With my previous experience I did not install the proposed update. (See the partial screenshot below):</p>
<p dir="auto"><img src="https://i.imgur.com/ZTbfZEy.png" alt="Arduino IDE v2 M5Stack package update" class=" img-fluid img-markdown" /></p>
<p dir="auto">Maybe I address the wrong persons with this post.<br />
Perhaps I should report this problem to the maintainer(s) of the compiler used in the Arduino IDE.</p>
<p dir="auto">Can I ask the moderators of this M5Stack forum to look into the matter and take corrective measures, if you think that is necessary?<br />
Thank you.</p>
]]></description><link>https://community.m5stack.com/topic/4902/m5stack-boards-package-for-arduino-causes-compile-errors</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 08:41:39 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4902.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 Dec 2022 22:34:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5Stack boards package for Arduino causes compile errors on Fri, 23 Dec 2022 08:06:32 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/paulskpt" aria-label="Profile: paulskpt">@<bdi>paulskpt</bdi></a>,</p>
<p dir="auto">What additional board URL did you put in? I had similar problems until I changed the URL to this:</p>
<p dir="auto"><a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json" target="_blank" rel="noopener noreferrer nofollow ugc">https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json</a></p>
<p dir="auto">Ricky</p>
]]></description><link>https://community.m5stack.com/post/19642</link><guid isPermaLink="true">https://community.m5stack.com/post/19642</guid><dc:creator><![CDATA[Ricky_M5Station]]></dc:creator><pubDate>Fri, 23 Dec 2022 08:06:32 GMT</pubDate></item></channel></rss>