<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Common build issues in platformio at present.</title>
        <description> There are a number of common build issues at the moment that you may encounter when you attempt to build marlin in vscode / platformio.

These are mostly related to Marlin dependencies that have been updated since release, breaking Marlin building.

These issues have been addressed in bugfix, but older marlin will continue to break as they are not updated.
A new release is coming that will resolve these issue.

This is accurate as of 27 Jun 2020

Issue 1: You get this error.

Marlin\src\HAL\STM32F1\dogm\../../../inc/../HAL/./STM32F1/fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory:
The cause is ST STM32 framework was updated to version 7. Marlin was built on version 6.
The fix is up update your platformio.ini file
Find and replace the line &quot;platform = ststm32&quot;  with &quot;platform = ststm32@&amp;lt;6.2.0&quot;  

Issue 2: You get this error.

Adafruit BusIO_ID6214\Adafruit_I2CDevice.cpp:160:79: error: no matching function for call to &#039;TwoWire::requestFrom(uint8_t, uint8_t, uint8_t)&#039;
Any errors that mention Adafruit BusIO
The fix is up update your platformio.ini file
Find the line  &quot;Adafruit_MAX31865=https://github.com/adafruit/Adafruit_MAX31865/archive/master.zip&quot; and replace it with
&quot;Adafruit MAX31865 library@~1.1.0&quot;
 

Issue 3: You get these errors 

error: &#039;X_HOME_BUMP_MM&#039; was not declared in this scope
error: &#039;Y_HOME_BUMP_MM&#039; was not declared in this scope
error: &#039;Z_HOME_BUMP_MM&#039; was not declared in this scope
your Configuration_adv.h has the following (this is newer than the code expects)
#define HOMING_BUMP_MM { 5, 5, 2 }
when this version of code needs
#define X_HOME_BUMP_MM 5
#define Y_HOME_BUMP_MM 5
#define Z_HOME_BUMP_MM 2
Simply replace the first line with these 3 lines.

Issue 4: You get these warnings.

c_cpp_properties.json&quot;,
	Cannot find &quot;Marlin-2.0.x/include&quot;
	Cannot find &quot;Marlin-2.0.x/include&quot;
These are just warning an should be ignored. 
The cause is that platformio expects all projects to have a include directory in the project. Marlin doesn&#039;t do this.

Issue 5: You get this error

Marlin\src\feature/leds/neopixel.h:34:10: fatal error: Adafruit_NeoPixel.h: No such file or directory
In platformio.ini, some platforms have Adafruit NeoPixel disabled with the line
lib_ignore        = Adafruit NeoPixel, SPI
remove the Adafruit NeoPixel part to make it &quot;lib_ignore        =  SPI&quot;
But this is often disabled for a good reasion.

Issue 6: You get this error

&quot;NeoPixel_ID28/Adafruit_NeoPixel.h:361:3: error: &#039;GPIO_TypeDef&#039; does not name a type&quot;
In platformio.ini   normally found in [common] section you need to change
Adafruit NeoPixel to   Adafruit NeoPixel@&amp;lt;=1.2.4</description>
        <link>https://reprap.org/forum/read.php?415,874307,874307#msg-874307</link>
        <lastBuildDate>Sat, 12 Sep 2026 22:16:16 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?415,874307,875902#msg-875902</guid>
            <title>Re: Common build issues in platformio at present.</title>
            <link>https://reprap.org/forum/read.php?415,874307,875902#msg-875902</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Dust</strong><br />
