Cannot compile firmware (Sensorless Homing declared Void)

Look here for custom firmware, networked 3D printer hosts like OctoPrint, and more!
Post Reply
SappySE107
Posts: 2
Joined: Fri Dec 14, 2018 10:57 pm

Cannot compile firmware (Sensorless Homing declared Void)

Post by SappySE107 » Sat Dec 29, 2018 11:07 am

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?

SappySE107
Posts: 2
Joined: Fri Dec 14, 2018 10:57 pm

Re: Cannot compile firmware (Sensorless Homing declared Void)

Post by SappySE107 » Wed Jan 02, 2019 9:04 pm

How about an example of a working source for firmware?

supermanny
Posts: 2
Joined: Wed Aug 30, 2017 11:41 am

Re: Cannot compile firmware (Sensorless Homing declared Void)

Post by supermanny » Sun Jan 06, 2019 11:12 pm

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/

User avatar
Orias
Aleph Objects | LulzBot
Posts: 1411
Joined: Wed Mar 27, 2013 1:24 pm
Location: US

Re: Cannot compile firmware (Sensorless Homing declared Void)

Post by Orias » Mon Jan 07, 2019 4:20 pm

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.

Post Reply