Arduino Polska Forum
arduino mega 2560 Chińskie problem z wgraniem marlina - Wersja do druku

+- Arduino Polska Forum (https://forum.arduinopolska.pl)
+-- Dział: Korzystanie z Arduino (https://forum.arduinopolska.pl/dzial-korzystanie-z-arduino)
+--- Dział: Instalacja i rozwiązywanie problemów (https://forum.arduinopolska.pl/dzial-instalacja-i-rozwi%C4%85zywanie-problem%C3%B3w)
+--- Wątek: arduino mega 2560 Chińskie problem z wgraniem marlina (/watek-arduino-mega-2560-chi%C5%84skie-problem-z-wgraniem-marlina)

Strony: 1 2


arduino mega 2560 Chińskie problem z wgraniem marlina - Jocik - 16-11-2017

Witam posiadam problem z wgraniem oprogramowania Marlin do mojego (Chińskiego zamiennika Arduino mega 2560. Wyskakuje mi błąd Błąd kompilacji dla płytki Arduino/Genuino Mega or Mega 2560. I niestety nigdzie nie mogę znaleźć odpowiedzi na ten błąd. załączam pliki marlina już gotowe do wgrania przygotowane przez jednego z użytkowników.
marlin: https://mega.nz/#!HY90jYrY!EJLAijbGGU18QTz5QAlfKxMV7Nzs2ryQ3K6NRtJQhRE


RE: arduino mega 2560 Chińskie problem z wgraniem marlina - namok - 16-11-2017

(16-11-2017, 15:20)Jocik napisał(a): Wyskakuje mi błąd Błąd kompilacji dla płytki Arduino/Genuino Mega or Mega 2560. I niestety nigdzie nie mogę znaleźć odpowiedzi na ten błąd.
Jeśli wyskakuje błąd kompilacji to nie jest to problem z wgraniem tylko z kompilacją.
Dlaczego nie podałeś tego błędu?
Przypuszczam że brakuje biblioteki ale odpowiedź na to jest w komunikacie błędu.


RE: arduino mega 2560 Chińskie problem z wgraniem marlina - Jocik - 16-11-2017

ok mój błąd nie rozwinąłem błędu ale nadal nie wiem jakiego pliku potrzebuje. to jest pełen błąd:
C:\Users\Jocik\Desktop\Marlin\Marlin.ino:51:110: fatal error: U8glib.h: No such file or directory

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

^

compilation terminated.

exit status 1
Błąd kompilacji dla płytki Arduino/Genuino Mega or Mega 2560.
z góry dzięki za poświęcony czas


RE: arduino mega 2560 Chińskie problem z wgraniem marlina - namok - 16-11-2017

(16-11-2017, 20:13)Jocik napisał(a): fatal error: U8glib.h: No such file or directory

    #include <U8glib.h> // library for graphics LCD by Oli Kraus (https://github.com/olikraus/U8glib_Arduino)
Przecież masz wyraźnie napisane czego brakuje.
ściągnij bibliotekę, zainstaluj i kompilacja przejdzie prawidłowo.


RE: arduino mega 2560 Chińskie problem z wgraniem marlina - Jocik - 16-11-2017

ok wgrałem ale teraz coś takiego i wklejam tylko część bo więcej sie nie mieści

Kod:
libraries\U8glib_Arduino-master\U8glib.cpp.o (symbol from plugin): In function `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':

(.text+0x0): multiple definition of `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

sketch\src\U8glib.cpp.o (symbol from plugin):(.text+0x0): first defined here

c:/users/jocik/appdata/local/arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions

libraries\U8glib_Arduino-master\U8glib.cpp.o (symbol from plugin): In function `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':

(.text+0x0): multiple definition of `U8GLIB::initHWSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char)'

sketch\src\U8glib.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\U8glib_Arduino-master\U8glib.cpp.o (symbol from plugin): In function `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':

(.text+0x0): multiple definition of `U8GLIB::initI2C(_u8g_dev_t*, unsigned char)'

sketch\src\U8glib.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\U8glib_Arduino-master\U8glib.cpp.o (symbol from plugin): In function `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':

(.text+0x0): multiple definition of `U8GLIB::init8Bit(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

sketch\src\U8glib.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\U8glib_Arduino-master\U8glib.cpp.o (symbol from plugin): In function `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':

(.text+0x0): multiple definition of `U8GLIB::init8BitFixedPort(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

sketch\src\U8glib.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\U8glib_Arduino-master\U8glib.cpp.o (symbol from plugin): In function `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':

(.text+0x0): multiple definition of `U8GLIB::initRW8Bit(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

sketch\src\U8glib.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\U8glib_Arduino-master\clib\chessengine.c.o (symbol from plugin): In function `ce_FindPawnPiece':

(.text+0x0): multiple definition of `ce_FindPawnPiece'

sketch\src\clib\chessengine.c.o (symbol from plugin):(.text+0x0): first defined here

libraries\U8glib_Arduino-master\clib\chessengine.c.o (symbol from plugin): In function `ce_FindPawnPiece':

(.text+0x0): multiple definition of `mnu_pos'

sketch\src\clib\chessengine.c.o (symbol from plugin):(.text+0x0): first defined here

libraries\U8glib_Arduino-master\clib\chessengine.c.o (symbol from plugin): In function `ce_FindPawnPiece':

(.text+0x0): multiple definition of `mnu_Step'

sketch\src\clib\chessengine.c.o (symbol from plugin):(.text+0x0): first defined here

libraries\U8glib_Arduino-master\clib\chessengine.c.o (symbol from plugin): In function `ce_FindPawnPiece':



RE: arduino mega 2560 Chińskie problem z wgraniem marlina - namok - 16-11-2017

Jaka wersja arduino IDE?
Kompilowałem to na 1.8.4. i było OK.
Dołącz log z kompilacji jako załącznik.


RE: arduino mega 2560 Chińskie problem z wgraniem marlina - Jocik - 16-11-2017

ja akurat mam wersje 1.8.5 więc pobiorę 1.8.4 i zobaczę czy zadziała.


RE: arduino mega 2560 Chińskie problem z wgraniem marlina - Jocik - 16-11-2017

sory ale nie wiem czym jest log czy to jest ta główna strona? jeśli tak to proszę
Kod:
/**
* 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 <http://www.gnu.org/licenses/>.
*
*/

/**
* About Marlin
*
* This firmware is a mashup between Sprinter and grbl.
*  - https://github.com/kliment/Sprinter
*  - https://github.com/simen/grbl/tree
*
* It has preliminary support for Matthew Roberts advance algorithm
*  - http://reprap.org/pipermail/reprap-dev/2011-May/003323.html
*/

/* All the implementation is done in *.cpp files to get better compatibility with avr-gcc without the Arduino IDE */
/* Use this file to help the Arduino IDE find which Arduino libraries are needed and to keep documentation on GCode */

#include "MarlinConfig.h"

#if ENABLED(ULTRA_LCD)
#if ENABLED(LCD_I2C_TYPE_PCF8575)
  #include <Wire.h>
  #include <LiquidCrystal_I2C.h>
#elif ENABLED(LCD_I2C_TYPE_MCP23017) || ENABLED(LCD_I2C_TYPE_MCP23008)
  #include <Wire.h>
  #include <LiquidTWI2.h>
#elif ENABLED(LCM1602)
  #include <Wire.h>
  #include <LCD.h>
  #include <LiquidCrystal_I2C.h>
#elif ENABLED(DOGLCD)
  #include <U8glib.h> // library for graphics LCD by Oli Kraus (https://github.com/olikraus/U8glib_Arduino)
#else
  #include <LiquidCrystal.h> // library for character LCD
#endif
#endif

#if HAS_DIGIPOTSS
#include <SPI.h>
#endif

#if ENABLED(DIGIPOT_I2C)
#include <Wire.h>
#endif

#if ENABLED(HAVE_TMCDRIVER)
#include <SPI.h>
#include <TMC26XStepper.h>
#endif

#if ENABLED(HAVE_TMC2130DRIVER)
#include <SPI.h>
#include <Trinamic_TMC2130.h>
#endif

#if ENABLED(HAVE_L6470DRIVER)
#include <SPI.h>
#include <L6470.h>
#endif



RE: arduino mega 2560 Chińskie problem z wgraniem marlina - namok - 16-11-2017

Jako załącznik masz podać to co w poprzednim poście ale całość!!! Skopiuj zawartość do pliku i dołącz jako załącznik!!!
A jeśli nie wiesz co zrobić to proponuje przerobić jakiś kurs arduino i dopiero wtedy tu wrócić.


RE: arduino mega 2560 Chińskie problem z wgraniem marlina - Jocik - 16-11-2017

mam nadzieję ze o to chodzi