Notifications
Clear all

[Closed] Building firmware  

  RSS
RubenRybnik
(@rubenrybnik)
Eminent Member
Building firmware

Up front, I have not tried to flash this yet, I'll have a chance in the next day or two and update if I remember.

I've been using http://docs.platformio.org/en/latest/what-is-platformio.html for almost all by embedded development projects lately. Wanted to see if it worked for compiling this firmware. Turns out it was quite simple. The firmware seems to build fine ( and fast ) but like I said, haven't tried flashing yet. YMMV here are the abbreviated steps, this assumes you have platformio setup and available on the command line, see their docs for more info.

1. Initialize the project (run from root of repo) pio init -b reprap_rambo

2. Edit `platformio.ini` add below lines

[platformio]
src_dir = Firmware
build_dir = .out

3. Copy configuration for you machine (run from root of repo) cp ./Firmware/variants/1_75mm_MK2-RAMBo13a-E3Dv6full.h
./Firmware/Configuration_prusa.h

4. Build project (run from repo root) pio run
5. Profit, hex file will be in repo root/.out/reprap_rambo/firmware.hex

Prusa MK 2.25 (Downgraded MMU on MK2 with MK3 printed parts)
Prusa MK3 Kit

Posted : 05/04/2018 1:50 am
jafras
(@jafras)
Active Member
Re: Building firmware

Not sure how you fared with this, but I had to add the build flags from Prusa's build guide, like so:

[env]
platform = atmelavr
lib_extra_dirs = ~/Documents/Arduino/libraries
board = reprap_rambo
framework = arduino
build_flags =
-w -Os -Wl,-u,vfprintf -lprintf_flt -lm
-Wl,--gc-sections

It would still compile prior to that but floats would only show question marks on the LCD display.

Posted : 02/09/2018 9:46 pm
Share: