Git Product home page Git Product logo

Comments (8)

thisiskeithb avatar thisiskeithb commented on June 12, 2024 1

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.

thisiskeithb avatar thisiskeithb commented on June 12, 2024

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.

mh-alinaghipour avatar mh-alinaghipour commented on June 12, 2024

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.

thisiskeithb avatar thisiskeithb commented on June 12, 2024

Please attach your bugfix-2.1.x configs.

from marlin.

mh-alinaghipour avatar mh-alinaghipour commented on June 12, 2024

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.

thisiskeithb avatar thisiskeithb commented on June 12, 2024

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.

mh-alinaghipour avatar mh-alinaghipour commented on June 12, 2024

I compile(verify) and upload Marlin onto my Arduino Due board with Arduino IDE 2.3.2 on Windows 11.

from marlin.

mh-alinaghipour avatar mh-alinaghipour commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.