Welcome! Log In Create A New Profile

Advanced

Arduino 1.0.1 help

Posted by Bee69 
Arduino 1.0.1 help
July 31, 2017 02:48PM
Arduino: 1.8.1 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"


Hi.
Im trying to update my Board settings but I keep getting this error



In file included from C:\Users\gisal\AppData\Local\Temp\arduino_build_688412\sketch\Marlin.h:10:0,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_688412\sketch\Marlin_main.cpp:30:

c:\users\gisal\downloads\arduino-1.8.1-windows\arduino-1.8.1\hardware\tools\avr\avr\include\stdio.h:950:33: note: 'fpos_t' has a previous declaration here

__extension__ typedef long long fpos_t;

^

Using library LiquidCrystal at version 1.0.5 in folder: C:\Users\gisal\Downloads\arduino-1.8.1-windows\arduino-1.8.1\libraries\LiquidCrystal
exit status 1
using typedef-name 'fpos_t' after 'struct'

Invalid library found in C:\Users\gisal\Documents\Arduino\libraries\Marlin-PI3_Pro_C: C:\Users\gisal\Documents\Arduino\libraries\Marlin-PI3_Pro_C
Invalid library found in C:\Users\gisal\Documents\Arduino\libraries\Marlin-PI3_Pro_C: C:\Users\gisal\Documents\Arduino\libraries\Marlin-PI3_Pro_C

Edited 1 time(s). Last edit at 08/01/2017 09:40AM by Bee69.
Re: Arduino 1&1 help
July 31, 2017 06:03PM
What version of Marlin are you using? this is a very old error that affects older versions of the marlin firmware when using a newer version of Arduino.

You have a few options here,

1) download the latest marlin from the official git [github.com]
2) Renaming fpos_t variables in SdBaseFile.h and SdBaseFile.cpp to another name like filepos_t . This should fix your current firmware as fpos_t is used in current arduino compilers so cannot be a variable.
3) Down grade your Arduino to version 1.0.6

Also just an FYI a quick google of the error would have got you to this answer. Try googling "using typedef-name 'fpos_t' after 'struct' " and have a read.
Re: Arduino 1&1 help
July 31, 2017 06:05PM
Your using an old version of marlin firmware with a new arduino IDE

The old firmware uses the variable name fpos_t unfortunately this is now a reserved word in the newer arduino IDE.

You have to edit two files SdBaseFile.h and SdBaseFile.cpp

find all occurrences of fpos_t and change it to something else eg FatPos_t

If your using linux you can just
sed -i 's/fpos_t/FatPos_t/' SdBaseFile.h
sed -i 's/fpos_t/FatPos_t/' SdBaseFile.cpp
Re: Arduino 1.0.1 help
August 01, 2017 10:05AM
thanks guys. I've deleted my Arduino folder and the Marlin folder and downloaded both again but I've got a different problem. This time its the LCD.
The printer came with a REPRAP_DISCOUNT_SMART_CONTROLLER. Has anyone got a ready made sketch for this please.


/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see [www.gnu.org].
*
*/

/**
* Conditionals_LCD.h
* Conditionals that need to be set before Configuration_adv.h or pins.h
*/

//#ifndef CONDITIONALS_LCD_H // Get the LCD defines which are needed first
//#define CONDITIONALS_LCD_H

//#define LCD_HAS_DIRECTIONAL_BUTTONS (BUTTON_EXISTS(UP) || BUTTON_EXISTS(DWN) || BUTTON_EXISTS(LFT) || BUTTON_EXISTS(RT))

#if ENABLED(CARTESIO_UI)

#define DOGLCD
#define ULTIPANEL
#define NEWPANEL
#define DEFAULT_LCD_CONTRAST 90
#define LCD_CONTRAST_MIN 60
#define LCD_CONTRAST_MAX 140

#elif ENABLED(MAKRPANEL) || ENABLED(MINIPANEL)

#define DOGLCD
#define ULTIPANEL
#define NEWPANEL
#define DEFAULT_LCD_CONTRAST 17

#elif ENABLED(ANET_KEYPAD_LCD)

#define REPRAPWORLD_KEYPAD
#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0
#define ADC_KEYPAD
#define ADC_KEY_NUM 8
#define ULTIPANEL
// this helps to implement ADC_KEYPAD menus
#define ENCODER_STEPS_PER_MENU_ITEM 1
#define REVERSE_MENU_DIRECTION

#elif ENABLED(ANET_FULL_GRAPHICS_LCD)

#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

#elif ENABLED(BQ_LCD_SMART_CONTROLLER)

#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
#define LONG_FILENAME_HOST_SUPPORT

#elif ENABLED(miniVIKI) || ENABLED(VIKI2) || ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)

#define ULTRA_LCD //general LCD support, also 16x2
#define DOGLCD // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
#define ULTIMAKERCONTROLLER //as available from the Ultimaker online store.

#if ENABLED(miniVIKI)
#define LCD_CONTRAST_MIN 75
#define LCD_CONTRAST_MAX 115
#define DEFAULT_LCD_CONTRAST 95
#elif ENABLED(VIKI2)
#define DEFAULT_LCD_CONTRAST 40
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
#define LCD_CONTRAST_MIN 90
#define LCD_CONTRAST_MAX 130
#define DEFAULT_LCD_CONTRAST 110
#define U8GLIB_LM6059_AF
#define SD_DETECT_INVERTED
#endif