It was 'sticky' for a month or so. but all the ones I listed are now resolved. You would only get them if your trying to compile older versions without the updated platformio.ini files</div></blockquote>
<br />
Oh thanks for letting me know. I thought this was a new topic. I must've missed the posting date.]]></description>
            <dc:creator>Ohmarinus</dc:creator>
            <category>Firmware - Marlin</category>
            <pubDate>Fri, 07 Aug 2020 03:56:37 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?415,874307,875901#msg-875901</guid>
            <title>Re: Common build issues in platformio at present.</title>
            <link>https://reprap.org/forum/read.php?415,874307,875901#msg-875901</link>
            <description><![CDATA[ It was 'sticky' for a month or so. but all the ones I listed are now resolved. You would only get them if your trying to compile older versions without the updated platformio.ini files]]></description>
            <dc:creator>Dust</dc:creator>
            <category>Firmware - Marlin</category>
            <pubDate>Fri, 07 Aug 2020 03:54:46 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?415,874307,875898#msg-875898</guid>
            <title>Re: Common build issues in platformio at present.</title>
            <link>https://reprap.org/forum/read.php?415,874307,875898#msg-875898</link>
            <description><![CDATA[ Great write, put it up as a sticky (tu)]]></description>
            <dc:creator>Ohmarinus</dc:creator>
            <category>Firmware - Marlin</category>
            <pubDate>Fri, 07 Aug 2020 03:21:46 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?415,874307,875878#msg-875878</guid>
            <title>Re: Common build issues in platformio at present.</title>
            <link>https://reprap.org/forum/read.php?415,874307,875878#msg-875878</link>
            <description><![CDATA[ Thanks Dust,<br />
great Post.   Also great seeing You still active.  Do you remember me?<br />
<br />
I get this Error:<br />
<br />
Archiving .pio\build\mks_robin_nano\lib119\libSailfishLCD.a<br />
C:\Users\Ahmet\.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\STM32ADC\src\utility\util_adc.c:10:30: warning: 'adc_result' initialized and declared 'extern'<br />
 extern volatile unsigned int adc_result = 0;<br />
                              ^~~~~~~~~~<br />
Archiving .pio\build\mks_robin_nano\lib916\libSlowSoftI2CMaster.a<br />
Compiling .pio\build\mks_robin_nano\liba5f\libmaple\libmaple\dma.c.o<br />
.pio\libdeps\mks_robin_nano\libmaple\libmaple\adc.c:47:6: error: conflicting types for 'adc_init']]></description>
            <dc:creator>ahmetcemturan</dc:creator>
            <category>Firmware - Marlin</category>
            <pubDate>Thu, 06 Aug 2020 07:16:05 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?415,874307,874307#msg-874307</guid>
            <title>Common build issues in platformio at present.</title>
            <link>https://reprap.org/forum/read.php?415,874307,874307#msg-874307</link>
            <description><![CDATA[ There are a number of common build issues at the moment that you may encounter when you attempt to build marlin in vscode / platformio.<br />
<br />
These are mostly related to Marlin dependencies that have been updated since release, breaking Marlin building.<br />
<br />
These issues have been addressed in bugfix, but older marlin will continue to break as they are not updated.<br />
A new release is coming that will resolve these issue.<br />
<br />
This is accurate as of 27 Jun 2020<br />
<br />
Issue 1: You get this error.<br />
<pre class="bbcode">
Marlin\src\HAL\STM32F1\dogm\../../../inc/../HAL/./STM32F1/fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory:</pre>
The cause is ST STM32 framework was updated to version 7. Marlin was built on version 6.<br />
The fix is up update your platformio.ini file<br />
Find and replace the line "platform = ststm32"  with "platform = ststm32@&lt;6.2.0"  <br />
<br />
Issue 2: You get this error.<br />
<pre class="bbcode">
Adafruit BusIO_ID6214\Adafruit_I2CDevice.cpp:160:79: error: no matching function for call to 'TwoWire::requestFrom(uint8_t, uint8_t, uint8_t)'</pre>
Any errors that mention Adafruit BusIO<br />
The fix is up update your platformio.ini file<br />
Find the line  "Adafruit_MAX31865=https://github.com/adafruit/Adafruit_MAX31865/archive/master.zip" and replace it with<br />
"Adafruit MAX31865 library@~1.1.0"<br />
 <br />
<br />
Issue 3: You get these errors <br />
<pre class="bbcode">
error: 'X_HOME_BUMP_MM' was not declared in this scope
error: 'Y_HOME_BUMP_MM' was not declared in this scope
error: 'Z_HOME_BUMP_MM' was not declared in this scope</pre>
your Configuration_adv.h has the following (this is newer than the code expects)<br />
#define HOMING_BUMP_MM { 5, 5, 2 }<br />
when this version of code needs<br />
#define X_HOME_BUMP_MM 5<br />
#define Y_HOME_BUMP_MM 5<br />
#define Z_HOME_BUMP_MM 2<br />
Simply replace the first line with these 3 lines.<br />
<br />
Issue 4: You get these warnings.<br />
<pre class="bbcode">
c_cpp_properties.json",
	Cannot find "Marlin-2.0.x/include"
	Cannot find "Marlin-2.0.x/include"</pre>
These are just warning an should be ignored. <br />
The cause is that platformio expects all projects to have a include directory in the project. Marlin doesn't do this.<br />
<br />
Issue 5: You get this error<br />
<pre class="bbcode">
Marlin\src\feature/leds/neopixel.h:34:10: fatal error: Adafruit_NeoPixel.h: No such file or directory</pre>
In platformio.ini, some platforms have Adafruit NeoPixel disabled with the line<br />
lib_ignore        = Adafruit NeoPixel, SPI<br />
remove the Adafruit NeoPixel part to make it "lib_ignore        =  SPI"<br />
But this is often disabled for a good reasion.<br />
<br />
Issue 6: You get this error<br />
<pre class="bbcode">
"NeoPixel_ID28/Adafruit_NeoPixel.h:361:3: error: 'GPIO_TypeDef' does not name a type"</pre>
In platformio.ini   normally found in [common] section you need to change<br />
Adafruit NeoPixel to   Adafruit NeoPixel@&lt;=1.2.4]]></description>
            <dc:creator>Dust</dc:creator>
            <category>Firmware - Marlin</category>
            <pubDate>Sat, 27 Jun 2020 00:53:45 -0400</pubDate>
        </item>
    </channel>
</rss>
