When I use your project and try to run it I get
C:\Users\Max\Downloads\Marlin>pio run
Error: Unknown environment names ‘STM32F103RET6_Creality’. Valid names are ‘BIGTREE_GTR_V1_0, DUE, STM32F103RC, FLY_MINI, STM32F103RE_btt, STM32F103VE_longer, esp32, DUE_archim_debug, jgaurora_a5s_a1, include_tree, DUE_USB, mks_robin_lite3, chitu_v5_gpio_init, STM32F7, mks_robin_stm32, at90usb1286_dfu, STM32F103RC_btt_512K, FYSETC_F6_14, sanguino1284p, STM32F103RC_btt_512K_USB, STM32F103RE, mks_robin, FLYF407ZG, rumba32, MightyBoard2560, teensy36, STM32F103RE_btt_USB, rambo, teensy41, DUE_debug, melzi, STM32F103RC_btt, SAMD51_grandcentral_m4, LPC1768, mega2560, trigorilla_pro, teensy31, ARMED, STM32F103RC_btt_USB, melzi_optiboot, mks_robin_pro, STM32F103RC_fysetc, mks_robin_e3p, melzi_optimized, FYSETC_S6, mks_robin_mini, MightyBoard1280, STM32F407VE_black, at90usb1286_cdc, mks_robin_e3, mks_robin_lite, BIGTREE_SKR_PRO, LERDGES, LERDGEK, LERDGEX, STM32F103VE_GTM32, DUE_archim, mega2560ext, sanguino644p, STM32F103RC_meeb, NUCLEO_F767ZI, LPC1769, malyan_M300, chitu_f103, STM32F4, mks_robin_nano35, STM32F103RET6_creality, teensy35, linux_native, STM32F103CB_malyan, STM32F070CB_malyan, STM32F401VE_STEVAL, BIGTREE_BTT002, STM32F070RB_malyan, mega1280, FYSETC_F6_13’
The error is correct since the environment is defined as
[env:STM32F103RET6_creality]
and not STM32F103RET6_Creality
(mind the lower-uppercase).
After that, compilation starts but quickly runs into errors.
c:\users\max\downloads\marlin\marlin\src\pins\ramps/pins_RAMPS.h:51:4: error: #error “Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1.”
Looking at your Marlin\Marlin
folder, the Configuration.h
etc. files are for a #define MOTHERBOARD BOARD_RAMPS_14_EFB
board. You seem to have placed the configuration files which you want to use in the Marlin/config
folder, where they are completely ignored. They must be in the Marlin\Marlin
folder.
Copying those over and re-running compilation gives me
Building .pio\build\STM32F103RET6_creality\firmware-20210321-193519.bin
Checking size .pio\build\STM32F103RET6_creality\firmware-20210321-193519.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [== ] 16.0% (used 10480 bytes from 65536 bytes)
Flash: [==== ] 37.9% (used 198940 bytes from 524288 bytes)
============== [SUCCESS] Took 26.03 seconds ==============
Environment Status Duration
---------------------- -------- ------------
STM32F103RET6_creality SUCCESS 00:00:26.030
=============== 1 succeeded in 00:00:26.030 ===============
So, all is well.