#elif ENABLED(OLED_PANEL_TINYBOY2)

#define U8GLIB_SSD1306
#define ULTIPANEL
#define NEWPANEL
#define REVERSE_ENCODER_DIRECTION
#define REVERSE_MENU_DIRECTION

#elif ENABLED(RA_CONTROL_PANEL)

#define LCD_I2C_TYPE_PCA8574
#define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander
#define ULTIPANEL
#define NEWPANEL

#elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)

#define DOGLCD
#define U8GLIB_ST7920
#define ULTIPANEL
#define NEWPANEL

#endif

// Generic support for SSD1306 / SH1106 OLED based LCDs.
#if ENABLED(U8GLIB_SSD1306) || ENABLED(U8GLIB_SH1106)
#define ULTRA_LCD //general LCD support, also 16x2
#define DOGLCD // Support for I2C LCD 128x64 (Controller SSD1306 / SH1106 graphic Display Family)
#endif

#if ENABLED(PANEL_ONE) || ENABLED(U8GLIB_SH1106)
#define ULTIMAKERCONTROLLER
#endif

#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) || ENABLED(LCD_FOR_MELZI)
#define DOGLCD
#define U8GLIB_ST7920
#define REPRAP_DISCOUNT_SMART_CONTROLLER
#endif

#if ENABLED(ULTIMAKERCONTROLLER) \
|| ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) \
|| ENABLED(G3D_PANEL) \
|| ENABLED(RIGIDBOT_PANEL)
#define ULTIPANEL
#define NEWPANEL
#endif

#if ENABLED(REPRAPWORLD_KEYPAD)
#define NEWPANEL
#if ENABLED(ULTIPANEL) && !defined(REPRAPWORLD_KEYPAD_MOVE_STEP)
#define REPRAPWORLD_KEYPAD_MOVE_STEP 1.0
#endif
#endif

/**
* I2C PANELS
*/

#if ENABLED(LCD_I2C_SAINSMART_YWROBOT)

// Note: This controller requires F.Malpartida's LiquidCrystal_I2C library
// [bitbucket.org]

#define LCD_I2C_TYPE_PCF8575
#define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander
#define ULTIPANEL
#define NEWPANEL

#elif ENABLED(LCD_I2C_PANELOLU2)

// PANELOLU2 LCD with status LEDs, separate encoder and click inputs

#define LCD_I2C_TYPE_MCP23017
#define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander
#define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD
#define ULTIPANEL
#define NEWPANEL

#elif ENABLED(LCD_I2C_VIKI)

/**
* Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
*
* This uses the LiquidTWI2 library v1.2.3 or later ( [github.com] )
* Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory.
* Note: The pause/stop/resume LCD button pin should be connected to the Arduino
* BTN_ENC pin (or set BTN_ENC to -1 if not used)
*/
#define LCD_I2C_TYPE_MCP23017
#define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander
#define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD (requires LiquidTWI2 v1.2.3 or later)
#define ULTIPANEL
#define NEWPANEL

#define ENCODER_FEEDRATE_DEADZONE 4

#ifndef ENCODER_PULSES_PER_STEP
#define ENCODER_PULSES_PER_STEP 1
#endif
#ifndef ENCODER_STEPS_PER_MENU_ITEM
#define ENCODER_STEPS_PER_MENU_ITEM 2
#endif
#endif

// Set encoder detents for well-known controllers
#if ENABLED(miniVIKI) || ENABLED(VIKI2) || ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) || ENABLED(OLED_PANEL_TINYBOY2) \
|| ENABLED(BQ_LCD_SMART_CONTROLLER) || ENABLED(LCD_I2C_PANELOLU2) || ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
#ifndef ENCODER_PULSES_PER_STEP
#define ENCODER_PULSES_PER_STEP 4
#endif
#ifndef ENCODER_STEPS_PER_MENU_ITEM
#define ENCODER_STEPS_PER_MENU_ITEM 1
#endif
#endif

// Shift register panels
// ---------------------
// 2 wire Non-latching LCD SR from:
// [bitbucket.org]

#if ENABLED(SAV_3DLCD)
#define SR_LCD_2W_NL // Non latching 2 wire shift register
#define ULTIPANEL
#define NEWPANEL
#endif

#if ENABLED(DOGLCD) // Change number of lines to match the DOG graphic display
#ifndef LCD_WIDTH
#define LCD_WIDTH 22
#endif
#ifndef LCD_HEIGHT
#define LCD_HEIGHT 5
#endif
#endif

#if ENABLED(ULTIPANEL)
#define NEWPANEL //enable this if you have a click-encoder panel
#define ULTRA_LCD
#ifndef LCD_WIDTH
#define LCD_WIDTH 20
#endif
#ifndef LCD_HEIGHT
#define LCD_HEIGHT 4
#endif
#else // no panel but just LCD
#if ENABLED(ULTRA_LCD)
#ifndef LCD_WIDTH
#define LCD_WIDTH 16
#endif
#ifndef LCD_HEIGHT
#define LCD_HEIGHT 2
#endif
#endif
#endif

