-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
Building using platformio with Marlin 1.1.0-RC6 #3724
Comments
Platformio is currently unmaintained and we're considering the option to remove its support from Marlin. This is the only method you have to upload Marlin to your board or you use it for any other reason ? |
I'm tried building the firmware using the arduino IDE and teensyduino. Also manual changes are needed on the hardware config files on the arduino folder to be able to select the printerboard. I tried using platformio as an alternative and (after adding the proper entries to the _version.h file) the whole build process worked without issues. What is the reason to remove support for platformio? Is not widely used or supported? |
@nicoruy Do you know the details of what it takes to make the current Arduino compile and upload to a PrintRboard? It would be very helpful if you could give a step by step set of direction to make that happen! |
Building using arduino The board on the printrboard is derived from the teensyboard. Unfortunately there is no reference to the printerboard after Teensyduino is installed, and it seems that the bootloader is different from the one used on the Teensy boards. After doing that I can select the printerboard in arduino and build an hex file (by pressing verify) The other issue with the arduino is that it's not possible to upload the firmware to the board directly from the IDE. After following that process I was able to compile the firmware and flash it to my printrboard. Building using platformIO (I need to fix the _Version.h as described on the issue and run it a second time to build it) I can use flip to upload the firmware or Information on how to do this was fouond here: The additional advantage is that the latest arduino is used, and also only used libraries are linked making the whole firmware smaller |
Thank You for the detail.... I'm reading everything now! |
Roxy, Wasn't this the problem Bo had? Regards, Ernesto
|
I actually was able to build and compile Marlin for a Printrbot board (Rev On 11 May 2016 at 07:58, emartinez167 [email protected] wrote:
|
@paulusjacobus I was putting the jumper on the correct position (I just forgot to mention on my coment above) and I was able to upload a precompiled firmware without issues using flip. The printer was recognized and it worked. Today I tried uploading the firmware built with platformIO. It seems I'm having problems building the firmware. |
Maybe it's possible to adapt https://github.com/sudar/Arduino-Makefile to Marlin and cover more bases. |
I don't know for sure. But they are suspiciously similar. |
I found the problem why my printer was not recognized. |
I'm working on PR #3715 which is deeply tied up with this issue. You may see the information here: https://goo.gl/gFpujH A question to the elder ones, anyone knows wtf is the board 99 ? |
@jbrazio Board 99 can go away now. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm running "platformio run -e printrboard" to build Marlin for my Printrbot.
The _Version.h file is generated, but some entries are missing.
SanityCheck makes the build to fail.
The missing entries are:
PROTOCOL_VERSION
MACHINE_NAME
SOURCE_CODE_URL
DEFAULT_MACHINE_UUID
WEBSITE_URL
I manually added those entries to the _Version.h file and the build succeeded
The text was updated successfully, but these errors were encountered: