Why do I get this error everytime I try to build the new marlin firmware

@normandunbar

Sure, I downloaded from here: Download | Marlin Firmware and scroll down to the “nightly builds” and it is the bugfix-2.0.x.zip file. Just click where I have circled and it will download exactly what I downloaded.

image

1 Like

Personally for a self build, I’d start with the latest stable before I started looking at nightlies

1 Like

@cdabone
so use the one at the top?

@ColePete - yes, take the “Latest release: 2.0.7.2”

If you’re going to play around with nightlies, take a look to see if they have a build log - there’s a good chance that they will report if there’s any build issues that need looking into.

I have never had a great experience running most OSS builds on Windows, so it’s probably worth investing a little time in setting up a Ubuntu VM - but setting up development environments is a whole topic in itself

@cdabone @normandunbar

So I re-dowloaded the most recent version off of marlin. And, I editied it to be the way that I wanted. But, when I clicked the checkmark telling it to build, it started building only to end with these errors:

> Executing task in folder Marlin-2.0.x: C:\Users\Owner\.platformio\penv\Scripts\pio.exe run <

Processing STM32F103RC_btt_512K (platform: ststm32@~6.1; board: genericSTM32F103RC; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------

Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103RC.html
PLATFORM: ST STM32 (6.1.1) > STM32F103RC (48k RAM. 256k Flash)  
HARDWARE: STM32F103RCT6 72MHz, 48KB RAM, 512KB Flash
DEBUG: Current (blackmagic) External (blackmagic, jlink, stlink)
PACKAGES:
 - framework-arduinoststm32-maple 2.10000.200103 (1.0.0)        
 - tool-stm32duino 1.0.2
 - 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 31 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <SoftwareSerialM> 1.0.0    
|-- <TMCStepper> 0.7.1
|   |-- <SoftwareSerialM> 1.0.0
|-- <U8glib-HAL> 0.4.3
|   |-- <Wire> 1.0
|-- <STM32ADC> 1.0
|-- <EEPROM>
|-- <USBComposite for STM32F1> 0.91
|-- <Wire> 1.0
|-- <FreeRTOS701>
|-- <Servo(STM32F1)> 1.1.2
Building in release mode
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduinoVariant\board.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduinoVariant\wirish\boards.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduinoVariant\wirish\boards_setup.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduinoVariant\wirish\start.S.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduinoVariant\wirish\start_c.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduinoVariant\wirish\syscalls.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\HardwareSerial.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\HardwareTimer.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\IPAddress.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\Print.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\Stream.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\WString.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\avr\dtostrf.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\cxxabi-compat.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\ext_interrupts.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\hooks.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\itoa.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\adc.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\adc_f1.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\bkp_f1.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\dac.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\dma.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\dma_f1.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\exc.S.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\exti.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\exti_f1.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\flash.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\fsmc_f1.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\gpio.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\gpio_f1.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\i2c.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\i2c_f1.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\iwdg.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\nvic.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\pwr.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\rcc.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\rcc_f1.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\spi.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\spi_f1.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\stm32f1\performance\isrs.S.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\stm32f1\performance\vector_table.S.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\systick.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\timer.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\timer_f1.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\usart.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\usart_f1.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\usart_private.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\usb\stm32f1\usb.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\usb\stm32f1\usb_cdcacm.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\usb\stm32f1\usb_reg_map.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\usb\usb_lib\usb_core.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\usb\usb_lib\usb_init.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\usb\usb_lib\usb_mem.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\usb\usb_lib\usb_regs.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\libmaple\util.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\main.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\new.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\pwm.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\sdio.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\stm32f1\util_hooks.c.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\stm32f1\wiring_pulse_f1.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\stm32f1\wirish_debug.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\stm32f1\wirish_digital_f1.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\tone.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\usb_serial.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\wirish_analog.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\wirish_digital.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\wirish_math.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\wirish_shift.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\FrameworkArduino\wirish_time.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\HAL.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\HAL_SPI.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\MarlinSerial.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\SPI.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\Servo.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\SoftwareSerial.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\dogm\u8g_com_stm32duino_swspi.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\eeprom_bl24cxx.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\eeprom_flash.cpp.o
In file included from Marlin\src\HAL\STM32F1\../../inc/MarlinConfigPre.h:56:0,
                 from Marlin\src\HAL\STM32F1\../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\STM32F1\HAL.cpp:30:
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected ',' before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected string-literal before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected ')' before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1703:47: error: expected ',' before numeric constant
   #define PROBING_MARGIN_FRONT PROBING_MARGIN 20
                                               ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1330:19: note: in expansion of macro 'PROBING_MARGIN_FRONT'
     static_assert(PROBING_MARGIN_FRONT >= 0, "PROBING_MARGIN_FRONT must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1703:47: error: expected string-literal before numeric constant
   #define PROBING_MARGIN_FRONT PROBING_MARGIN 20
                                               ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1330:19: note: in expansion of macro 'PROBING_MARGIN_FRONT'
     static_assert(PROBING_MARGIN_FRONT >= 0, "PROBING_MARGIN_FRONT must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~~
compilation terminated due to -fmax-errors=5.
In file included from Marlin\src\HAL\STM32F1\../../inc/MarlinConfigPre.h:56:0,
                 from Marlin\src\HAL\STM32F1\../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\STM32F1\HAL_SPI.cpp:32:
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected ',' before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected string-literal before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected ')' before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1703:47: error: expected ',' before numeric constant
   #define PROBING_MARGIN_FRONT PROBING_MARGIN 20
                                               ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1330:19: note: in expansion of macro 'PROBING_MARGIN_FRONT'
     static_assert(PROBING_MARGIN_FRONT >= 0, "PROBING_MARGIN_FRONT must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1703:47: error: expected string-literal before numeric constant
   #define PROBING_MARGIN_FRONT PROBING_MARGIN 20
                                               ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1330:19: note: in expansion of macro 'PROBING_MARGIN_FRONT'
     static_assert(PROBING_MARGIN_FRONT >= 0, "PROBING_MARGIN_FRONT must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~~
compilation terminated due to -fmax-errors=5.
In file included from Marlin\src\HAL\STM32F1\../../inc/MarlinConfigPre.h:56:0,
                 from Marlin\src\HAL\STM32F1\../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\STM32F1\Servo.cpp:25:
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected ',' before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected string-literal before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected ')' before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1703:47: error: expected ',' before numeric constant
   #define PROBING_MARGIN_FRONT PROBING_MARGIN 20
                                               ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1330:19: note: in expansion of macro 'PROBING_MARGIN_FRONT'
     static_assert(PROBING_MARGIN_FRONT >= 0, "PROBING_MARGIN_FRONT must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~~
In file included from Marlin\src\HAL\STM32F1\../../inc/MarlinConfigPre.h:56:0,
                 from Marlin\src\HAL\STM32F1\../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\STM32F1\SPI.cpp:43:
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected ',' before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
In file included from Marlin\src\HAL\STM32F1\../../inc/MarlinConfigPre.h:56:0,
                 from Marlin\src\HAL\STM32F1\../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\STM32F1\MarlinSerial.cpp:25:
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected ',' before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
In file included from Marlin\src\HAL\STM32F1\dogm\../../../inc/MarlinConfigPre.h:56:0,
                 from Marlin\src\HAL\STM32F1\dogm\../../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\STM32F1\dogm\u8g_com_stm32duino_swspi.cpp:21:
Marlin\src\HAL\STM32F1\dogm\../../../inc/../../Configuration_adv.h:1704:46: error: expected ',' before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\dogm\../../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
In file included from Marlin\src\HAL\STM32F1\../../inc/MarlinConfigPre.h:56:0,
                 from Marlin\src\HAL\STM32F1\../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\STM32F1\eeprom_bl24cxx.cpp:30:
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected ',' before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
*** [.pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\HAL_SPI.cpp.o] Error 1
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1703:47: error: expected string-literal before numeric constant
   #define PROBING_MARGIN_FRONT PROBING_MARGIN 20
                                               ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1330:19: note: in expansion of macro 'PROBING_MARGIN_FRONT'
     static_assert(PROBING_MARGIN_FRONT >= 0, "PROBING_MARGIN_FRONT must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected string-literal before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected string-literal before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\dogm\../../../inc/../../Configuration_adv.h:1704:46: error: expected string-literal before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\dogm\../../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected string-literal before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected ')' before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
*** [.pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\HAL.cpp.o] Error 1
compilation terminated due to -fmax-errors=5.
In file included from Marlin\src\HAL\STM32F1\../../inc/MarlinConfigPre.h:56:0,
                 from Marlin\src\HAL\STM32F1\../../inc/MarlinConfig.h:28,
                 from Marlin\src\HAL\STM32F1\eeprom_flash.cpp:32:
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected ',' before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected ')' before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected ')' before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\dogm\../../../inc/../../Configuration_adv.h:1704:46: error: expected ')' before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\dogm\../../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1703:47: error: expected ',' before numeric constant
   #define PROBING_MARGIN_FRONT PROBING_MARGIN 20
                                               ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1330:19: note: in expansion of macro 'PROBING_MARGIN_FRONT'
     static_assert(PROBING_MARGIN_FRONT >= 0, "PROBING_MARGIN_FRONT must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1703:47: error: expected ',' before numeric constant
   #define PROBING_MARGIN_FRONT PROBING_MARGIN 20
                                               ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1330:19: note: in expansion of macro 'PROBING_MARGIN_FRONT'
     static_assert(PROBING_MARGIN_FRONT >= 0, "PROBING_MARGIN_FRONT must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1703:47: error: expected ',' before numeric constant
   #define PROBING_MARGIN_FRONT PROBING_MARGIN 20
                                               ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1330:19: note: in expansion of macro 'PROBING_MARGIN_FRONT'
     static_assert(PROBING_MARGIN_FRONT >= 0, "PROBING_MARGIN_FRONT must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\dogm\../../../inc/../../Configuration_adv.h:1703:47: error: expected ',' before numeric constant
   #define PROBING_MARGIN_FRONT PROBING_MARGIN 20
                                               ^
Marlin\src\HAL\STM32F1\dogm\../../../inc/SanityCheck.h:1330:19: note: in expansion of macro 'PROBING_MARGIN_FRONT'
     static_assert(PROBING_MARGIN_FRONT >= 0, "PROBING_MARGIN_FRONT must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1703:47: error: expected string-literal before numeric constant
   #define PROBING_MARGIN_FRONT PROBING_MARGIN 20
                                               ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1330:19: note: in expansion of macro 'PROBING_MARGIN_FRONT'
     static_assert(PROBING_MARGIN_FRONT >= 0, "PROBING_MARGIN_FRONT must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected string-literal before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
*** [.pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\Servo.cpp.o] Error 1
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1703:47: error: expected string-literal before numeric constant
   #define PROBING_MARGIN_FRONT PROBING_MARGIN 20
                                               ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1330:19: note: in expansion of macro 'PROBING_MARGIN_FRONT'
     static_assert(PROBING_MARGIN_FRONT >= 0, "PROBING_MARGIN_FRONT must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1703:47: error: expected string-literal before numeric constant
   #define PROBING_MARGIN_FRONT PROBING_MARGIN 20
                                               ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1330:19: note: in expansion of macro 'PROBING_MARGIN_FRONT'
     static_assert(PROBING_MARGIN_FRONT >= 0, "PROBING_MARGIN_FRONT must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\dogm\../../../inc/../../Configuration_adv.h:1703:47: error: expected string-literal before numeric constant
   #define PROBING_MARGIN_FRONT PROBING_MARGIN 20
                                               ^
Marlin\src\HAL\STM32F1\dogm\../../../inc/SanityCheck.h:1330:19: note: in expansion of macro 'PROBING_MARGIN_FRONT'
     static_assert(PROBING_MARGIN_FRONT >= 0, "PROBING_MARGIN_FRONT must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1704:46: error: expected ')' before numeric constant
   #define PROBING_MARGIN_BACK PROBING_MARGIN 20
                                              ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1329:19: note: in expansion of macro 'PROBING_MARGIN_BACK'
     static_assert(PROBING_MARGIN_BACK >= 0, "PROBING_MARGIN_BACK must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1703:47: error: expected ',' before numeric constant
   #define PROBING_MARGIN_FRONT PROBING_MARGIN 20
                                               ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1330:19: note: in expansion of macro 'PROBING_MARGIN_FRONT'
     static_assert(PROBING_MARGIN_FRONT >= 0, "PROBING_MARGIN_FRONT must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~~
compilation terminated due to -fmax-errors=5.
compilation terminated due to -fmax-errors=5.
compilation terminated due to -fmax-errors=5.
compilation terminated due to -fmax-errors=5.
Marlin\src\HAL\STM32F1\../../inc/../../Configuration_adv.h:1703:47: error: expected string-literal before numeric constant
   #define PROBING_MARGIN_FRONT PROBING_MARGIN 20
                                               ^
Marlin\src\HAL\STM32F1\../../inc/SanityCheck.h:1330:19: note: in expansion of macro 'PROBING_MARGIN_FRONT'
     static_assert(PROBING_MARGIN_FRONT >= 0, "PROBING_MARGIN_FRONT must be >= 0.");
                   ^~~~~~~~~~~~~~~~~~~~
compilation terminated due to -fmax-errors=5.
*** [.pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\eeprom_flash.cpp.o] Error 1
*** [.pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\dogm\u8g_com_stm32duino_swspi.cpp.o] Error 1
*** [.pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\eeprom_bl24cxx.cpp.o] Error 1
*** [.pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\SPI.cpp.o] Error 1
*** [.pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\MarlinSerial.cpp.o] Error 1
======================================================== [FAILED] Took 11.24 seconds ======================================================== 

Environment           Status    Duration
--------------------  --------  ------------
STM32F103RC_btt_512K  FAILED    00:00:11.240
=================================================== 1 failed, 0 succeeded in 00:00:11.240 =================================================== 
The terminal process "C:\Users\Owner\.platformio\penv\Scripts\pio.exe 'run'" terminated with exit code: 1.

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

That was the whole process copied and pasted straight from the Visual Studio Code terminal.
Plz help.

EDIT: I can also include a copy of my edited firmware if that helps. Just let me know.

Looks like something broken in the avanced configuration header file. Can you post 5 or 6 lines before and after this line:

#define PROBING_MARGIN xxxxxx

From Configuration_adv.h please. I think you might have edited it incorrectly.

As @ColePete advises, as do Marlin, best to stick with the stable stuff. Marlin advise that the nightlies should build, but may not.

Cheers,
Norm.

@normandunbar here you go.

// @section leveling

/**
 * Points to probe for all 3-point Leveling procedures.
 * Override if the automatically selected points are inadequate.
 */
#if EITHER(AUTO_BED_LEVELING_3POINT, AUTO_BED_LEVELING_UBL)
  //#define PROBE_PT_1_X 15
  //#define PROBE_PT_1_Y 180
  //#define PROBE_PT_2_X 15
  //#define PROBE_PT_2_Y 20
  //#define PROBE_PT_3_X 170
  //#define PROBE_PT_3_Y 20
#endif

/**
 * Probing Margins
 *
 * Override PROBING_MARGIN for each side of the build plate
 * Useful to get probe points to exact positions on targets or
 * to allow leveling to avoid plate clamps on only specific
 * sides of the bed. With NOZZLE_AS_PROBE negative values are
 * allowed, to permit probing outside the bed.
 *
 * If you are replacing the prior *_PROBE_BED_POSITION options,
 * LEFT and FRONT values in most cases will map directly over
 * RIGHT and REAR would be the inverse such as
 * (X/Y_BED_SIZE - RIGHT/BACK_PROBE_BED_POSITION)
 *
 * This will allow all positions to match at compilation, however
 * should the probe position be modified with M851XY then the
 * probe points will follow. This prevents any change from causing
 * the probe to be unable to reach any points.
 */
#if PROBE_SELECTED && !IS_KINEMATIC
  #define PROBING_MARGIN_LEFT PROBING_MARGIN 46
  #define PROBING_MARGIN_RIGHT PROBING_MARGIN 46 
  #define PROBING_MARGIN_FRONT PROBING_MARGIN 20
  #define PROBING_MARGIN_BACK PROBING_MARGIN 20
#endif

#if EITHER(MESH_BED_LEVELING, AUTO_BED_LEVELING_UBL)
  // Override the mesh area if the automatic (max) area is too large
  //#define MESH_MIN_X MESH_INSET
  //#define MESH_MIN_Y MESH_INSET
  //#define MESH_MAX_X X_BED_SIZE - (MESH_INSET)
  //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
#endif

Thanks, but wrong bit. :frowning_face:

Those are PROBING_MARGIN_XXXX and are defined as PROBING_MARGIN with a number. I needed just PROBING_MARGIN as that seems to be where the error is originating.

Cheers,
Norm.

I am confused about what you need. That was the only stuff about PROBING_MARGIN. Could you specify more?

Interesting! I downloaded the stable and bugfix versions of Marlin 2.x and the above file does not exist in either. The folder HAL_STM32F1 is actually named STM32F1 - so, I wonder if this is part of the problem?

I found PROBING_MARGIN in the configuration.h file at/around line 993:

// Most probes should stay away from the edges of the bed, but
// with NOZZLE_AS_PROBE this can be negative for a wider probing area.
#define PROBING_MARGIN 10

What does yours look like after you changed your configuration please?

Cheers,
Norm.

my bad, I thought that it was in confuguration.avd.h here you go:

//#define SENSORLESS_PROBING

//
// For Z_PROBE_ALLEN_KEY see the Delta example configurations.
//

/**
 * Nozzle-to-Probe offsets { X, Y, Z }
 *
 * - Use a caliper or ruler to measure the distance from the tip of
 *   the Nozzle to the center-point of the Probe in the X and Y axes.
 * - For the Z offset use your best known value and adjust at runtime.
 * - Probe Offsets can be tuned at runtime with 'M851', LCD menus, babystepping, etc.
 *
 * Assuming the typical work area orientation:
 *  - Probe to RIGHT of the Nozzle has a Positive X offset
 *  - Probe to LEFT  of the Nozzle has a Negative X offset
 *  - Probe in BACK  of the Nozzle has a Positive Y offset
 *  - Probe in FRONT of the Nozzle has a Negative Y offset
 *
 * Some examples:
 *   #define NOZZLE_TO_PROBE_OFFSET { 10, 10, -1 }   // Example "1"
 *   #define NOZZLE_TO_PROBE_OFFSET {-10,  5, -1 }   // Example "2"
 *   #define NOZZLE_TO_PROBE_OFFSET {  5, -5, -1 }   // Example "3"
 *   #define NOZZLE_TO_PROBE_OFFSET {-15,-10, -1 }   // Example "4"
 *
 *     +-- BACK ---+
 *     |    [+]    |
 *   L |        1  | R <-- Example "1" (right+,  back+)
 *   E |  2        | I <-- Example "2" ( left-,  back+)
 *   F |[-]  N  [+]| G <-- Nozzle
 *   T |       3   | H <-- Example "3" (right+, front-)
 *     | 4         | T <-- Example "4" ( left-, front-)
 *     |    [-]    |
 *     O-- FRONT --+
 */
#define NOZZLE_TO_PROBE_OFFSET { 0, 0, 0 }

// Most probes should stay away from the edges of the bed, but
// with NOZZLE_AS_PROBE this can be negative for a wider probing area.
#define PROBING_MARGIN 10

// X and Y axis travel speed (mm/min) between probes
#define XY_PROBE_SPEED (133*60)

// Feedrate (mm/min) for the first approach when double-probing (MULTIPLE_PROBING == 2)
#define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z

// Feedrate (mm/min) for the "accurate" probe of each point
#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)

hope this helps

Aha! This is good. It tells me that any time we see “PROBING_MARGIN” in the code, it will be replaced by 10.

However, your errors

means that we have this, effectively:

#define PROBING_MARGIN_BACK 10 20

Which is not good C/C++ code at all.

Looking at the advanced configuration, we have the lines you posted earlier:

#if PROBE_SELECTED && !IS_KINEMATIC
  #define PROBING_MARGIN_LEFT PROBING_MARGIN 46
  #define PROBING_MARGIN_RIGHT PROBING_MARGIN 46 
  #define PROBING_MARGIN_FRONT PROBING_MARGIN 20
  #define PROBING_MARGIN_BACK PROBING_MARGIN 20
#endif

This doesn’t read well to me, especially if PROBING_MARGIN is already defined as 10. This is where the errors are coming from I think. I downloaded the Marlin 2.0.x software and found your configuration files, I then grepped for “PROBING_MARGIN” and got these results:

Configuration_adv.h: * Override PROBING_MARGIN for each side of the build plate
Configuration_adv.h:  //#define PROBING_MARGIN_LEFT PROBING_MARGIN
Configuration_adv.h:  //#define PROBING_MARGIN_RIGHT PROBING_MARGIN
Configuration_adv.h:  //#define PROBING_MARGIN_FRONT PROBING_MARGIN
Configuration_adv.h:  //#define PROBING_MARGIN_BACK PROBING_MARGIN
Configuration.h:#define PROBING_MARGIN 10

And the penny dropped.

You, I think, have changed the config to set specific margins for the Bltouch thingy 46,46,20,20 but you left in the previous settings of 10,10,10,10.

Change your config to this:

#if PROBE_SELECTED && !IS_KINEMATIC
  #define PROBING_MARGIN_LEFT  46
  #define PROBING_MARGIN_RIGHT  46 
  #define PROBING_MARGIN_FRONT  20
  #define PROBING_MARGIN_BACK  20
#endif

Remove the “PROBING_MARGIN” words before each of your required dimensions.

HTH

Cheers,
Norm.

1 Like

@normandunbar
wait what. can you just paste the correct code and where I should put it here plz. I don’t understand all this coding stuff.

Ok, see my post above, that shows the corrected 4 lines for your different probing places. These are based on what you posted a couple of replies back.

These 4 lines should fix the errors you reported. Edit your advanced config file, delete the lines there and paste these in:

  #define PROBING_MARGIN_LEFT  46
  #define PROBING_MARGIN_RIGHT  46 
  #define PROBING_MARGIN_FRONT  20
  #define PROBING_MARGIN_BACK  20

Cheers,
Norm.

@normandunbar thanks for the simplified directions, but


Processing STM32F103RC_btt_512K (platform: ststm32@~6.1; board: genericSTM32F103RC; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------

Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103RC.html
PLATFORM: ST STM32 (6.1.1) > STM32F103RC (48k RAM. 256k Flash)  
HARDWARE: STM32F103RCT6 72MHz, 48KB RAM, 512KB Flash
DEBUG: Current (blackmagic) External (blackmagic, jlink, stlink)
PACKAGES:
 - framework-arduinoststm32-maple 2.10000.200103 (1.0.0)        
 - tool-stm32duino 1.0.2
 - 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 31 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <SoftwareSerialM> 1.0.0
|-- <TMCStepper> 0.7.1
|   |-- <SoftwareSerialM> 1.0.0
|-- <U8glib-HAL> 0.4.3
|   |-- <Wire> 1.0
|-- <STM32ADC> 1.0
|-- <EEPROM>
|-- <USBComposite for STM32F1> 0.91
|-- <Wire> 1.0
|-- <FreeRTOS701>
|-- <Servo(STM32F1)> 1.1.2
Building in release mode
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\HAL.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\HAL_SPI.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\MarlinSerial.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\SPI.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\Servo.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\dogm\u8g_com_stm32duino_swspi.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\eeprom_bl24cxx.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\eeprom_flash.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\eeprom_if_iic.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\eeprom_sdcard.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\eeprom_wired.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\msc_sd.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\onboard_sd.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\sdio.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\tft\tft_fsmc.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\tft\tft_spi.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\tft\xpt2046.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\timers.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\STM32F1\watchdog.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\shared\HAL_spi_L6470.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\shared\eeprom_api.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\shared\eeprom_if_i2c.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\shared\eeprom_if_spi.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\shared\esp_wifi.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\HAL\shared\servo.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\MarlinCore.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\core\serial.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\core\utility.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\feature\babystep.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\feature\bedlevel\abl\abl.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\feature\bedlevel\bedlevel.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\feature\bltouch.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\feature\e_parser.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\feature\pause.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\feature\runout.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\feature\tmc_util.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\gcode\bedlevel\G42.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K\src\src\gcode\bedlevel\M420.cpp.o
Assembler messages:
Fatal error: can't create .pio\build\STM32F103RC_btt_512K\src\src\feature\e_parser.cpp.o: No such file or directory
Marlin\src\feature\bedlevel\bedlevel.cpp:208:3: fatal error: opening dependency file .pio\build\STM32F103RC_btt_512K\src\src\feature\bedlevel\bedlevel.cpp.d: No such file or directory
   }
   ^
compilation terminated.
Marlin\src\MarlinCore.cpp:1326:1: fatal error: opening dependency file .pio\build\STM32F103RC_btt_512K\src\src\MarlinCore.cpp.d: No such file 
or directory
 }
 ^
compilation terminated.
*** [.pio\build\STM32F103RC_btt_512K\src\src\feature\e_parser.cpp.o] Error 1
*** [.pio\build\STM32F103RC_btt_512K\src\src\feature\bedlevel\bedlevel.cpp.o] Error 1
*** [.pio\build\STM32F103RC_btt_512K\src\src\MarlinCore.cpp.o] Error 1
Marlin\src\gcode\bedlevel\G42.cpp:71:1: fatal error: opening dependency file .pio\build\STM32F103RC_btt_512K\src\src\gcode\bedlevel\G42.cpp.d: No such file or directory
 }
 ^
compilation terminated.
*** [.pio\build\STM32F103RC_btt_512K\src\src\gcode\bedlevel\G42.cpp.o] Error 1
Marlin\src\feature\runout.cpp:137:1: fatal error: opening dependency file .pio\build\STM32F103RC_btt_512K\src\src\feature\runout.cpp.d: No such file or directory
 }
 ^
compilation terminated.
*** [.pio\build\STM32F103RC_btt_512K\src\src\feature\runout.cpp.o] Error 1
Marlin\src\feature\pause.cpp:677:1: fatal error: opening dependency file .pio\build\STM32F103RC_btt_512K\src\src\feature\pause.cpp.d: No such 
file or directory
 }
 ^
compilation terminated.
Marlin\src\gcode\bedlevel\M420.cpp:243:1: fatal error: opening dependency file .pio\build\STM32F103RC_btt_512K\src\src\gcode\bedlevel\M420.cpp.d: No such file or directory
 }
 ^
compilation terminated.
*** [.pio\build\STM32F103RC_btt_512K\src\src\feature\pause.cpp.o] Error 1
*** [.pio\build\STM32F103RC_btt_512K\src\src\gcode\bedlevel\M420.cpp.o] Error 1
Marlin\src\feature\tmc_util.cpp:1270:1: fatal error: opening dependency file .pio\build\STM32F103RC_btt_512K\src\src\feature\tmc_util.cpp.d: No such file or directory
 }
 ^
compilation terminated.
*** [.pio\build\STM32F103RC_btt_512K\src\src\feature\tmc_util.cpp.o] Error 1
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\Owner\\Downloads\\Marlin-2.0.x\\Marlin-2.0.x\\.pio\\build\\STM32F103RC_btt_512K\\.sconsign37.dblite':
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\Main.py", line 1391:
    _exec_main(parser, values)
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\Main.py", line 1355:
    _main(parser)
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\Main.py", line 1126:
    nodes = _build_targets(fs, options, targets, target_top)
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\Main.py", line 1329:
    jobs.run(postfunc = jobs_postfunc)
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Job.py", line 113:
    postfunc()
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\Main.py", line 1326:
    SCons.SConsign.write()
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\SConsign.py", line 114:
    syncmethod()
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\dblite.py", line 144:
    self._os_unlink(self._file_name)
Exception ignored in: <function dblite.__del__ at 0x0000013BB3931708>
Traceback (most recent call last):
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\dblite.py", line 126, in __del__
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\dblite.py", line 123, in close
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\dblite.py", line 144, in sync
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\Owner\\Downloads\\Marlin-2.0.x\\Marlin-2.0.x\\.pio\\build\\STM32F103RC_btt_512K\\.sconsign37.dblite'
======================================================== [FAILED] Took 68.11 seconds ========================================================

Environment           Status    Duration
--------------------  --------  ------------
STM32F103RC_btt_512K  FAILED    00:01:08.113
=================================================== 1 failed, 0 succeeded in 00:01:08.113 ===================================================
The terminal process "C:\Users\Owner\.platformio\penv\Scripts\pio.exe 'run'" terminated with exit code: 1.

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

NOOOOOOOOOOOOOOO!!! WHY!!!

Oh dear!

Ok, I did say that I don’t have a 3d printer, nor have I ever configured and installed Marlin. :wink:

I had a look in the Marlin bugfix release and all those *.cpp.d files in your errors are definitely not there.

I found this link https://www.reddit.com/r/ender3/comments/iybv7j/ender_3_pro_skr_bigtree_marlin/ which is the same thing. The fix there was a kink to Teaching Tech on YouTube. Editing Marlin config for beginners.

Apparently, that fixed the person having the same errors as you. Check out Beginner guide to editing Marlin firmware - step by step - UPDATE IN DESCRIPTION - YouTube and see if that helps.

Failing that, in VSCode, run a clean build by clicking the dustbin/trash can button at the bottom. Then zip up all of your Marlin source code, exactly as it stands, and put it somewhere online where I can download it.

I’ll see if I can follow the above video and get it to compile.

Cheers,
Norm.

Good Morning @ColePete,

I watched the linked video - turns out I’d actually seen it before, c’est la vie (as they say in Wales!) :grin:

Here’s what I did:

  • Downloaded and extracted the Marlin 2.0.x file, and extracted it to Marlin-2.0.x.

  • Downloaded and extracted the Marlin Configurations to Configurations

  • Copied all 4 files from /home/norman/Downloads/Marlin/Configurations/config/examples/Creality/Ender-3/BigTreeTech SKR Mini E3 1.2 into Marlin-2.0.x/Marlin – overwriting the existing configuration files.

  • Open the folder Marlin-2.0.x in VSCode.

  • Open the platformio.ini file.

  • Edited this section:

    [platformio]
    src_dir      = Marlin
    boards_dir   = buildroot/share/PlatformIO/boards
    default_envs = mega2560
    include_dir  = Marlin
    

    changing the default_envs to this:

    default_envs = STM32F103RC_btt_512K_USB
    
  • Saved the file.

  • Ticked the dustbin/trash can button on the bottom toolbar to clean anything that might have been there previously.

  • Ticked the check/tick to run a build.

  • Waited…

  • Waited some more…

  • Got this:

    Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
    RAM:   [====      ]  35.4% (used 17400 bytes from 49152 bytes)
    Flash: [====      ]  44.1% (used 231348 bytes from 524288 bytes)
    =====================[SUCCESS] Took 100.91 seconds =============
    

So, that’s a default build with your configuration, I think. I have not configured anything, other then the board in use.

Can you now do the above, to a separate folder to where your current setup doesn’t compile, and let me know how you get on please?

This is the first time I’ve compiled Marlin by the way.

Cheers,
Norm.

1 Like

Okay so, I changed the default_envs to = STM32F103RC_btt_512K_USB and I got this error:

> Executing task in folder Marlin-2.0.x: C:\Users\Owner\.platformio\penv\Scripts\pio.exe run <

Processing STM32F103RC_btt_512K_USB (platform: ststm32@~6.1; board: genericSTM32F103RC; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------

Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103RC.html
PLATFORM: ST STM32 (6.1.1) > STM32F103RC (48k RAM. 256k Flash)  
HARDWARE: STM32F103RCT6 72MHz, 48KB RAM, 512KB Flash
DEBUG: Current (blackmagic) External (blackmagic, jlink, stlink)
PACKAGES:
 - framework-arduinoststm32-maple 2.10000.200103 (1.0.0)        
 - tool-stm32duino 1.0.2
 - 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
Library Manager: Installing SoftwareSerialM
Library Manager: SoftwareSerialM @ 1.0.0 has been installed!
Library Manager: Installing TMCStepper @ ~0.7.1
Library Manager: TMCStepper @ 0.7.1 has been installed!
Library Manager: Installing U8glib-HAL @ ~0.4.1
Library Manager: Warning! More than one package has been found by U8glib-HAL @ ~0.4.1 requirements:
 - marlinfirmware/U8glib-HAL @ 0.4.3
 - thinkyhead/U8glib-HAL @ 0.4.3
Library Manager: Please specify detailed REQUIREMENTS using package owner and version (showed above) to avoid name conflicts

Unpacking  [#####################---------------]   60%
Unpacking  [######################--------------]   61%
Unpacking  [######################--------------]   62%
Unpacking  [######################--------------]   63%
Unpacking  [#######################-------------]   64%
Unpacking  [#######################-------------]   65%
Unpacking  [#######################-------------]   66%
Unpacking  [########################------------]   66%
Unpacking  [########################------------]   67%
Unpacking  [########################------------]   68%
Unpacking  [########################------------]   69%
Unpacking  [#########################-----------]   69%
Unpacking  [#########################-----------]   70%
Unpacking  [#########################-----------]   71%
Unpacking  [##########################----------]   72%
Unpacking  [##########################----------]   73%
Unpacking  [##########################----------]   74%
Unpacking  [###########################---------]   75%
Unpacking  [###########################---------]   76%
Unpacking  [###########################---------]   77%
Unpacking  [############################--------]   77%
Unpacking  [############################--------]   78%
Unpacking  [############################--------]   79%
Unpacking  [############################--------]   80%
Unpacking  [#############################-------]   81%
Unpacking  [#############################-------]   82%
Unpacking  [#############################-------]   83%
Unpacking  [##############################------]   83%
Unpacking  [##############################------]   84%
Unpacking  [##############################------]   85%
Unpacking  [###############################-----]   86%
Unpacking  [###############################-----]   87%
Unpacking  [###############################-----]   88%
Unpacking  [################################----]   88%
Unpacking  [################################----]   89%
Unpacking  [################################----]   90%
Unpacking  [################################----]   91%
Unpacking  [#################################---]   92%
Unpacking  [#################################---]   93%
Unpacking  [#################################---]   94%
Unpacking  [##################################--]   94%
Unpacking  [##################################--]   95%
Unpacking  [##################################--]   96%
Unpacking  [###################################-]   97%
Unpacking  [###################################-]   98%
Unpacking  [###################################-]   99%
Unpacking  [####################################]  100%
Library Manager: U8glib-HAL @ 0.4.3 has been installed!
Found 31 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <SoftwareSerialM> 1.0.0
|-- <USBComposite for STM32F1> 0.91
|-- <TMCStepper> 0.7.1
|   |-- <SoftwareSerialM> 1.0.0
|-- <U8glib-HAL> 0.4.3
|   |-- <Wire> 1.0
|-- <STM32ADC> 1.0
|-- <EEPROM>
|-- <Wire> 1.0
|-- <FreeRTOS701>
|-- <Servo(STM32F1)> 1.1.2
Building in release mode
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduinoVariant\board.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduinoVariant\wirish\boards.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduinoVariant\wirish\boards_setup.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduinoVariant\wirish\start.S.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduinoVariant\wirish\start_c.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduinoVariant\wirish\syscalls.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\HardwareSerial.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\HardwareTimer.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\IPAddress.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\Print.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\Stream.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\WString.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\avr\dtostrf.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\cxxabi-compat.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\ext_interrupts.cpp.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\hooks.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\itoa.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\adc.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\adc_f1.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\bkp_f1.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\dac.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\dma.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\dma_f1.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\exc.S.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\exti.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\exti_f1.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\flash.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\fsmc_f1.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\gpio.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\gpio_f1.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\i2c.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\i2c_f1.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\iwdg.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\nvic.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\pwr.c.o
Assembler messages:
Fatal error: can't create .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\iwdg.c.o: No such file or directory
C:\Users\Owner\.platformio\packages\framework-arduinoststm32-maple@2.10000.200103\STM32F1\cores\maple\libmaple\i2c_f1.c:129:1: fatal error: opening dependency file .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\i2c_f1.c.d: No such file or directory
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\rcc.c.o
 }
 ^
compilation terminated.
C:\Users\Owner\.platformio\packages\framework-arduinoststm32-maple@2.10000.200103\STM32F1\cores\maple\libmaple\i2c.c:520:1: fatal error: opening dependency file .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\i2c.c.d: No such file or directory
 }
 ^
compilation terminated.
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\rcc_f1.c.o
Compiling .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\spi.c.o
*** [.pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\iwdg.c.o] Error 1
*** [.pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\i2c_f1.c.o] Error 1
*** [.pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\i2c.c.o] Error 1
C:\Users\Owner\.platformio\packages\framework-arduinoststm32-maple@2.10000.200103\STM32F1\cores\maple\libmaple\pwr.c:41:1: fatal error: opening dependency file .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\pwr.c.d: No such file or directory
 }
 ^
compilation terminated.
C:\Users\Owner\.platformio\packages\framework-arduinoststm32-maple@2.10000.200103\STM32F1\cores\maple\libmaple\nvic.c:103:1: fatal error: opening dependency file .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\nvic.c.d: No such file or directory
 }
 ^
compilation terminated.
*** [.pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\pwr.c.o] Error 1
*** [.pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\nvic.c.o] Error 1
C:\Users\Owner\.platformio\packages\framework-arduinoststm32-maple@2.10000.200103\STM32F1\cores\maple\libmaple\rcc.c:169:1: fatal error: opening dependency file .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\rcc.c.d: No such file or directory
 }
 ^
compilation terminated.
*** [.pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\rcc.c.o] Error 1
C:\Users\Owner\.platformio\packages\framework-arduinoststm32-maple@2.10000.200103\STM32F1\cores\maple\libmaple\rcc_f1.c:181:1: fatal error: opening dependency file .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\rcc_f1.c.d: No such file or directory
 }
 ^
compilation terminated.
*** [.pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\rcc_f1.c.o] Error 1
C:\Users\Owner\.platformio\packages\framework-arduinoststm32-maple@2.10000.200103\STM32F1\cores\maple\libmaple\spi.c:172:1: fatal error: opening dependency file .pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\spi.c.d: No such file or directory
 }
 ^
compilation terminated.
*** [.pio\build\STM32F103RC_btt_512K_USB\FrameworkArduino\libmaple\spi.c.o] Error 1
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Owner\\Downloads\\Marlin-2.0.x\\Marlin-2.0.x\\.pio\\build\\STM32F103RC_btt_512K_USB\\.sconsign37.tmp':
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\Main.py", line 1391:
    _exec_main(parser, values)
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\Main.py", line 1355:
    _main(parser)
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\Main.py", line 1126:
    nodes = _build_targets(fs, options, targets, target_top)
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\Main.py", line 1329:
    jobs.run(postfunc = jobs_postfunc)
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Job.py", line 113:
    postfunc()
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\Main.py", line 1326:
    SCons.SConsign.write()
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\SConsign.py", line 114:
    syncmethod()
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\dblite.py", line 130:
    f = self._open(self._tmp_name, "wb", self._mode)
Exception ignored in: <function dblite.__del__ at 0x000001FB60ED1708>
Traceback (most recent call last):
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\dblite.py", line 126, in __del__
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\dblite.py", line 123, in close
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\dblite.py", line 130, in sync
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Owner\\Downloads\\Marlin-2.0.x\\Marlin-2.0.x\\.pio\\build\\STM32F103RC_btt_512K_USB\\.sconsign37.tmp'
======================================================== [FAILED] Took 60.67 seconds ========================================================

Environment               Status    Duration
------------------------  --------  ------------
STM32F103RC_btt_512K_USB  FAILED    00:01:00.665
=================================================== 1 failed, 0 succeeded in 00:01:00.665 =================================================== 
The terminal process "C:\Users\Owner\.platformio\penv\Scripts\pio.exe 'run'" terminated with exit code: 1.

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

EDIT: WOW! I missed the most important part of your instructions “Ticked the dustbin/trash can button on the bottom toolbar to clean anything that might have been there previously.” So I went back and did it, and here is what I got.

RAM:   [====      ]  35.9% (used 17624 bytes from 49152 bytes)
Flash: [=====     ]  48.8% (used 255684 bytes from 524288 bytes)
======================================================== [SUCCESS] Took 51.95 seconds ========================================================

Environment               Status    Duration
------------------------  --------  ------------
STM32F103RC_btt_512K_USB  SUCCESS   00:00:51.950
======================================================== 1 succeeded in 00:00:51.950 ======================================================== 

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

Now all that is left, is trying it out. I will let you guys know if something is messed up and I need your AMAZING help.

Thanks so much for all the help. I am truly grateful that there are people like you guys in the world, who give without seeking reward. THANK YOU!!!

1 Like

My invoice will be in the post! :rofl: :rofl: :rofl:

Glad that we got it to compile, finally. Good luck with the results.

Cheers,
Norm.

1 Like