#if ENABLED(DOGLCD)
/* Custom characters defined in font dogm_font_data_Marlin_symbols.h / Marlin_symbols.fon */
// \x00 intentionally skipped to avoid problems in strings
#define LCD_STR_REFRESH "\x01"
#define LCD_STR_FOLDER "\x02"
#define LCD_STR_ARROW_RIGHT "\x03"
#define LCD_STR_UPLEVEL "\x04"
#define LCD_STR_CLOCK "\x05"
#define LCD_STR_FEEDRATE "\x06"
#define LCD_STR_BEDTEMP "\x07"
#define LCD_STR_THERMOMETER "\x08"
#define LCD_STR_DEGREE "\x09"

#define LCD_STR_SPECIAL_MAX '\x09'
// Maximum here is 0x1F because 0x20 is ' ' (space) and the normal charsets begin.
// Better stay below 0x10 because DISPLAY_CHARSET_HD44780_WESTERN begins here.

// Symbol characters
#define LCD_STR_FILAM_DIA "\xf8"
#define LCD_STR_FILAM_MUL "\xa4"
#else
/* Custom characters defined in the first 8 characters of the LCD */
#define LCD_BEDTEMP_CHAR 0x00 // Print only as a char. This will have 'unexpected' results when used in a string!
#define LCD_DEGREE_CHAR 0x01
#define LCD_STR_THERMOMETER "\x02" // Still used with string concatenation
#define LCD_UPLEVEL_CHAR 0x03
#define LCD_STR_REFRESH "\x04"
#define LCD_STR_FOLDER "\x05"
#define LCD_FEEDRATE_CHAR 0x06
#define LCD_CLOCK_CHAR 0x07
#define LCD_STR_ARROW_RIGHT ">" /* from the default character set */

#if ENABLED(AUTO_BED_LEVELING_UBL)
#define LCD_UBL_BOXTOP_CHAR 0x01
#define LCD_UBL_BOXBOT_CHAR 0x02
#endif

#endif

/**
* Default LCD contrast for dogm-like LCD displays
*/
#if ENABLED(DOGLCD)

#define HAS_LCD_CONTRAST ( \
ENABLED(MAKRPANEL) \
|| ENABLED(CARTESIO_UI) \
|| ENABLED(VIKI2) \
|| ENABLED(miniVIKI) \
|| ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) \
)

#if HAS_LCD_CONTRAST
#ifndef LCD_CONTRAST_MIN
#define LCD_CONTRAST_MIN 0
#endif
#ifndef LCD_CONTRAST_MAX
#define LCD_CONTRAST_MAX 63
#endif
#ifndef DEFAULT_LCD_CONTRAST
#define DEFAULT_LCD_CONTRAST 32
#endif
#endif
#endif

#ifndef BOOTSCREEN_TIMEOUT
#define BOOTSCREEN_TIMEOUT 2500
#endif

#define HAS_DEBUG_MENU ENABLED(LCD_PROGRESS_BAR_TEST)

// MK2 Multiplexer forces SINGLENOZZLE to be enabled
#if ENABLED(MK2_MULTIPLEXER)
#define SINGLENOZZLE
#endif

/**
* Extruders have some combination of stepper motors and hotends
* so we separate these concepts into the defines:
*
* EXTRUDERS - Number of Selectable Tools
* HOTENDS - Number of hotends, whether connected or separate
* E_STEPPERS - Number of actual E stepper motors
* E_MANUAL - Number of E steppers for LCD move options
* TOOL_E_INDEX - Index to use when getting/setting the tool state
*
*/
#if ENABLED(SINGLENOZZLE) || ENABLED(MIXING_EXTRUDER) // One hotend, one thermistor, no XY offset
#define HOTENDS 1
#undef TEMP_SENSOR_1_AS_REDUNDANT
#undef HOTEND_OFFSET_X
#undef HOTEND_OFFSET_Y
#else // Two hotends
#define HOTENDS EXTRUDERS
#if ENABLED(SWITCHING_NOZZLE) && !defined(HOTEND_OFFSET_Z)
#define HOTEND_OFFSET_Z { 0 }
#endif
#endif

#if ENABLED(SWITCHING_EXTRUDER) || ENABLED(MIXING_EXTRUDER) // Unified E axis
#if ENABLED(MIXING_EXTRUDER)
#define E_STEPPERS MIXING_STEPPERS
#else
#define E_STEPPERS 1 // One E stepper
#endif
#define E_MANUAL 1
#define TOOL_E_INDEX 0
#else
#define E_STEPPERS EXTRUDERS
#define E_MANUAL EXTRUDERS
#define TOOL_E_INDEX current_block->active_extruder
#endif

/**
* DISTINCT_E_FACTORS affects how some E factors are accessed
*/
#if ENABLED(DISTINCT_E_FACTORS) && E_STEPPERS > 1
#define XYZE_N (XYZ + E_STEPPERS)
#define E_AXIS_N (E_AXIS + extruder)
#else
#undef DISTINCT_E_FACTORS
#define XYZE_N XYZE
#define E_AXIS_N E_AXIS
#endif

