KerseyFabrications / marlin_e5p

Modified Marlin for Creality Ender 5 Plus (Released by Creality)
60 stars 27 forks source link

How to build it? #3

Closed traysh closed 1 year ago

traysh commented 3 years ago

I see there is a Makefile in Marlin folder. How do I use it to build the firmware?

Thanks in advance

jimberg98 commented 3 years ago

I see there is a Makefile in Marlin folder. How do I use it to build the firmware?

Thanks in advance

Building it is one of the best guarded secrets for some reason.

Have you tried using the Arduino IDE?

EDIT: I was able to build it with the Arduino IDE. It's strange how it works. I opened the MAKEFILE (I don't think the file you pick matters as long as it's in the folder with the source code), selected Tools and set my board type to 'Arduino Mega or Arduino Mega 2560' and then selected Verify/Compile from the Sketch menu. I haven't uploaded it yet, so stay tuned.

traysh commented 3 years ago

I did not. Probably it is a good start.

Em sex., 14 de mai. de 2021 às 09:51, jimberg98 @.***> escreveu:

I see there is a Makefile in Marlin folder. How do I use it to build the firmware?

Thanks in advance

Building it is one of the best guarded secrets for some reason.

Have you tried using the Arduino IDE?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/KerseyFabrications/marlin_e5p/issues/3#issuecomment-841078948, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH4QLVP4OOKCDGOUYFI2ATTNTI7LANCNFSM432YX2OQ .

traysh commented 3 years ago

Ok, I did it both using the IDE and arduino-cli.

To build it using arduino-cli, I run:

arduino-cli compile -b arduino:avr:mega -v --clean -e

in Marlin folder.

arduino-cli docs can be found here: https://www.arduino.cc/pro/cli

KerseyFabrications commented 3 years ago

Sorry for the delay all. I don't do a lot of interacting directly on GitHub usually but I'll add it to my list. I'll get back to you on specifics but what has been said is correct. For this release, you have to use the Arduino IDE because it's based on an old Marlin release. You can select the Arduino Mega or Mega 2560 under Arduino AVR Boards. Then you can upload it directly connected to the board. I hope this is something "more official."