-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library 'L6470' attemp to compile exits with an error #3
Comments
WOW! That is a huge set of errors. Sadly I don’t know what it all means. if you just create a blank sketch with just this do you get the same errors?
|
I've patched the typos, and it should now compile! Version bumped to 0.6.1. |
Big thanks for your quick resonse to thinkyhead and ameyer. Error Log
I figured out that (one of) the problem(s) is the "=" sign after return in Line 316. If i remove it, the small programm compiles now. The Line is now:
But if I try to compile the Marlin code with activated L6470 then there are furthermore a lot of errors. I don´t know what the problem is. I am trying to figure it out. But I am not so expirienced.... Error Log
|
Sorry, accidently closed. I tried to compile with Marlin-configurator with platformio. With similar errors. |
Try to redownloading the code. Scott just made some changes to try and fix this. Make sure you quit arduino, trash the L6470 library, download the new version, put the new L6470 library in the arduino library folder then relaunch the arduino app to see if it works. |
Thanks! I tried again as described. Redownloaded and replaced the old files but it is as stated before:
then your short code and the example code in the Library compiles without an error. |
I'll look into it and patch the |
The issue seems to already be patched. You'll need to get #define _L6470_INIT(A) do{ \
- stepper##A.init(A##_K_VAL); \
+ stepper##A.init(); \
stepper##A.softFree(); \
stepper##A.setMicroSteps(A##_MICROSTEPS); \
stepper##A.setOverCurrent(A##_OVERCURRENT); \
stepper##A.setStallCurrent(A##_STALLCURRENT); \
}while(0) |
Hello thinkyhead! The Problem: The attemp to build the 0.61 version of L6470 library results in that error:
The error is a result of Line 56 in "L6470.cpp" where an Serial.println of an statusmessage
The solution for me is to simply comment out that line like this:
Then Marlin compiles without any error. I think it makes no difference in functionality. The L6470 example code compiles without error too. |
Thanks for the pointer! I've applied your suggestion to simply remove dependency on As an alternative we could just make the Serial object a constructor parameter. I also removed the custom overrides of Note that you'll still need to edit the library to set the I'll see to those pretty soon. Busy week ahead! |
Hello!
The Marlin Firmware now supports the L6470 Stepperdriver and needs this Library to support it.
I think it is a very interesting driver and so I ordered 2 Drivermodules.
Now i try to get it to work. I downloaded and installed the 'Arduino-L6470' library in the Arduino Ide 1.8.2.
It looks OK an I can select in Examples the example code. But if i try to compile it it exits with errors. If it activate the L6470 support the errors are the same. I tried it to compile in Arduino 1.0.1 (if it is an version problem). But it is the same. Unfortunately I am not an experienced arduino programmer. I don´t know whats the problem. I wonder that this library is necessary for Marlin but there is now further information...
Perhaps it is a stupid mistake from me. Thanks a lot.
Underneath the compiling errors of the L6470 example code
Error Log
The text was updated successfully, but these errors were encountered: