Welcome! Log In Create A New Profile

Advanced

Arduino 1.8.7 support for Gen7 V1.5 (apply also V1.4)

Posted by zayoo 
Arduino 1.8.7 support for Gen7 V1.5 (apply also V1.4)
December 08, 2018 08:21AM
Hello all,

I can say that my Gen7 1.4 board work great after several years. But I did some upgrade on printer and I would like to compile Marlin 1.1.9 version.

I have next software's versions:

Arduino IDE 1.8.7
hardware: Gen7 Arduino IDE Support v2.1 Compatible with Arduino 1.0.3 to 1.0.5.
Marlin surce code 1.1.9
Gen 7 v1.5 electronic with ATmega 1284P

Because arduino hardver gen7 support is only to arduino version 1.0.5 I did some research and upgrade bords.txt file to ride off some warnings following instruction on Arduino Hardware Cores migration guide from 1.0 to 1.6

But still I have next error messages while compiling:

Detecting libraries used...
recipe.preproc.macros pattern is missing

Error compiling for board Gen7 with ATmega1284P and 20 MHz.

Please, do anybody know solution for this issue?

Thank you
Zayoo
Re: Arduino 1.8.7 support for Gen7 V1.5 (apply also V1.4)
December 08, 2018 09:43AM
Dont have one handy but here is the guts of what you need to do

install Sanguino support into arduino IDE see [dustsreprap.blogspot.com]

Find where it installs the files
linux ~/.arduino15/packages/Sanguino/hardware/avr/1.0.2
winodws C:\Users\(username)\AppData\Local\Arduino15\packages\Sanguino\hardware\avr\1.0.2

edit the boards.txt file in this directory

add the following
## Gen7 with ATmega1284P and 20 MHz
sanguino.menu.cpu.atmega1284p_20m=Gen7 with ATmega1284P and 20 MHz
sanguino.menu.cpu.atmega1284p_20m.upload.maximum_size=129024
sanguino.menu.cpu.atmega1284p_20m.upload.maximum_data_size=16384
sanguino.menu.cpu.atmega1284p_20m.upload.speed=115200
sanguino.menu.cpu.atmega1284p_20m.build.mcu=atmega1284p
sanguino.menu.cpu.atmega1284p_20m.build.f_cpu=20000000L
sanguino.menu.cpu.atmega1284p_20m.upload.protocol=stk500v2

make sure you restart arduino ide to pick up the changes in the boards.txt file.

Set the arduino IDE board to sanguino and set the processor to "Gen7 with ATmega1284P and 20 MHz"

In marlin configuration.h set motherboard to BOARD_GEN7_14

This compiles, but I can't test uploads.

NB this is only for uploading firmware using existing installed bootloader ... more is needed to upload bootloader and set fuse values.

Edited 2 time(s). Last edit at 12/08/2018 09:48AM by Dust.
Re: Arduino 1.8.7 support for Gen7 V1.5 (apply also V1.4)
December 08, 2018 03:11PM
Hello,

Thank you.
Works great.
Sorry, only registered users may post in this forum.

Click here to login