PlatformIO Community

Trouble compiling Marlin firmware

Hey,

before i get started, ill just say that i have next to no experience working on code. so for me this is turning out to be exceptionally frustrating.

im trying to update the firmware of my printer that uses a robin_nano board and uses marlin.

now there is a custom firmware available on github, however i do need to make changes to it in order to select the correct thermistor.

while compiling this is what i get

ompilation terminated.
In file included from d:\3d printer\marlin\marlin\src\hal\hal_stm32f1\hal.h:36,
                 from d:\3d printer\marlin\marlin\src\hal\hal.h:26,
                 from d:\3d printer\marlin\marlin\src\inc\marlinconfig.h:30,
                 from Marlin\src\HAL\HAL_STM32F1\dogm\u8g_com_stm32duino_fsmc.cpp:29:
d:\3d printer\marlin\marlin\src\hal\hal_stm32f1\fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory
   30 | #include <libmaple/gpio.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\mks_robin_nano\src\src\HAL\HAL_STM32F1\spi_flash.cpp.o] Error 1
*** [.pio\build\mks_robin_nano\src\src\HAL\HAL_STM32F1\dogm\u8g_com_stm32duino_fsmc.cpp.o] Error 1
In file included from d:\3d printer\marlin\marlin\src\hal\hal_stm32f1\hal.h:36,
                 from d:\3d printer\marlin\marlin\src\hal\hal.h:26,
                 from d:\3d printer\marlin\marlin\src\inc\marlinconfig.h:30,
                 from Marlin\src\HAL\HAL_STM32F1\onboard_sd.cpp:15:
d:\3d printer\marlin\marlin\src\hal\hal_stm32f1\fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory
   30 | #include <libmaple/gpio.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\mks_robin_nano\src\src\HAL\HAL_STM32F1\onboard_sd.cpp.o] Error 1
In file included from d:\3d printer\marlin\marlin\src\hal\hal_stm32f1\hal.h:36,
                 from d:\3d printer\marlin\marlin\src\hal\hal.h:26,
                 from Marlin\src\HAL\shared\../../inc/MarlinConfig.h:30,
                 from Marlin\src\HAL\shared\HAL_spi_L6470.cpp:28:
d:\3d printer\marlin\marlin\src\hal\hal_stm32f1\fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory
   30 | #include <libmaple/gpio.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
In file included from d:\3d printer\marlin\marlin\src\hal\hal_stm32f1\hal.h:36,
                 from d:\3d printer\marlin\marlin\src\hal\hal.h:26,
                 from d:\3d printer\marlin\marlin\src\inc\marlinconfig.h:30,
                 from d:\3d printer\marlin\marlin\src\core\serial.h:24,
                 from Marlin\src\HAL\shared\backtrace\backtrace.cpp:29:
d:\3d printer\marlin\marlin\src\hal\hal_stm32f1\fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory
   30 | #include <libmaple/gpio.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\mks_robin_nano\src\src\HAL\shared\HAL_spi_L6470.cpp.o] Error 1
*** [.pio\build\mks_robin_nano\src\src\HAL\shared\backtrace\backtrace.cpp.o] Error 1
In file included from d:\3d printer\marlin\marlin\src\hal\hal_stm32f1\hal.h:36,
                 from d:\3d printer\marlin\marlin\src\hal\hal.h:26,
                 from Marlin\src\HAL\shared\../../inc/MarlinConfig.h:30,
                 from Marlin\src\HAL\shared\eeprom_i2c.cpp:31:
d:\3d printer\marlin\marlin\src\hal\hal_stm32f1\fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory
   30 | #include <libmaple/gpio.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
In file included from d:\3d printer\marlin\marlin\src\hal\hal_stm32f1\hal.h:36,
                 from d:\3d printer\marlin\marlin\src\hal\hal.h:26,
                 from d:\3d printer\marlin\marlin\src\inc\marlinconfig.h:30,
                 from Marlin\src\HAL\shared\backtrace\unwmemaccess.cpp:18:
d:\3d printer\marlin\marlin\src\hal\hal_stm32f1\fastio.h:30:10: fatal error: libmaple/gpio.h: No such file or directory
   30 | #include <libmaple/gpio.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\mks_robin_nano\src\src\HAL\shared\eeprom_i2c.cpp.o] Error 1
*** [.pio\build\mks_robin_nano\src\src\HAL\shared\backtrace\unwmemaccess.cpp.o] Error 1
================================================================================================== [FAILED] Took 29.75 seconds ==================================================================================================

Environment                   Status    Duration
----------------------------  --------  ------------
megaatmega2560                IGNORED
megaatmega1280                IGNORED
rambo                         IGNORED
FYSETC_F6_13                  IGNORED
FYSETC_F6_14                  IGNORED
sanguino_atmega644p           IGNORED
sanguino_atmega1284p          IGNORED
melzi                         IGNORED
melzi_optiboot                IGNORED
at90usb1286_cdc               IGNORED
at90usb1286_dfu               IGNORED
DUE                           IGNORED
DUE_USB                       IGNORED
DUE_debug                     IGNORED
LPC1768                       IGNORED
LPC1769                       IGNORED
STM32F103RC                   IGNORED
STM32F103RC_fysetc            IGNORED
STM32F103RC_bigtree           IGNORED
STM32F103RC_bigtree_USB       IGNORED
STM32F103RC_bigtree_512K      IGNORED
STM32F103RC_bigtree_512K_USB  IGNORED
STM32F103RE                   IGNORED
STM32F103RE_bigtree           IGNORED
STM32F103RE_bigtree_USB       IGNORED
STM32F4                       IGNORED
STM32F7                       IGNORED
ARMED                         IGNORED
STM32F103VE_GTM32             IGNORED
STM32F103VE_longer            IGNORED
mks_robin_mini                IGNORED
mks_robin_nano                FAILED    00:00:29.748
mks_robin                     IGNORED
mks_robin_pro                 IGNORED
mks_robin_lite                IGNORED
mks_robin_lite3               IGNORED

Here’s the kicker. i did manage to do this a few weeks ago and i do remember something about the wrong source file for the stsm32 core. and now i cant find it :expressionless: rip memory.

any help would be really appreciated as id like to solve this issue once and for all.
tia

Equivalent of Include Path issues ( #include <libmaple/gpio.h> )