How do I diagnose "1 failed"?

I’m trying to build a copy of marlin for my 3d printer in VScode with platformio buy when I changed the files I want and hit build I get a message in the terminal


IGNORED

1 failed, 0 succeed

ed in 00:00:01.376

The terminal process terminated with exit code: 1

USB IGNORED

Terminal will be reused by tasks, press any key to close it.

STM32F103RE

and i have no idea what it means or how to diagnose it to get a fix.

what do I need to look at to be able to build this so I can upload it to my printer?

Is that how the output was laid out, or did it get corrupted when you pasted it in?

Perhaps you didn’t set the default_envs parameter in platformio.ini correctly? And did you update the Configuration.h file in the Marlin folder to suit your printer? Perhaps by copying one of the example configurations provided in the config\examples folder and making the necessary changes to suit?

Can you try pasting the full compile output next time, using triple backticks (```) before and afterwords so it’s formatted as code/log text.

The complete log for a successful compile could look something like this (I picked the STM32F103RE configuration since that’s what you appear to be trying to compile for):

> Executing task: platformio run --environment STM32F103RE <

Processing STM32F103RE (platform: ststm32; board: genericSTM32F103RE; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103RE.html
PLATFORM: ST STM32 5.7.0 > STM32F103RE (64k RAM. 512k Flash)
HARDWARE: STM32F103RET6 72MHz, 64KB RAM, 512KB Flash
DEBUG: Current (blackmagic) External (blackmagic, jlink, stlink)
PACKAGES: 
 - framework-arduinoststm32-maple 1.10000.190819 (1.0.0) 
 - tool-stm32duino 1.0.1 
 - toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
Converting Marlin.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 39 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <U8glib-HAL> 0.4.1
|   |-- <Wire> 1.0
|-- <LiquidCrystal> 1.3.4
|   |-- <Wire> 1.0
|-- <TMCStepper> 0.6.1
|   |-- <SoftwareSerialM>
|-- <Adafruit MAX31865 library> 1.0.2
|-- <LiquidTWI2>
|   |-- <Wire> 1.0
|-- <Arduino-L6470> 0.7.0
|-- <SailfishLCD>
|-- <SailfishRGB_LED>
|   |-- <Wire> 1.0
|-- <SlowSoftI2CMaster>
|-- <SoftwareSerialM>
|-- <STM32ADC> 1.0
|-- <USBComposite for STM32F1> 0.91
|-- <EEPROM>
|-- <Wire> 1.0
Building in release mode
Compiling .pio/build/STM32F103RE/src/src/HAL/HAL_STM32F1/HAL.cpp.o
Compiling .pio/build/STM32F103RE/src/src/HAL/HAL_STM32F1/HAL_SPI.cpp.o
Compiling .pio/build/STM32F103RE/src/src/HAL/HAL_STM32F1/Servo.cpp.o
Compiling .pio/build/STM32F103RE/src/src/HAL/HAL_STM32F1/dogm/u8g_com_stm32duino_fsmc.cpp.o
Compiling .pio/build/STM32F103RE/src/src/HAL/HAL_STM32F1/dogm/u8g_com_stm32duino_swspi.cpp.o
Compiling .pio/build/STM32F103RE/src/src/HAL/HAL_STM32F1/msc_sd.cpp.o
Compiling .pio/build/STM32F103RE/src/src/HAL/HAL_STM32F1/onboard_sd.cpp.o
Compiling .pio/build/STM32F103RE/src/src/HAL/HAL_STM32F1/persistent_store_eeprom.cpp.o
Compiling .pio/build/STM32F103RE/src/src/HAL/HAL_STM32F1/persistent_store_flash.cpp.o
Compiling .pio/build/STM32F103RE/src/src/HAL/HAL_STM32F1/persistent_store_sdcard.cpp.o
Compiling .pio/build/STM32F103RE/src/src/HAL/HAL_STM32F1/sdio.cpp.o
Compiling .pio/build/STM32F103RE/src/src/HAL/HAL_STM32F1/timers.cpp.o
Compiling .pio/build/STM32F103RE/src/src/HAL/HAL_STM32F1/watchdog.cpp.o
Compiling .pio/build/STM32F103RE/src/src/HAL/shared/HAL_spi_L6470.cpp.o
Compiling .pio/build/STM32F103RE/src/src/HAL/shared/backtrace/backtrace.cpp.o
Compiling .pio/build/STM32F103RE/src/src/HAL/shared/backtrace/unwarm_arm.cpp.o
Compiling .pio/build/STM32F103RE/src/src/HAL/shared/backtrace/unwarm_thumb.cpp.o

[snip to not exceed length limit for posts]

Compiling .pio/build/STM32F103RE/lib0d6/USBComposite/usb_setup.cpp.o
Compiling .pio/build/STM32F103RE/lib0d6/USBComposite/usb_x360.c.o
Compiling .pio/build/STM32F103RE/lib354/EEPROM/EEPROM.cpp.o
Compiling .pio/build/STM32F103RE/lib354/EEPROM/flash_stm32.c.o
Archiving .pio/build/STM32F103RE/lib0d6/libUSBComposite.a
Indexing .pio/build/STM32F103RE/lib0d6/libUSBComposite.a
Archiving .pio/build/STM32F103RE/lib354/libEEPROM.a
Indexing .pio/build/STM32F103RE/lib354/libEEPROM.a
Linking .pio/build/STM32F103RE/firmware.elf
Building .pio/build/STM32F103RE/firmware.bin
Checking size .pio/build/STM32F103RE/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [==        ]  20.1% (used 13168 bytes from 65536 bytes)
Flash: [===       ]  28.8% (used 150844 bytes from 524288 bytes)
=============================================== [SUCCESS] Took 113.43 seconds ===============================================

Environment                   Status    Duration
----------------------------  --------  ------------
megaatmega2560                IGNORED
megaatmega1280                IGNORED
rambo                         IGNORED
FYSETC_F6_13                  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                   SUCCESS   00:01:53.426
STM32F103RE_bigtree           IGNORED
STM32F103RE_bigtree_USB       IGNORED
STM32F4                       IGNORED
STM32F7                       IGNORED
ARMED                         IGNORED
STM32F103VE_longer            IGNORED
mks_robin                     IGNORED
mks_robin_pro                 IGNORED
mks_robin_lite                IGNORED
mks_robin_lite3               IGNORED
mks_robin_mini                IGNORED
mks_robin_nano                IGNORED
jgaurora_a5s_a1               IGNORED
STM32F103CB_malyan            IGNORED
chitu_f103                    IGNORED
FLYF407ZG                     IGNORED
FYSETC_S6                     IGNORED
STM32F407VE_black             IGNORED
BIGTREE_SKR_PRO               IGNORED
BIGTREE_BTT002                IGNORED
teensy31                      IGNORED
teensy35                      IGNORED
esp32                         IGNORED
linux_native                  IGNORED
SAMD51_grandcentral_m4        IGNORED
rumba32_f446ve                IGNORED
mks_rumba32                   IGNORED
include_tree                  IGNORED
================================================ 1 succeeded in 00:01:53.426 ================================================

the default environment I THINK is correct, I’m using “STM32F103RC_bigtree” which is the one listed for the skr mini main board, I also took the skr mini example files to add to the marlin folder

I don’t think its an issue with the code, but rather maybe i am missing a directory or library?

the full terminal message is as follows

AssertionError: :
  File "C:\Users\unc
le\.platformio\penv\
lib\site-packages\pl
atformio\builder\mai
n.py", line 151:    
    env.SConscript("
$BUILD_SCRIPT")     
  File "C:\Users\unc
le\.platformio\packa
ges\tool-scons\scrip
t\..\engine\SCons\Sc
ript\SConscript.py",
 line 605:
    return _SConscri
pt(self.fs, *files, 
**subst_kw)
  File "C:\Users\unc
le\.platformio\packa
ges\tool-scons\scrip
t\..\engine\SCons\Sc
ript\SConscript.py",
 line 286:
    exec(compile(scr
iptdata, scriptname,
 'exec'), call_stack
[-1].globals)       
  File "C:\Users\unc
le\.platformio\platf
orms\ststm32\builder
\main.py", line 91: 
    target_elf = env
.BuildProgram()     
  File "C:\Users\unc
le\.platformio\packa
ges\tool-scons\scrip
t\..\engine\SCons\En
vironment.py", line 
224:
    return self.meth
od(*nargs, **kwargs)

  File "C:\Users\unc
le\.platformio\penv\
lib\site-packages\pl
atformio\builder\too
ls\platformio.py", l
ine 115:
    env.BuildFramewo
rks(env.get("PIOFRAM
EWORK"))
  File "C:\Users\unc
le\.platformio\packa
ges\tool-scons\scrip
t\..\engine\SCons\En
vironment.py", line 
224:
    return self.meth
od(*nargs, **kwargs)

  File "C:\Users\unc
le\.platformio\penv\
lib\site-packages\pl
atformio\builder\too
ls\platformio.py", l
ine 316:
    env.ConvertInoTo
Cpp()
  File "C:\Users\unc
le\.platformio\packa
ges\tool-scons\scrip
t\..\engine\SCons\En
vironment.py", line 
224:
    return self.meth
od(*nargs, **kwargs)

  File "C:\Users\unc
le\.platformio\penv\
lib\site-packages\pl
atformio\builder\too
ls\piomisc.py", line
 207:
    out_file = c.con
vert(ino_nodes)     
  File "C:\Users\unc
le\.platformio\penv\
lib\site-packages\pl
atformio\builder\too
ls\piomisc.py", line
 59:
    return self.proc
ess(contents)       
  File "C:\Users\unc
le\.platformio\penv\
lib\site-packages\pl
00:00:01.320        
          IGNORED   
 1 failed, 0 succeed
ed in 00:00:01.320  
The terminal process terminated with exit code: 1
USB       IGNORED   
Terminal will be reused by tasks, press any key to close it.
STM32F103RE