Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
Was Trying to compile latest Bugfix-2.0.x with Ender 6 Config.h files. It Failed. The terminal output is below:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Marlin\src\lcd\extui\lib\dgus\DGUSScreenHandler.cpp:564:13: note: in expansion of macro 'sprintf_P'
sprintf_P(buf, PSTR("M303 E-1 C5 S70 U1"));
^~~~~
Compiling .pio\build\STM32F103RET6_creality\src\src\lcd\marlinui.cpp.o
[.pio\build\STM32F103RET6_creality\src\src\lcd\extui\lib\dgus\DGUSScreenHandler.cpp.o] Error 1
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp: In static member function 'static void DGUSScreenHandler::DGUSLCD_SD_FileSelected(DGUS_VP_Variable&, void)':
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:47:22: error: 'filelist' was not declared in this scope
if (touched_nr > filelist.count()) return;
^~~~
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:47:22: note: suggested alternative: 'filepos_t'
if (touched_nr > filelist.count()) return;
^~~~
filepos_t
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:48:10: error: 'filelist' was not declared in this scope
if (!filelist.seek(touched_nr)) return;
^~~~
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:48:10: note: suggested alternative: 'filepos_t'
if (!filelist.seek(touched_nr)) return;
^~~~
filepos_t
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:50:9: error: 'filelist' was not declared in this scope
if (filelist.isDir()) {
^~~~
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:50:9: note: suggested alternative: 'filepos_t'
if (filelist.isDir()) {
^~~~
filepos_t
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:65:87: error: 'filelist' was not declared in this scope
HandleUserConfirmationPopUp(VP_SD_FileSelectConfirm, nullptr, PSTR("Print file"), filelist.filename(), PSTR("from SD Card?"), true, true, false, true);
^~~~
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:65:87: note: suggested alternative: 'filepos_t'
HandleUserConfirmationPopUp(VP_SD_FileSelectConfirm, nullptr, PSTR("Print file"), filelist.filename(), PSTR("from SD Card?"), true, true, false, true);
^~~~
filepos_t
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp: In static member function 'static void DGUSScreenHandler::DGUSLCD_SD_StartPrint(DGUS_VP_Variable&, void)':
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:69:10: error: 'filelist' was not declared in this scope
if (!filelist.seek(file_to_print)) return;
^~~~
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:69:10: note: suggested alternative: 'filepos_t'
if (!filelist.seek(file_to_print)) return;
filepos_t
compilation terminated due to -fmax-errors=5.
[.pio\build\STM32F103RET6_creality\src\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp.o] Error 1
============================== [FAILED] Took 25.18 seconds ==============================
This is the first time that I have tried compiling Marlin. Following "Teaching Tech's" youtube video titled "Updated Marlin Firmware Setup Guide - VS Code and auto build Marlin
Expected behavior
I expected it to compile without errors.
Actual behavior
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Marlin\src\lcd\extui\lib\dgus\DGUSScreenHandler.cpp:564:13: note: in expansion of macro 'sprintf_P'
sprintf_P(buf, PSTR("M303 E-1 C5 S70 U1"));
^~~~~
Compiling .pio\build\STM32F103RET6_creality\src\src\lcd\marlinui.cpp.o
[.pio\build\STM32F103RET6_creality\src\src\lcd\extui\lib\dgus\DGUSScreenHandler.cpp.o] Error 1
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp: In static member function 'static void DGUSScreenHandler::DGUSLCD_SD_FileSelected(DGUS_VP_Variable&, void)':
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:47:22: error: 'filelist' was not declared in this scope
if (touched_nr > filelist.count()) return;
^~~~
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:47:22: note: suggested alternative: 'filepos_t'
if (touched_nr > filelist.count()) return;
^~~~
filepos_t
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:48:10: error: 'filelist' was not declared in this scope
if (!filelist.seek(touched_nr)) return;
^~~~
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:48:10: note: suggested alternative: 'filepos_t'
if (!filelist.seek(touched_nr)) return;
^~~~
filepos_t
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:50:9: error: 'filelist' was not declared in this scope
if (filelist.isDir()) {
^~~~
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:50:9: note: suggested alternative: 'filepos_t'
if (filelist.isDir()) {
^~~~
filepos_t
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:65:87: error: 'filelist' was not declared in this scope
HandleUserConfirmationPopUp(VP_SD_FileSelectConfirm, nullptr, PSTR("Print file"), filelist.filename(), PSTR("from SD Card?"), true, true, false, true);
^~~~
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:65:87: note: suggested alternative: 'filepos_t'
HandleUserConfirmationPopUp(VP_SD_FileSelectConfirm, nullptr, PSTR("Print file"), filelist.filename(), PSTR("from SD Card?"), true, true, false, true);
^~~~
filepos_t
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp: In static member function 'static void DGUSScreenHandler::DGUSLCD_SD_StartPrint(DGUS_VP_Variable&, void)':
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:69:10: error: 'filelist' was not declared in this scope
if (!filelist.seek(file_to_print)) return;
^~~~
Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:69:10: note: suggested alternative: 'filepos_t'
if (!filelist.seek(file_to_print)) return;
filepos_t
compilation terminated due to -fmax-errors=5.
[.pio\build\STM32F103RET6_creality\src\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp.o] Error 1
============================== [FAILED] Took 25.18 seconds ==============================
1 Open Folder Containing unzipped Marlin-Bugfix 2.0x
Opened Marlin Folder
Copied then Config files from the Ender 6 in the "Examples" folder under the Configurations-bugfix-2.0x folder
4 started VS
5 Opened Folder containing unzipped Marlin-Bugfix 2.0x files
6 Clicked on "Auto Build Marlin" icon in left margin
7 Clicked on the spanner at the left top.
Compilation starts until error is detected.
Did you test the latest
bugfix-2.0.x
code?Yes, and the problem still exists.
Bug Description
Was Trying to compile latest Bugfix-2.0.x with Ender 6 Config.h files. It Failed. The terminal output is below: Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS D:\A> platformio run -e STM32F103RET6_creality Processing STM32F103RET6_creality (platform: ststm32@~12.0; board: genericSTM32F103RE; framework: arduino) ------------------------------------------------------------------------------------------Verbose mode can be enabled via
-v, --verbose
option CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103RE.html PLATFORM: ST STM32 (12.0.0) > STM32F103RE (64k RAM. 512k Flash) HARDWARE: STM32F103RET6 72MHz, 64KB RAM, 512KB Flash DEBUG: Current (jlink) External (blackmagic, cmsis-dap, jlink, stlink) PACKAGES:define sprintf_P(s, f, ...) sprintf((s), (f), __VA_ARGS__)
Marlin\src\lcd\extui\lib\dgus\DGUSScreenHandler.cpp:564:13: note: in expansion of macro 'sprintf_P' sprintf_P(buf, PSTR("M303 E-1 C5 S70 U1")); ^
~~~~ Compiling .pio\build\STM32F103RET6_creality\src\src\lcd\marlinui.cpp.o [.pio\build\STM32F103RET6_creality\src\src\lcd\extui\lib\dgus\DGUSScreenHandler.cpp.o] Error 1 Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp: In static member function 'static void DGUSScreenHandler::DGUSLCD_SD_FileSelected(DGUS_VP_Variable&, void)': Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:47:22: error: 'filelist' was not declared in this scope if (touched_nr > filelist.count()) return; ^~~~ Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:47:22: note: suggested alternative: 'filepos_t' if (touched_nr > filelist.count()) return; ^~~~ filepos_t Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:48:10: error: 'filelist' was not declared in this scope if (!filelist.seek(touched_nr)) return; ^~~~ Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:48:10: note: suggested alternative: 'filepos_t' if (!filelist.seek(touched_nr)) return; ^~~~ filepos_t Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:50:9: error: 'filelist' was not declared in this scope if (filelist.isDir()) { ^~~~ Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:50:9: note: suggested alternative: 'filepos_t' if (filelist.isDir()) { ^~~~ filepos_t Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:65:87: error: 'filelist' was not declared in this scope HandleUserConfirmationPopUp(VP_SD_FileSelectConfirm, nullptr, PSTR("Print file"), filelist.filename(), PSTR("from SD Card?"), true, true, false, true); ^~~~ Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:65:87: note: suggested alternative: 'filepos_t' HandleUserConfirmationPopUp(VP_SD_FileSelectConfirm, nullptr, PSTR("Print file"), filelist.filename(), PSTR("from SD Card?"), true, true, false, true); ^~~~ filepos_t Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp: In static member function 'static void DGUSScreenHandler::DGUSLCD_SD_StartPrint(DGUS_VP_Variable&, void)': Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:69:10: error: 'filelist' was not declared in this scope if (!filelist.seek(file_to_print)) return; ^~~~ Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:69:10: note: suggested alternative: 'filepos_t' if (!filelist.seek(file_to_print)) return; filepos_t compilation terminated due to -fmax-errors=5. [.pio\build\STM32F103RET6_creality\src\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp.o] Error 1 ============================== [FAILED] Took 25.18 seconds ==============================Environment Status Duration
STM32F103RET6_creality FAILED 00:00:25.180 ========================= 1 failed, 0 succeeded in 00:00:25.180 ========================= PS D:\A> echo "done" >C:\Users\fredl\AppData\Local\Temp\ipc PS D:\A>
Bug Timeline
This is the first time that I have tried compiling Marlin. Following "Teaching Tech's" youtube video titled "Updated Marlin Firmware Setup Guide - VS Code and auto build Marlin
Expected behavior
I expected it to compile without errors.
Actual behavior
Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS D:\A> platformio run -e STM32F103RET6_creality Processing STM32F103RET6_creality (platform: ststm32@~12.0; board: genericSTM32F103RE; framework: arduino) ------------------------------------------------------------------------------------------Verbose mode can be enabled via
-v, --verbose
option CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103RE.html PLATFORM: ST STM32 (12.0.0) > STM32F103RE (64k RAM. 512k Flash) HARDWARE: STM32F103RET6 72MHz, 64KB RAM, 512KB Flash DEBUG: Current (jlink) External (blackmagic, cmsis-dap, jlink, stlink) PACKAGES:define sprintf_P(s, f, ...) sprintf((s), (f), __VA_ARGS__)
Marlin\src\lcd\extui\lib\dgus\DGUSScreenHandler.cpp:564:13: note: in expansion of macro 'sprintf_P' sprintf_P(buf, PSTR("M303 E-1 C5 S70 U1")); ^
~~~~ Compiling .pio\build\STM32F103RET6_creality\src\src\lcd\marlinui.cpp.o [.pio\build\STM32F103RET6_creality\src\src\lcd\extui\lib\dgus\DGUSScreenHandler.cpp.o] Error 1 Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp: In static member function 'static void DGUSScreenHandler::DGUSLCD_SD_FileSelected(DGUS_VP_Variable&, void)': Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:47:22: error: 'filelist' was not declared in this scope if (touched_nr > filelist.count()) return; ^~~~ Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:47:22: note: suggested alternative: 'filepos_t' if (touched_nr > filelist.count()) return; ^~~~ filepos_t Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:48:10: error: 'filelist' was not declared in this scope if (!filelist.seek(touched_nr)) return; ^~~~ Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:48:10: note: suggested alternative: 'filepos_t' if (!filelist.seek(touched_nr)) return; ^~~~ filepos_t Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:50:9: error: 'filelist' was not declared in this scope if (filelist.isDir()) { ^~~~ Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:50:9: note: suggested alternative: 'filepos_t' if (filelist.isDir()) { ^~~~ filepos_t Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:65:87: error: 'filelist' was not declared in this scope HandleUserConfirmationPopUp(VP_SD_FileSelectConfirm, nullptr, PSTR("Print file"), filelist.filename(), PSTR("from SD Card?"), true, true, false, true); ^~~~ Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:65:87: note: suggested alternative: 'filepos_t' HandleUserConfirmationPopUp(VP_SD_FileSelectConfirm, nullptr, PSTR("Print file"), filelist.filename(), PSTR("from SD Card?"), true, true, false, true); ^~~~ filepos_t Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp: In static member function 'static void DGUSScreenHandler::DGUSLCD_SD_StartPrint(DGUS_VP_Variable&, void)': Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:69:10: error: 'filelist' was not declared in this scope if (!filelist.seek(file_to_print)) return; ^~~~ Marlin\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp:69:10: note: suggested alternative: 'filepos_t' if (!filelist.seek(file_to_print)) return; filepos_t compilation terminated due to -fmax-errors=5. [.pio\build\STM32F103RET6_creality\src\src\lcd\extui\lib\dgus\origin\DGUSScreenHandler.cpp.o] Error 1 ============================== [FAILED] Took 25.18 seconds ==============================Environment Status Duration
STM32F103RET6_creality FAILED 00:00:25.180 ========================= 1 failed, 0 succeeded in 00:00:25.180 ========================= PS D:\A> echo "done" >C:\Users\fredl\AppData\Local\Temp\ipc PS D:\A>
Steps to Reproduce
1 Open Folder Containing unzipped Marlin-Bugfix 2.0x
Version of Marlin Firmware
Creality V4.3.1
Printer model
Creality Ender 6 V4.3.1 for board STM32F103RE
Electronics
Stock Electronics
Add-ons
No response
Your Slicer
Cura
Host Software
OctoPrint