/**
* The BLTouch Probe emulates a servo probe
* and uses "special" angles for its state.
*/
#if ENABLED(BLTOUCH)
#ifndef Z_ENDSTOP_SERVO_NR
#define Z_ENDSTOP_SERVO_NR 0
#endif
#ifndef NUM_SERVOS
#define NUM_SERVOS (Z_ENDSTOP_SERVO_NR + 1)
#endif
#undef DEACTIVATE_SERVOS_AFTER_MOVE
#undef SERVO_DELAY
#define SERVO_DELAY 50
#ifndef BLTOUCH_DELAY
#define BLTOUCH_DELAY 375
#endif
#undef Z_SERVO_ANGLES
#define Z_SERVO_ANGLES { BLTOUCH_DEPLOY, BLTOUCH_STOW }

#define BLTOUCH_DEPLOY 10
#define BLTOUCH_STOW 90
#define BLTOUCH_SELFTEST 120
#define BLTOUCH_RESET 160
#define _TEST_BLTOUCH(P) (READ(P##_PIN) != P##_ENDSTOP_INVERTING)

// Always disable probe pin inverting for BLTouch
#undef Z_MIN_PROBE_ENDSTOP_INVERTING
#define Z_MIN_PROBE_ENDSTOP_INVERTING false

#if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
#undef Z_MIN_ENDSTOP_INVERTING
#define Z_MIN_ENDSTOP_INVERTING false
#define TEST_BLTOUCH() _TEST_BLTOUCH(Z_MIN)
#else
#define TEST_BLTOUCH() _TEST_BLTOUCH(Z_MIN_PROBE)
#endif
#endif

/**
* Set a flag for a servo probe
*/
#define HAS_Z_SERVO_ENDSTOP (defined(Z_ENDSTOP_SERVO_NR) && Z_ENDSTOP_SERVO_NR >= 0)

/**
* UBL has its own manual probing, so this just causes trouble.
*/
#if ENABLED(AUTO_BED_LEVELING_UBL)
#undef PROBE_MANUALLY
#endif

/**
* Set a flag for any enabled probe
*/
#define PROBE_SELECTED (ENABLED(PROBE_MANUALLY) || ENABLED(FIX_MOUNTED_PROBE) || ENABLED(Z_PROBE_ALLEN_KEY) || HAS_Z_SERVO_ENDSTOP || ENABLED(Z_PROBE_SLED) || ENABLED(SOLENOID_PROBE))

/**
* Clear probe pin settings when no probe is selected
*/
#if !PROBE_SELECTED || ENABLED(PROBE_MANUALLY)
#undef Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
#undef Z_MIN_PROBE_ENDSTOP
#endif

#define HAS_SOFTWARE_ENDSTOPS (ENABLED(MIN_SOFTWARE_ENDSTOPS) || ENABLED(MAX_SOFTWARE_ENDSTOPS))
#define HAS_RESUME_CONTINUE (ENABLED(NEWPANEL) || ENABLED(EMERGENCY_PARSER))
#define HAS_COLOR_LEDS (ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632))

#endif // CONDITIONALS_LCD_H
Re: Arduino 1.0.1 help
August 01, 2017 08:44PM
Instructions are on the wiki page [reprap.org]

Please at least try to solve your problems first before posting or say what you have tried.

I will also say dont delete your old firmware, you can always look back through and see what changes have been made, or what settings are different

Edited 1 time(s). Last edit at 08/01/2017 08:45PM by scottybfg.
Re: Arduino 1.0.1 help
August 02, 2017 09:16AM
Hay Guys sorry for being a pest but what program do I use to edit config files is it note pad++.
When I look at the config H file in Arduino there are no line numbers and its hard to find things.
I think I'm winning slowly but this is my problem and I'm stumpped.

Arduino: 1.8.1 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Users\gisal\Downloads\arduino-1.8.1-windows\arduino-1.8.1\arduino-builder -dump-prefs -logger=machine -hardware C:\Users\gisal\Downloads\arduino-1.8.1-windows\arduino-1.8.1\hardware -hardware C:\Users\gisal\AppData\Local\Arduino15\packages -tools C:\Users\gisal\Downloads\arduino-1.8.1-windows\arduino-1.8.1\tools-builder -tools C:\Users\gisal\Downloads\arduino-1.8.1-windows\arduino-1.8.1\hardware\tools\avr -tools C:\Users\gisal\AppData\Local\Arduino15\packages -built-in-libraries C:\Users\gisal\Downloads\arduino-1.8.1-windows\arduino-1.8.1\libraries -libraries C:\Users\gisal\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10801 -build-path C:\Users\gisal\AppData\Local\Temp\arduino_build_713002 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\gisal\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.avr-gcc.path=C:\Users\gisal\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -prefs=runtime.tools.arduinoOTA.path=C:\Users\gisal\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -verbose C:\Users\gisal\Downloads\Software\Marlin-1.1.x\Marlin-1.1.x\Marlin_First_try\Marlin_First_try.ino
C:\Users\gisal\Downloads\arduino-1.8.1-windows\arduino-1.8.1\arduino-builder -compile -logger=machine -hardware C:\Users\gisal\Downloads\arduino-1.8.1-windows\arduino-1.8.1\hardware -hardware C:\Users\gisal\AppData\Local\Arduino15\packages -tools C:\Users\gisal\Downloads\arduino-1.8.1-windows\arduino-1.8.1\tools-builder -tools C:\Users\gisal\Downloads\arduino-1.8.1-windows\arduino-1.8.1\hardware\tools\avr -tools C:\Users\gisal\AppData\Local\Arduino15\packages -built-in-libraries C:\Users\gisal\Downloads\arduino-1.8.1-windows\arduino-1.8.1\libraries -libraries C:\Users\gisal\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10801 -build-path C:\Users\gisal\AppData\Local\Temp\arduino_build_713002 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Users\gisal\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.avr-gcc.path=C:\Users\gisal\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -prefs=runtime.tools.arduinoOTA.path=C:\Users\gisal\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -verbose C:\Users\gisal\Downloads\Software\Marlin-1.1.x\Marlin-1.1.x\Marlin_First_try\Marlin_First_try.ino
Using board 'mega' from platform in folder: C:\Users\gisal\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.19
Using core 'arduino' from platform in folder: C:\Users\gisal\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.19
Detecting libraries used...
"C:\Users\gisal\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10801 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\gisal\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.19\cores\arduino" "-IC:\Users\gisal\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.19\variants\mega" "C:\Users\gisal\AppData\Local\Temp\arduino_build_713002\sketch\Marlin_First_try.ino.cpp" -o "nul"
"C:\Users\gisal\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10801 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\gisal\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.19\cores\arduino" "-IC:\Users\gisal\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.19\variants\mega" "C:\Users\gisal\AppData\Local\Temp\arduino_build_713002\sketch\Marlin_First_try.ino.cpp" -o "C:\Users\gisal\AppData\Local\Temp\arduino_build_713002\preproc\ctags_target_for_gcc_minus_e.cpp"
In file included from C:\Users\gisal\AppData\Local\Temp\arduino_build_713002\sketch\MarlinConfig.h:31:0,

