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

@maxgerhardt
what do you mean by “Do you have spaces in your username which could break the path encoding?”

I have not deleted any files but I did download the files from this video:
SKR Mini E3 - The best Ender 3 upgrade from stock? - YouTube
In the description, there is a section called “Free complied firmware to save you time:” and I used the “BLtouch with ‘standard’ mount: https://gum.co/pqrhF” file.

I’d suggest going direct to the Marlin FW page (https://marlinfw.org/) and downloading the original source there. You should be able to take the Configuration.h and Configuration_adv.h files from your previous download and inserting them into a fresh Marlin source download. Then try compiling and see what you get.

No idea about BLtouch/Standard mount configurations (I’m running a FoldaRap and Mendel90) but typically those two files (Configuration.h and maybe Configuration_adv.h) are all you need to touch with Marlin

edit: You may also want to update platformio.ini file in there as well to match the original download.

What this means is, on Windows, what is your user/login name? Mine is “norman” and my “home” folder is C:\Users\norman. Some logon/usernames have spaces – “fred bloggs” will have a home folder of c:\Users\fred bloggs – that stops a few things from working correctly. Marlin compiles being one of them.

Cheers,
Norm.

@normandunbar @cdabone
OK, so I redownloaded the marlin bugfix firmware 2.0.x online. I replaced the configuration.h and configurationadv.h with my edited ones, but this is what happened when I tried to build.

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

Processing STM32F103RC_btt_512K (platform: ststm32@~10.0; board: genericSTM32F103RC; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------
Platform Manager: Installing ststm32 @ ~10.0
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Platform Manager: ststm32 @ 10.0.0 has been installed!
Tool Manager: Removing toolchain-gccarmnoneeabi @ 1.90201.191206
Tool Manager: toolchain-gccarmnoneeabi @ 1.90201.191206 has been removed!
The platform 'ststm32@~10.0' has been successfully installed!
The rest of the packages will be installed later depending on your build environment.
Tool Manager: Installing platformio/framework-arduinoststm32-maple @ ~3.10000.0
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Tool Manager: framework-arduinoststm32-maple @ 3.10000.201129 has been installed!
Verbose mode can be enabled via `-v, --verbose` option
'"CC"' is not recognized as an internal or external command,
operable program or batch file.
CalledProcessError: Command '"CC" -DTARGET_STM32F1 -D__MARLIN_FIRMWARE__ -DARDUINO_ARCH_STM32 -DDEBUG_LEVEL=0 -DSS_TIMER=4 -DSTM32_FLASH_SIZE=512 -D__MARLIN_DEPS__ -w -dM -E -x c++ buildroot/share/PlatformIO/scripts/common-dependencies.h' returned non-zero exit status 1.:
  File "C:\Users\Owner\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 168:
    env.SConscript(item, exports="env")
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 598:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 287:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "C:\Users\Owner\Downloads\Marlin-bugfix-2.0.X\Marlin-bugfix-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 311:  
    apply_features_config()
  File "C:\Users\Owner\Downloads\Marlin-bugfix-2.0.X\Marlin-bugfix-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 142:  
    if not env.MarlinFeatureIsEnabled(feature):
  File "C:\Users\Owner\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
    return self.method(*nargs, **kwargs)
  File "C:\Users\Owner\Downloads\Marlin-bugfix-2.0.X\Marlin-bugfix-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 287:  
    load_marlin_features()
  File "C:\Users\Owner\Downloads\Marlin-bugfix-2.0.X\Marlin-bugfix-2.0.x\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 275:
    define_list = subprocess.check_output(cmd, shell=True).splitlines()
  File "C:\Users\Owner\.platformio\python3\lib\subprocess.py", line 411:
    **kwargs).stdout
  File "C:\Users\Owner\.platformio\python3\lib\subprocess.py", line 512:
    output=stdout, stderr=stderr)
========================================================= [FAILED] Took 128.82 seconds =========================================================

Environment           Status    Duration
--------------------  --------  ------------
STM32F103RC_btt_512K  FAILED    00:02:08.816
==================================================== 1 failed, 0 succeeded in 00:02:08.816 ==================================================== 
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.

any ideas?

That error about “CC” not being found looks to be Issue 18959 from Marlin.

I wonder if you have downloaded the latest bugfix Marlin release?

Can you post the download link and I’ll attempt to compile it myself. There was another issue raising this error on Windows only, but that was fixed back in September.

I also assume that you are building by following These instructions?

Cheers,
Norm.

It looks like progress, so that’s good :slight_smile:
I generally build inside of a Debian VM (sometimes linux just works better :smiley: )

1 Like

@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.