Welcome! Log In Create A New Profile

Advanced

Marlin is not compiled because of this Error sad smiley

Posted by mmhoque94 
Marlin is not compiled because of this Error sad smiley
July 09, 2018 10:02AM
I wanted to update My Rap-Rap's existing Marlin code. But when I tried to compile the Marlin code, the following error is showing....

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows NT (unknown)), Board: "Ben_K2560(Mega Extra85)"
In file included from BlinkM.cpp:5:
/Marlin.h:30:22: error: Arduino.h: No such file or directory
/Marlin.h:50:21: error: WString.h: No such file or directory
In file included from /Marlin.h:41,
from BlinkM.cpp:5:
MarlinSerial.h:150: error: expected ',' or '...' before '&' token
MarlinSerial.h:150: error: ISO C++ forbids declaration of 'String' with no type
MarlinSerial.h:169: error: expected ',' or '...' before '&' token
MarlinSerial.h:169: error: ISO C++ forbids declaration of 'String' with no type
/MarlinSerial.h: In member function 'void MarlinSerial::print(int)':
MarlinSerial.h:152: error: 's' was not declared in this scope

What should I do to fix this error.
Thanks in advance smiling smiley

=================
The Marlin file & Arduino Addons
[drive.google.com]
Re: Marlin is not compiled because of this Error sad smiley
July 09, 2018 10:11AM
Well, Arduino.h is one of the header files that should come with the Arduino IDE. If it can't find that, then I'd start by reinstalling the IDE, and then trying a simple sketch like "blink" -- even if you don't load it onto the board, you should be able to verify/compile it.


MBot3D Printer
MakerBot clone Kit from Amazon
Added heated bed.

Leadscrew self-built printer (in progress)
Duet Wifi, Precision Piezo parts
Re: Marlin is not compiled because of this Error sad smiley
July 09, 2018 10:41AM
Arduino 1.0.6 is pretty old, maybe it's time for an update?
Re: Marlin is not compiled because of this Error sad smiley
July 09, 2018 04:28PM
Thank you smiling smiley
Re: Marlin is not compiled because of this Error sad smiley
July 10, 2018 06:00AM
I've used Arduino 1.8.2 (Portable Version) and when I tried to upload this code , the following error is showing sad smiley

"Error while uploading: missing 'upload.tool' configuration parameter"



This is written at the boards.txt, which was written for Arduino 1.0.x version


# See: [code.google.com]

##############################################################

Ben_K2560.name=Ben_K2560(Mega Extra85)

Ben_K2560.upload.protocol=wiring
Ben_K2560.upload.maximum_size=258048
Ben_K2560.upload.speed=115200

Ben_K2560.bootloader.low_fuses=0xFF
Ben_K2560.bootloader.high_fuses=0xD8
Ben_K2560.bootloader.extended_fuses=0xFD
Ben_K2560.bootloader.path=stk500v2
Ben_K2560.bootloader.file=stk500boot_v2_mega2560.hex
Ben_K2560.bootloader.unlock_bits=0x3F
Ben_K2560.bootloader.lock_bits=0x0F

Ben_K2560.build.mcu=atmega2560
Ben_K2560.build.f_cpu=16000000L
Ben_K2560.build.core=arduino
Ben_K2560.build.variant=Ben_K

##############################################################
Re: Marlin is not compiled because of this Error sad smiley
July 10, 2018 07:49AM
Yip... so look at the provided version for a mega2560 and add the missing parts to your custom board

start with adding the line

Ben_K2560.upload.tool=avrdude

original mega2560 eg for reference
mega.upload.tool=avrdude
mega.upload.maximum_data_size=8192

mega.bootloader.tool=avrdude
mega.bootloader.low_fuses=0xFF
mega.bootloader.unlock_bits=0x3F
mega.bootloader.lock_bits=0x0F

mega.build.f_cpu=16000000L
mega.build.core=arduino
mega.build.variant=mega
# default board may be overridden by the cpu menu
mega.build.board=AVR_MEGA2560

## Arduino/Genuino Mega w/ ATmega2560
## -------------------------
mega.menu.cpu.atmega2560=ATmega2560 (Mega 2560)

mega.menu.cpu.atmega2560.upload.protocol=wiring
mega.menu.cpu.atmega2560.upload.maximum_size=253952
mega.menu.cpu.atmega2560.upload.speed=115200

mega.menu.cpu.atmega2560.bootloader.high_fuses=0xD8
mega.menu.cpu.atmega2560.bootloader.extended_fuses=0xFD
mega.menu.cpu.atmega2560.bootloader.file=stk500v2/stk500boot_v2_mega2560.hex

mega.menu.cpu.atmega2560.build.mcu=atmega2560
mega.menu.cpu.atmega2560.build.board=AVR_MEGA2560

Edited 3 time(s). Last edit at 07/10/2018 07:52AM by Dust.
Sorry, only registered users may post in this forum.

Click here to login