You are here

Marlin Issues?

8 posts / 0 new
Last post
#1 Thu, 2016-06-23 17:12  

Marlin Issues?

nschreiber0813
Offline
Last seen: 2 days 12 hours ago
Joined: 21 May 2016 - 17:54

Dear: CKR

Just letting you know my 3D printers stepper motors were working fine a couple of days ago. I then decided to do a bunch of things with marlin to get my LCD display to work and it didn't work. This forum isn't about my LCD display because it is obviously broken and I don't know why but anyways. My problem is this. My 3D printers stepper motors I tried calibrating today and I ran into a few problems. Today they weren't moving at all. Last time I used the printer the Z axis wasn't moving but it was creating noise, the X axis was moving fine just needed some calibration, and the Y axis wasn't moving at all. Can I please have some help? Thank you.

From: Noah

Sun, 2016-07-24 11:05  

"This forum isn't about my

jinx
Offline
Last seen: 1 week 2 hours ago
Joined: 23 Oct 2015 - 15:22

"This forum isn't about my LCD display because it is obviously broken"

get a post going on that noah, which lcd , what adapter some times those adapter have the headers reversed,

back to the steppers you made adjustment to the pots, did you power down  before adjust those pots,  adjusting while power on will kill the drivers. you checked the endstop if they comes loose  steppers want move,

 "Z axis wasn't moving but it was creating noise" I've  had that,  the current was set to low on drivers.

Mon, 2016-07-25 19:56  

Actually I solved the problem but not for the lcd display.