from C:\Users\gisal\Downloads\Software\Marlin-1.1.x\Marlin-1.1.x\Marlin_First_try\Marlin_First_try.ino:31:

Conditionals_LCD.h:438: error: #endif without #if

#endif // CONDITIONALS_LCD_H

^

C:\Users\gisal\Downloads\Software\Marlin-1.1.x\Marlin-1.1.x\Marlin_First_try\Marlin_First_try.ino:45:110: fatal error: U8glib.h: No such file or directory

#include // library for graphics LCD by Oli Kraus (https://github.com/olikraus/U8glib_Arduino)

^

compilation terminated.

exit status 1
#endif without #if
Re: Arduino 1.0.1 help
August 02, 2017 10:10AM
I use wordpad to edit the config, the formattinng is betteer than notepad.
Re: Arduino 1.0.1 help
August 02, 2017 11:31AM
How do I stop this error I've tried all day. I know nothing about this stuff.


from C:\Users\gisal\Downloads\Software\Marlin-1.1.x\Marlin-1.1.x\Marlin_First_try\Marlin_First_try.ino:31:

Conditionals_LCD.h:438: error: #endif without #if

#endif // CONDITIONALS_LCD_H

^

C:\Users\gisal\Downloads\Software\Marlin-1.1.x\Marlin-1.1.x\Marlin_First_try\Marlin_First_try.ino:45:110: fatal error: U8glib.h: No such file or directory

#include // library for graphics LCD by Oli Kraus (https://github.com/olikraus/U8glib_Arduino)

^

compilation terminated.

exit status 1
#endif without #if

thank you
Adrian

Edited 1 time(s). Last edit at 08/02/2017 01:43PM by Bee69.
Re: Arduino 1.0.1 help
August 02, 2017 06:01PM
the #endif without #if tells me you have accidentally deleted an #if in the Conditionals_LCD.h. You dont need to change anything in this file so dont know why you are getting an error. Just delete the Conditions_LCD.h and put a new one in the folder.

As for the fatal error: U8glib.h: No such file or directory. It is telling you exactly what to do. You need the U8glib.h library, its even nice enough to give you a link.

1) Download the library [code.google.com]
2) Start Arduino IDE
3) In the Arduino IDE, import the library from the "Add Library" Menu.
Re: Arduino 1.0.1 help
August 03, 2017 10:58AM
Arduino: 1.8.1 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

:
OK guys this is doing my head in now.
I fired up my laptop this morning and the printer and today I'm getting this error. It says I'm missing a file so I down loaded it and I still get this.



Arduino: 1.8.1 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"


"C:\Users\gisal\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10801 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\gisal\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.19\cores\arduino" "-IC:\Users\gisal\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.19\variants\mega" "-IC:\Users\gisal\Downloads\arduino-1.8.1-windows\arduino-1.8.1\libraries\LiquidCrystal\src" "C:\Users\gisal\AppData\Local\Temp\arduino_build_48559\sketch\U8glib.cpp" -o "nul"
"C:\Users\gisal\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10801 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Users\gisal\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.19\cores\arduino" "-IC:\Users\gisal\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.19\variants\mega" "-IC:\Users\gisal\Downloads\arduino-1.8.1-windows\arduino-1.8.1\libraries\LiquidCrystal\src" "C:\Users\gisal\AppData\Local\Temp\arduino_build_48559\sketch\U8glib.cpp" -o "C:\Users\gisal\AppData\Local\Temp\arduino_build_48559\preproc\ctags_target_for_gcc_minus_e.cpp"
In file included from C:\Users\gisal\AppData\Local\Temp\arduino_build_48559\sketch\U8glib.cpp:38:0:

