Comments (8)
I compile(verify) and upload Marlin onto my Arduino Due board with Arduino IDE 2.3.2 on Windows 11.
Please use VSCode with PlatformIO instead: Link.
Also, from our README:
You can still build Marlin with Arduino IDE, and we hope to improve the Arduino build experience, but at this time PlatformIO is the better choice.
from marlin.
Your configs & code snippets are all from 2.1.2.2
.
Please download bugfix-2.1.x
to test with the latest code and let us know if you're still having this issue.
from marlin.
I just downloaded the latest bugfix-2.1.x version and tested defining additional axes as rotational. New compiling errors occur:
\Marlin-bugfix-2.1.x\Marlin\src\lcd\HD44780\marlinui_HD44780.cpp: In static member function 'static void MenuItem_static::draw(uint8_t, FSTR_P, uint8_t, const char*)':
\Marlin-bugfix-2.1.x\Marlin\src\lcd\HD44780\marlinui_HD44780.cpp:1210:43: error: variable-sized object 'estr' may not be initialized
char estr[calculateWidth(ftpl) + 3] = "\0";
^
exit status 1
Compilation error: variable-sized object 'estr' may not be initialized
I was able to fix the above by implementing these changes to "\Marlin-bugfix-2.1.x\Marlin\src\lcd\HD44780\marlinui_HD44780.cpp"
, (line 1210):
--char estr[calculateWidth(ftpl) + 3] = "\0";
++char estr[calculateWidth(ftpl) + 3];
++memset(estr, 0, (calculateWidth(ftpl) + 3)*(calculateWidth(ftpl) + 3)*sizeof(char));
But after that, the exact same pragma GCC diagnostics errors occur in "\Marlin-bugfix-2.1.x\\Marlin\src\module\temperature.cpp"
(lines 3103 & 4117):
\Marlin-bugfix-2.1.x\Marlin\src\module\temperature.cpp:3103:26: error: missing binary operator before token "("
#if __has_cpp_attribute(fallthrough)
^
\Marlin-bugfix-2.1.x\Marlin\src\module\temperature.cpp:4117:28: error: missing binary operator before token "("
#if __has_cpp_attribute(fallthrough)
^
exit status 1
Compilation error: missing binary operator before token "("
which I was able to fix by doing the same changes to suppress pragma GCC diagnostics errors in the previous comment.
Configs:
Marlin-bugfix-2.1.x-config.zip
from marlin.
Please attach your bugfix-2.1.x
configs.
from marlin.
Please attach your
bugfix-2.1.x
configs.
bugfix-2.1.x Configs:
https://github.com/MarlinFirmware/Marlin/files/14865695/Marlin-bugfix-2.1.x-config.zip
from marlin.
How are you compiling your build? Compiling works fine under macOS with VSCode + PlatformIO:
Processing DUE (platform: atmelsam; board: due; framework: arduino)
-----------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelsam/due.html
PLATFORM: Atmel SAM (8.2.0) > Arduino Due (Programming Port)
HARDWARE: AT91SAM3X8E 84MHz, 96KB RAM, 512KB Flash
DEBUG: Current (atmel-ice) External (atmel-ice, blackmagic, jlink, stlink)
PACKAGES:
- framework-arduino-sam @ 1.6.12
- framework-cmsis @ 1.40500.0 (4.5.0)
- framework-cmsis-atmel @ 1.2.2
- toolchain-gccarmnoneeabi @ 1.70201.0 (7.2.1)
Converting Marlin.ino
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 4 compatible libraries
Scanning dependencies...
Dependency Graph
|-- LiquidCrystal @ 1.5.1
|-- Wire @ 1.0
|-- SPI @ 1.0
Building in release mode
...
Archiving .pio/build/DUE/libFrameworkArduino.a
Indexing .pio/build/DUE/libFrameworkArduino.a
Linking .pio/build/DUE/firmware.elf
Checking size .pio/build/DUE/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 11.5% (used 11280 bytes from 98304 bytes)
Flash: [==== ] 43.9% (used 230184 bytes from 524288 bytes)
Building .pio/build/DUE/firmware.bin
============================= [SUCCESS] Took 22.12 seconds =============================
Environment Status Duration
------------- -------- ------------
DUE SUCCESS 00:00:22.117
============================== 1 succeeded in 00:00:22.117 ==============================
* Terminal will be reused by tasks, press any key to close it.
from marlin.
I compile(verify) and upload Marlin onto my Arduino Due board with Arduino IDE 2.3.2 on Windows 11.
from marlin.
I compile(verify) and upload Marlin onto my Arduino Due board with Arduino IDE 2.3.2 on Windows 11.
Please use VSCode with PlatformIO instead: Link.
Also, from our README:
You can still build Marlin with Arduino IDE, and we hope to improve the Arduino build experience, but at this time PlatformIO is the better choice.
Thank you. I installed PlatformIO on my VSCode and managed to compile without errors.
from marlin.
Related Issues (20)
- I need help with building marlin HOT 1
- [BUG] Marlin 2.1.2.2 Known Issues HOT 1
- [FR] "HotBed" Idle Timeout HOT 3
- [BUG] G28 causes incorrect Z-axis 0-point when using KlackEnder HOT 7
- [FR] Support FAN_KICKSTART_TIME for LASER_SYNCHRONOUS_M106_M107
- vibrating x stepper motor while safe homing HOT 1
- [FR] Add fanuc m84 threading code HOT 5
- [FR] Add pin debug.h file in Hal esp32 HOT 2
- [FR] Add Esp32 PCF8575 library HOT 4
- [FR] I2C Position Encoders support for Esp32 HOT 1
- [FR] Restart motherboard to DFU mode
- [BUG] Setting EXTRUDERS 0 fails to compile HOT 3
- [FR] Linuxcnc and Fanuc compatibility HOT 6
- [BUG] MKS TinyBee Occasionally Fails to Execute G-code. HOT 7
- [BUG]#error Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN requires the Z_MIN_PIN to be defined." HOT 2
- [FR] M23 with long name HOT 2
- [BUG]2.1.2.2 Unable to Compile HOT 1
- [FR] G34 doesn't respect the X-axis twist compensation
- [BUG] M20 L skips folders if names are just numbers HOT 1
- [BUG] Unable to boot with any compiled commit after 2024-03-28 on the Ender 3 V2 Neo with an SKR3 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from marlin.