(Reply to #2)
nschreiber0813
Offline
Last seen: 2 days 12 hours ago
Joined: 21 May 2016 - 17:54

Dear: Jinx

I actually got my printer coded correctly and full running but I never got the LCD display to work. If you could help me with that that would be nice. Also I know the LCD display works since it lights up but doesn't do anything. It is a full graphic reprap smart discount controller or something like that I forget what it is called. You should get what I mean though. Thanks!!! I didn't think people cared about this forum.

From: NOah

I don't know what to say LOL!!!

Thu, 2016-07-28 12:40  

 this contoller? 

jinx
Offline
Last seen: 1 week 2 hours ago
Joined: 23 Oct 2015 - 15:22

 this contoller? 

first thing we need is to know,  is U8glib  labrary added to your master marlin file?

to find it open the marlin file on desk top > arduino Addons> arduino1.5 " depends on your EDI"> hardware> marlin>avr>libraries> is U8glib installed ?

if it aint  go get it https://github.com/olikraus/u8glib 

also go to where the adruino program  installed on the PC navaigate to the EDI libary paste a copy there as well.

if it is go to your marlin config.h scroll down to around line #941 see

// #define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER  " uncomment the start

UPLOAD and you done.

if the screen fails check the headers correspond to the right headers on the RAMPS adapter  insure the adapter fitting  and no bent pins!!!. if it still fails check the adapter rare cases the headers are reversed on the controllers, and you need to mod the header," cut a section out " but before check firmware   

Sat, 2016-07-30 20:58  

Yes that controller.

(Reply to #4)
nschreiber0813
Offline
Last seen: 2 days 12 hours ago
Joined: 21 May 2016 - 17:54

Dear: Jinx

I am just letting you know that that is my controller. I ran into an error using that library and uncommenting that line of code. It says that this. What should I do? Thanks!!!

From: Noah

Arduino: 1.6.9 (Linux), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from sketch/dogm_lcd_implementation.h:38:0,
                 from sketch/ultralcd.cpp:36:
sketch/dogm_font_data_marlin.h:12:25: fatal error: utility/u8g.h: No such file or directory
 #include <utility/u8g.h>
                         ^
compilation terminated.
Multiple libraries were found for "U8glib.h"
 Used: /home/noah/Arduino/libraries/U8glib
 Not used: /home/noah/Arduino/libraries/U8glib_Arduino-1.19.1
 Not used: /home/noah/Documents/arduino-1.6.9/libraries/U8glib_Arduino-master
 Not used: /home/noah/Documents/arduino-1.6.9/libraries/U8glib_Arduino-1.19.1
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

 

I don't know what to say LOL!!!

Mon, 2016-08-01 15:43  

its late here!!.

jinx
Offline
Last seen: 1 week 2 hours ago
Joined: 23 Oct 2015 - 15:22

its late here!!.

 but if I remembering correctly there a conflict  with arduino the WIRE library and the new marlin and U8.. the solution  is to remove the wire file  from library  in arduino editor ,  keep it somewhere you may want it later for something else but get it out the lib for now.

 we need the linux/arduino expects here "    from sketch/ultralcd.cpp:36: sketch/dogm_font_data_marlin.h:12:25: fatal error: utility/u8g.h: No such file or directory  #include <utility/u8g.h>"

it aint in the right  place surprise

        not sure you seen this yet but it good reading  on marlin  http://www.marlinfw.org/docs/development/configuration.html  marlin development moving so fast  at the mo.  keep a regular eye on it..

 

Tue, 2016-08-02 09:50  

Thanks here is the current problem.

(Reply to #6)
nschreiber0813
Offline
Last seen: 2 days 12 hours ago
Joined: 21 May 2016 - 17:54

Dear: Jinx

Just letting you know that I tried doing that and it did nothing. What I did was I changed "utility/u8g.h" to "clib/u8g.h" and that fixed that untill I ran into another error. I ended up commenting out the code for the machine name and that fixed that error. Now I am running into this error and I can't seem to fix it. Thanks for all your help!!! Do you mind helping me fix this error?

From: Noah

Arduino: 1.6.9 (Linux), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

sketch/Marlin_main.cpp:2048:36: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
         LCD_MESSAGEPGM(MACHINE_NAME" "MSG_OFF".");
                                    ^
In file included from sketch/dogm_lcd_implementation.h:40:0,
                 from sketch/ultralcd.cpp:36:
sketch/ultralcd_st7920_u8glib_rrd.h: In function 'uint8_t u8g_dev_rrd_st7920_128x64_fn(u8g_t*, u8g_dev_t*, uint8_t, void*)':
sketch/ultralcd_st7920_u8glib_rrd.h:40:95: warning: large integer implicitly truncated to unsigned type [-Woverflow]
 #define ST7920_WRITE_BYTE(a)     {ST7920_SWSPI_SND_8BIT((a)&0xf0);ST7920_SWSPI_SND_8BIT((a)<<4);u8g_10MicroDelay();}
                                                                                               ^
sketch/ultralcd_st7920_u8glib_rrd.h:63:9: note: in expansion of macro 'ST7920_WRITE_BYTE'
         ST7920_WRITE_BYTE(0x3E);       //extended mode + gdram active
         ^
sketch/ultralcd_st7920_u8glib_rrd.h:40:95: warning: large integer implicitly truncated to unsigned type [-Woverflow]
 #define ST7920_WRITE_BYTE(a)     {ST7920_SWSPI_SND_8BIT((a)&0xf0);ST7920_SWSPI_SND_8BIT((a)<<4);u8g_10MicroDelay();}
                                                                                               ^
sketch/ultralcd_st7920_u8glib_rrd.h:67:11: note: in expansion of macro 'ST7920_WRITE_BYTE'
           ST7920_WRITE_BYTE(0x80);     //set x = 0
           ^
sketch/ultralcd_st7920_u8glib_rrd.h:40:95: warning: large integer implicitly truncated to unsigned type [-Woverflow]
 #define ST7920_WRITE_BYTE(a)     {ST7920_SWSPI_SND_8BIT((a)&0xf0);ST7920_SWSPI_SND_8BIT((a)<<4);u8g_10MicroDelay();}
                                                                                               ^
sketch/ultralcd_st7920_u8glib_rrd.h:94:13: note: in expansion of macro 'ST7920_WRITE_BYTE'
             ST7920_WRITE_BYTE(0x80);           //x=0
             ^
sketch/ultralcd_st7920_u8glib_rrd.h:40:95: warning: large integer implicitly truncated to unsigned type [-Woverflow]
 #define ST7920_WRITE_BYTE(a)     {ST7920_SWSPI_SND_8BIT((a)&0xf0);ST7920_SWSPI_SND_8BIT((a)<<4);u8g_10MicroDelay();}
                                                                                               ^
sketch/ultralcd_st7920_u8glib_rrd.h:99:13: note: in expansion of macro 'ST7920_WRITE_BYTE'
             ST7920_WRITE_BYTE(0x80 | 8);       //x=64
             ^
/home/noah/Arduino/libraries/U8glib/src/clib/u8g_rot.c:48:1: warning: initialization from incompatible pointer type [enabled by default]
 u8g_dev_t u8g_dev_rot = { u8g_dev_rot_dummy_fn, NULL, NULL };
 ^
/home/noah/Arduino/libraries/U8glib/src/clib/u8g_rot.c:48:1: warning: (near initialization for 'u8g_dev_rot.dev_fn') [enabled by default]
libraries/U8glib/U8glib.cpp.o: In function `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':
/home/noah/Arduino/libraries/U8glib/src/U8glib.cpp:43: multiple definition of `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
Multiple libraries were found for "U8glib.h"
 Used: /home/noah/Arduino/libraries/U8glib
 Not used: /home/noah/Arduino/libraries/U8glib_Arduino-1.19.1
 Not used: /home/noah/Documents/arduino-1.6.9/hardware/arduino/avr/libraries/U8glib_Arduino-master
 Not used: /home/noah/Documents/arduino-1.6.9/hardware/arduino/avr/libraries/U8glib_Arduino-1.19.1
 Not used: /home/noah/Documents/arduino-1.6.9/libraries/U8glib_Arduino-master
sketch/U8glib.cpp.o:sketch/U8glib.cpp:43: first defined here
/home/noah/Documents/arduino-1.6.9/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld: Disabling relaxation: it will not work with multiple definitions
libraries/U8glib/U8glib.cpp.o: In function `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':
/home/noah/Arduino/libraries/U8glib/src/U8glib.cpp:43: multiple definition of `U8GLIB::initHWSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char)'
 Not used: /home/noah/Documents/arduino-1.6.9/libraries/U8glib_Arduino-1.19.1
sketch/U8glib.cpp.o:sketch/U8glib.cpp:43: first defined here
libraries/U8glib/U8glib.cpp.o: In function `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':
/home/noah/Arduino/libraries/U8glib/src/U8glib.cpp:43: multiple definition of `U8GLIB::initI2C(_u8g_dev_t*, unsigned char)'
sketch/U8glib.cpp.o:sketch/U8glib.cpp:43: first defined here
libraries/U8glib/U8glib.cpp.o: In function `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':
/home/noah/Arduino/libraries/U8glib/src/U8glib.cpp:43: 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/U8glib.cpp.o:sketch/U8glib.cpp:43: first defined here
libraries/U8glib/U8glib.cpp.o: In function `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':
/home/noah/Arduino/libraries/U8glib/src/U8glib.cpp:43: multiple definition of `U8GLIB::init8BitFixedPort(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
sketch/U8glib.cpp.o:sketch/U8glib.cpp:43: first defined here
libraries/U8glib/U8glib.cpp.o: In function `U8GLIB::initSPI(_u8g_dev_t*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)':
/home/noah/Arduino/libraries/U8glib/src/U8glib.cpp:43: 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/U8glib.cpp.o:sketch/U8glib.cpp:43: first defined here
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

 

I don't know what to say LOL!!!

Sat, 2016-08-06 02:05  

which screen?

jinx
Offline
Last seen: 1 week 2 hours ago
Joined: 23 Oct 2015 - 15:22

Is that your screen? if so  http://RepRapDiscount Smart Controller  you got the wrong screen  selected in marlin  you want 

// RepRapDiscount Smart Controller.
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
//
// Note: Usually sold with a white PCB.
//
#define REPRAP_DISCOUNT_SMART_CONTROLLER

 

two option up from the full graphics!.

why? you have to do that change "utility/u8g.h" to "clib/u8g.h"