C:\Users\gisal\AppData\Local\Temp\arduino_build_48559\sketch\U8glib.h:42:25: fatal error: utility/u8g.h: No such file or directory

#include "utility/u8g.h"

^

compilation terminated.

Using library LiquidCrystal at version 1.0.5 in folder: C:\Users\gisal\Downloads\arduino-1.8.1-windows\arduino-1.8.1\libraries\LiquidCrystal
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.
Invalid library found in C:\Users\gisal\Downloads\arduino-1.8.1-windows\arduino-1.8.1\libraries\U8glib: C:\Users\gisal\Downloads\arduino-1.8.1-windows\arduino-1.8.1\libraries\U8glib
Invalid library found in C:\Users\gisal\Downloads\arduino-1.8.1-windows\arduino-1.8.1\libraries\U8glib: C:\Users\gisal\Downloads\arduino-1.8.1-windows\arduino-1.8.1\libraries\U8glib
Re: Arduino 1.0.1 help
August 03, 2017 06:44PM
The U8glib Library you downloaded does it have the u8g.h if a folder called clib by change? if so just change the code from

#include utility/u8g.h

to

#include clib/u8g.h

The older version of the U8glib Library used the folder utility but when it moved to the gibhub it was changed to clib. Have a look and see what folder its in. If it is in a folder utility then maybe you added the library wrong. Have a google of how to add library's to arduino.

Edited 1 time(s). Last edit at 08/03/2017 06:44PM by scottybfg.
Re: Arduino 1.0.1 help
August 04, 2017 04:53AM
Hi Guys / Girls

Ive started fresh both Marlin and Arduino and I keep getting this sort of error do I just // them out or do I have to put something in.
Thanks for the help.



MarlinSerial.cpp:141: error: 'rx_buffer' was not declared in this scope

const uint8_t h = rx_buffer.head,

^

MarlinSerial.cpp:148: error: 'i' was not declared in this scope

