Page 1 of 1

Cannot compile firmware (Sensorless Homing declared Void)

Posted: Sat Dec 29, 2018 11:07 am
by SappySE107
Downloaded the firmware source from lulzbot under the hibiscus (mini 2) folder. I get 61 pages of warnings for all the lulzbot variables being redefined, and an error that "variable or field 'tmc_sensorless_homing' declared void" Why? If this is a source for the firmware I am using right now, why won't it compile as it was written?

Re: Cannot compile firmware (Sensorless Homing declared Void)

Posted: Wed Jan 02, 2019 9:04 pm
by SappySE107
How about an example of a working source for firmware?

Re: Cannot compile firmware (Sensorless Homing declared Void)

Posted: Sun Jan 06, 2019 11:12 pm
by supermanny
The master branch compiled just fine, I used the build script and compiled for every version and toolhead combo this past weekend. There were some benign warnings, nothing that got me worried.

https://code.alephobjects.com/diffusion/MARLIN/

Re: Cannot compile firmware (Sensorless Homing declared Void)

Posted: Mon Jan 07, 2019 4:20 pm
by Orias
SappySE107 wrote:
Wed Jan 02, 2019 9:04 pm
How about an example of a working source for firmware?
What operating system do you use? We use GNU/Linux exclusively, but you should be able to use the same tools like make and gcc-avr on your operating system.

Start with the latest source from git: https://code.alephobjects.com/diffusion/MARLIN/

Alternatively, grab this zip archive: http://download.lulzbot.com/Software/Ma ... d1f804.zip

We prefer to use the build script to compile the all firmware all at once.

If you'd rather use the Arduino IDE, make sure you have the U8glib library installed. Turning on verbose logging during compilation and upload will be helpful as well.

Take these known-good sources, and compile the stock firmware to know that your build environment works. Once you have successfully compiled, minimize your variables by starting your modifications little by little, compiling after a change or two to make sure you're on the right track.