Jump to content
Ultimaker Community of 3D Printing Experts
Sign in to follow this  
kevin-osborn

Error building Ultimaker2Marlin

Recommended Posts

Hi gang, I built the firmware from source a while ago, and wanted to try the latest, and after modifying my makefile, I get this linker error:

C:Ultimaker2MarlinMarlin>make build

CXX applet/Marlin.elf

applet/SdFile.o:(.rodata._ZTV6SdFile+0x8): undefined reference to `Print::write(

unsigned char const*, unsigned int)'

make: *** [applet/Marlin.elf] Error 1

 

Did I miss something?

 

(btw, I'm pointing to a copy of arduino022 for build)

 

Share this post


Link to post
Share on other sites

Sorry I can't answer you question directly. However, I can tell you that I used the Arduino IDE to rebuild the UM version of marlin (found on the UM open source page) without a problem. There is a pde you can open to build it in the IDE,

You might give that a try.

 

Share this post


Link to post
Share on other sites

Hmmm, not sure what you mean. I just unzipped the Arduino IDE, open up the marlin pde, changing configuration.h and upload.

I guess I don't understand why you are modifying the standard libraries. In fact, I believe the arduino IDE zip comes with everything you need and should only use the libraries from within it.

I'm talking Windows 7 so that might be the difference.

 

Share this post


Link to post
Share on other sites

I guess I don't understand why you are modifying the standard libraries. In fact, I believe the arduino IDE zip comes with everything you need and should only use the libraries from within it.

 

The Arduino IDE always defines the TWI interrupt, however the UM2 firmware needs to have this interrupt to it's own use. (For performance reasons)

Kevin, I recommend pointing at an Arduino 1.0.1, and the Makefile might be missing bits&pieces. I'm using a Code::Blocks project to build the firmware myself.

 

Share this post


Link to post
Share on other sites

I use the Makefile build. http://goo.gl/xSQnbc is my latest; it works with arduino 1.0.1 and firmware version 14.06.1 and 14.06.2. (Just noticed I need to update the arduino version comment at the top -- that'll be in my next pull request to Daid.)

 

I'm using Linux, but don't know of any reason why it shouldn't work on other platforms. Since Daid doesn't use the Makefile, I intend to keep this updated in https://github.com/stevegt/Ultimaker2Marlin, and expect to continue forwarding pull requests upstream to Daid.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!