if (i != rx_buffer.tail) {

^

In file included from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:32:0:

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp: In function 'void USART5_RX_vect()':

MarlinSerial.h:64: error: 'UDR5' was not declared in this scope

#define M_UDRx SERIAL_REGNAME(UDR,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:52:63: note: in definition of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) registerbase##number##suffix

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:64:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_UDRx SERIAL_REGNAME(UDR,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:191:31: note: in expansion of macro 'M_UDRx'

const unsigned char c = M_UDRx;

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp: In static member function 'static void MarlinSerial::begin(long int)':

MarlinSerial.h:56: error: 'UCSR5A' was not declared in this scope

#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:52:63: note: in definition of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) registerbase##number##suffix

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:56:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:210:7: note: in expansion of macro 'M_UCSRxA'

M_UCSRxA = _BV(M_U2Xx);

^

In file included from c:\users\gisal\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\fastio.h:32,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinConfig.h:26,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:35,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:32:

MarlinSerial.h:69: error: 'U2X5' was not declared in this scope

#define M_U2Xx SERIAL_REGNAME(U2X,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:48:52: note: in expansion of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME(registerbase,number,suffix) SERIAL_REGNAME_INTERNAL(registerbase,number,suffix)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:69:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_U2Xx SERIAL_REGNAME(U2X,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:210:22: note: in expansion of macro 'M_U2Xx'

M_UCSRxA = _BV(M_U2Xx);

^

In file included from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:32:0:

MarlinSerial.h:56: error: 'UCSR5A' was not declared in this scope

#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:52:63: note: in definition of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) registerbase##number##suffix

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:56:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:214:7: note: in expansion of macro 'M_UCSRxA'

M_UCSRxA = 0;

^

MarlinSerial.h:65: error: 'UBRR5H' was not declared in this scope

#define M_UBRRxH SERIAL_REGNAME(UBRR,SERIAL_PORT,H)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:52:63: note: in definition of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) registerbase##number##suffix

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:65:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_UBRRxH SERIAL_REGNAME(UBRR,SERIAL_PORT,H)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:219:5: note: in expansion of macro 'M_UBRRxH'

M_UBRRxH = baud_setting >> 8;

^

MarlinSerial.h:66: error: 'UBRR5L' was not declared in this scope

#define M_UBRRxL SERIAL_REGNAME(UBRR,SERIAL_PORT,L)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:52:63: note: in definition of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) registerbase##number##suffix

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:66:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_UBRRxL SERIAL_REGNAME(UBRR,SERIAL_PORT,L)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:220:5: note: in expansion of macro 'M_UBRRxL'

M_UBRRxL = baud_setting;

^

In file included from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\fastio.h:33:0,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinConfig.h:26,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:35,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:32:

MarlinSerial.h:57: error: 'UCSR5B' was not declared in this scope

#define M_UCSRxB SERIAL_REGNAME(UCSR,SERIAL_PORT,cool smiley

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\macros.h:98:19: note: in definition of macro 'SBI'

#define SBI(n,b) (n |= _BV(b))

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:48:52: note: in expansion of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME(registerbase,number,suffix) SERIAL_REGNAME_INTERNAL(registerbase,number,suffix)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:57:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_UCSRxB SERIAL_REGNAME(UCSR,SERIAL_PORT,cool smiley

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:222:9: note: in expansion of macro 'M_UCSRxB'

SBI(M_UCSRxB, M_RXENx);

^

In file included from c:\users\gisal\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\fastio.h:32,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinConfig.h:26,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:35,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:32:

MarlinSerial.h:58: error: 'RXEN5' was not declared in this scope

#define M_RXENx SERIAL_REGNAME(RXEN,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:222:5: note: in expansion of macro 'SBI'

SBI(M_UCSRxB, M_RXENx);

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:48:52: note: in expansion of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME(registerbase,number,suffix) SERIAL_REGNAME_INTERNAL(registerbase,number,suffix)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:58:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_RXENx SERIAL_REGNAME(RXEN,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:222:19: note: in expansion of macro 'M_RXENx'

SBI(M_UCSRxB, M_RXENx);

^

MarlinSerial.h:59: error: 'TXEN5' was not declared in this scope

#define M_TXENx SERIAL_REGNAME(TXEN,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:223:5: note: in expansion of macro 'SBI'

SBI(M_UCSRxB, M_TXENx);

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:48:52: note: in expansion of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME(registerbase,number,suffix) SERIAL_REGNAME_INTERNAL(registerbase,number,suffix)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:59:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_TXENx SERIAL_REGNAME(TXEN,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:223:19: note: in expansion of macro 'M_TXENx'

SBI(M_UCSRxB, M_TXENx);

^

MarlinSerial.h:61: error: 'RXCIE5' was not declared in this scope

#define M_RXCIEx SERIAL_REGNAME(RXCIE,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:224:5: note: in expansion of macro 'SBI'

SBI(M_UCSRxB, M_RXCIEx);

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:48:52: note: in expansion of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME(registerbase,number,suffix) SERIAL_REGNAME_INTERNAL(registerbase,number,suffix)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:61:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_RXCIEx SERIAL_REGNAME(RXCIE,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:224:19: note: in expansion of macro 'M_RXCIEx'

SBI(M_UCSRxB, M_RXCIEx);

^

In file included from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\fastio.h:33:0,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinConfig.h:26,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:35,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:32:

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp: In static member function 'static void MarlinSerial::end()':

MarlinSerial.h:57: error: 'UCSR5B' was not declared in this scope

#define M_UCSRxB SERIAL_REGNAME(UCSR,SERIAL_PORT,cool smiley

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\macros.h:99:19: note: in definition of macro 'CBI'

#define CBI(n,b) (n &= ~_BV(b))

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:48:52: note: in expansion of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME(registerbase,number,suffix) SERIAL_REGNAME_INTERNAL(registerbase,number,suffix)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:57:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_UCSRxB SERIAL_REGNAME(UCSR,SERIAL_PORT,cool smiley

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:232:9: note: in expansion of macro 'M_UCSRxB'

CBI(M_UCSRxB, M_RXENx);

^

In file included from c:\users\gisal\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\fastio.h:32,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinConfig.h:26,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:35,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:32:

MarlinSerial.h:58: error: 'RXEN5' was not declared in this scope

#define M_RXENx SERIAL_REGNAME(RXEN,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:232:5: note: in expansion of macro 'CBI'

CBI(M_UCSRxB, M_RXENx);

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:48:52: note: in expansion of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME(registerbase,number,suffix) SERIAL_REGNAME_INTERNAL(registerbase,number,suffix)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:58:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_RXENx SERIAL_REGNAME(RXEN,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:232:19: note: in expansion of macro 'M_RXENx'

CBI(M_UCSRxB, M_RXENx);

^

MarlinSerial.h:59: error: 'TXEN5' was not declared in this scope

#define M_TXENx SERIAL_REGNAME(TXEN,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:233:5: note: in expansion of macro 'CBI'

CBI(M_UCSRxB, M_TXENx);

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:48:52: note: in expansion of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME(registerbase,number,suffix) SERIAL_REGNAME_INTERNAL(registerbase,number,suffix)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:59:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_TXENx SERIAL_REGNAME(TXEN,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:233:19: note: in expansion of macro 'M_TXENx'

CBI(M_UCSRxB, M_TXENx);

^

MarlinSerial.h:61: error: 'RXCIE5' was not declared in this scope

#define M_RXCIEx SERIAL_REGNAME(RXCIE,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:234:5: note: in expansion of macro 'CBI'

CBI(M_UCSRxB, M_RXCIEx);

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:48:52: note: in expansion of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME(registerbase,number,suffix) SERIAL_REGNAME_INTERNAL(registerbase,number,suffix)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:61:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_RXCIEx SERIAL_REGNAME(RXCIE,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:234:19: note: in expansion of macro 'M_RXCIEx'

CBI(M_UCSRxB, M_RXCIEx);

^

MarlinSerial.h:63: error: 'UDRIE5' was not declared in this scope

#define M_UDRIEx SERIAL_REGNAME(UDRIE,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:235:5: note: in expansion of macro 'CBI'

CBI(M_UCSRxB, M_UDRIEx);

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:48:52: note: in expansion of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME(registerbase,number,suffix) SERIAL_REGNAME_INTERNAL(registerbase,number,suffix)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:63:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_UDRIEx SERIAL_REGNAME(UDRIE,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:235:19: note: in expansion of macro 'M_UDRIEx'

CBI(M_UCSRxB, M_UDRIEx);

^

In file included from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\fastio.h:33:0,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinConfig.h:26,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:35,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:32:

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp: In static member function 'static void MarlinSerial::checkRx()':

MarlinSerial.h:56: error: 'UCSR5A' was not declared in this scope

#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\macros.h:97:22: note: in definition of macro 'TEST'

#define TEST(n,b) (((n)&_BV(b))!=0)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:48:52: note: in expansion of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME(registerbase,number,suffix) SERIAL_REGNAME_INTERNAL(registerbase,number,suffix)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:56:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:239:14: note: in expansion of macro 'M_UCSRxA'

if (TEST(M_UCSRxA, M_RXCx)) {

^

In file included from c:\users\gisal\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\fastio.h:32,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinConfig.h:26,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:35,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:32:

MarlinSerial.h:67: error: 'RXC5' was not declared in this scope

#define M_RXCx SERIAL_REGNAME(RXC,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:239:9: note: in expansion of macro 'TEST'

if (TEST(M_UCSRxA, M_RXCx)) {

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:48:52: note: in expansion of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME(registerbase,number,suffix) SERIAL_REGNAME_INTERNAL(registerbase,number,suffix)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:67:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_RXCx SERIAL_REGNAME(RXC,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:239:24: note: in expansion of macro 'M_RXCx'

if (TEST(M_UCSRxA, M_RXCx)) {

^

In file included from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:32:0:

MarlinSerial.h:64: error: 'UDR5' was not declared in this scope

#define M_UDRx SERIAL_REGNAME(UDR,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:52:63: note: in definition of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) registerbase##number##suffix

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:64:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_UDRx SERIAL_REGNAME(UDR,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:240:25: note: in expansion of macro 'M_UDRx'

const uint8_t c = M_UDRx;

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp: In static member function 'static int MarlinSerial::peek()':

MarlinSerial.cpp:247: error: 'rx_buffer' was not declared in this scope

const int v = rx_buffer.head == rx_buffer.tail ? -1 : rx_buffer.buffer[rx_buffer.tail];

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp: In static member function 'static int MarlinSerial::read()':

MarlinSerial.cpp:255: error: 'rx_buffer' was not declared in this scope

const uint8_t t = rx_buffer.tail;

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp: In static member function 'static uint8_t MarlinSerial::available()':

MarlinSerial.cpp:268: error: 'rx_buffer' was not declared in this scope

const uint8_t h = rx_buffer.head,

^

MarlinSerial.cpp:271: error: 't' was not declared in this scope

return (uint8_t)(RX_BUFFER_SIZE + h - t) & (RX_BUFFER_SIZE - 1);

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp: In static member function 'static void MarlinSerial::flush()':

MarlinSerial.cpp:282: error: 'rx_buffer' was not declared in this scope

rx_buffer.head = rx_buffer.tail;

^

In file included from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\fastio.h:33:0,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinConfig.h:26,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:35,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:32:

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp: In static member function 'static void MarlinSerial::write(uint8_t)':

MarlinSerial.h:56: error: 'UCSR5A' was not declared in this scope

#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\macros.h:97:22: note: in definition of macro 'TEST'

#define TEST(n,b) (((n)&_BV(b))!=0)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:48:52: note: in expansion of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME(registerbase,number,suffix) SERIAL_REGNAME_INTERNAL(registerbase,number,suffix)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:56:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:360:20: note: in expansion of macro 'M_UCSRxA'

while (!TEST(M_UCSRxA, M_UDREx))

^

In file included from c:\users\gisal\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\fastio.h:32,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinConfig.h:26,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:35,

from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:32:

MarlinSerial.h:62: error: 'UDRE5' was not declared in this scope

#define M_UDREx SERIAL_REGNAME(UDRE,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:360:15: note: in expansion of macro 'TEST'

while (!TEST(M_UCSRxA, M_UDREx))

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:48:52: note: in expansion of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME(registerbase,number,suffix) SERIAL_REGNAME_INTERNAL(registerbase,number,suffix)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:62:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_UDREx SERIAL_REGNAME(UDRE,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:360:30: note: in expansion of macro 'M_UDREx'

while (!TEST(M_UCSRxA, M_UDREx))

^

In file included from C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:32:0:

MarlinSerial.h:64: error: 'UDR5' was not declared in this scope

#define M_UDRx SERIAL_REGNAME(UDR,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:52:63: note: in definition of macro 'SERIAL_REGNAME_INTERNAL'

#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) registerbase##number##suffix

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.h:64:28: note: in expansion of macro 'SERIAL_REGNAME'

#define M_UDRx SERIAL_REGNAME(UDR,SERIAL_PORT,)

^

C:\Users\gisal\AppData\Local\Temp\arduino_build_134620\sketch\MarlinSerial.cpp:362:7: note: in expansion of macro 'M_UDRx'

M_UDRx = c;

^

exit status 1
'rx_buffer' was not declared in this scope

Edited 1 time(s). Last edit at 08/04/2017 01:49AM by Bee69.
Edit Reply Quote Report
Newer Topic Older Topic
Print View Mark Read Follow Topic RSS
Author:
Bee69
Re: Arduino 1.0.1 help
August 04, 2017 06:53AM
Replied in on of the other places you posted this... ill let you hunt for it.
Sorry, only registered users may post in this forum.

Click here to login