Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all 12090 articles
Browse latest View live

Re: G0 command issue

$
0
0
Try lowering the X and Y max feedrate( which i believe G0 moves at) in config.h / eeprom

Aiuto compilazione

$
0
0
Salve a tutti

Non riesco a compilare un vecchio firmware di marlin per la mia stampante Prusa I3 Rework

Invio il file in formato zip, se qualcuno riesce a compilarlo e spiegare come fare.

Ho usato Arduino dalla versione 1.6.3 alla versione ultima rilasciata ma niente.

Quando avevo compilato questa versione un paio di anni fa per modificare gli step dei motori, riuscivo a compilarlo corettamente, senza nessun errore, cosa che non riesco più a fare, non mi ricordo con quale versione di arduino funzionava, ora avevo installato l'ultima, ho provato anche la 1.05 r2 la
1.6.2 ecc. ecc. ma sempre senza nessun risultato.

Volevo mettere l'ultima versione di Marlin, ma non so quali parametri modificare, se qualcuno mi dice come fare o riesce a farlo ne sarei molto grato.

Il firmware di marlin vecchio che ho postato funziona per la mia stampante Prusa I3 rework o mendel, la mia ha il motore per l'asse Y d'avanti e anche lo swich di fine corsa, e per l'asse X lo swich a destra.

Re: Aiuto compilazione

$
0
0
non riesco a allegare il file.zip
mi da questo errore
413 Request Entity Too Large
nginx/1.10.3 (Ubuntu)

Re: Error while detecting libraries Sd2Card.cpp

$
0
0
I would like to add that i am trying to compile the same exact marlin sketch and libs (synchronized directory on my network) on two different machines. Strangely enough, one lists the error described above and the other one does not (both arduino IDE v1.8.10).

Re: Aiuto compilazione

Re: Aiuto compilazione

Re: Aiuto compilazione

$
0
0
Arduino:1.6.3 (Windows 8.1), Scheda:"Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from U8glib.cpp:38:0:

U8glib.h:42:22: fatal error: clib/u8g.h: No such file or directory

#include "clib/u8g.h"

^

compilation terminated.

Errore durante la compilazione

Questo report potrebbe essere più ricco
di informazioni con
"Mostra un output dettagliato durante la compilazione"
abilitato in "File > Impostazioni"

Re: Aiuto compilazione


Re: Aiuto compilazione

$
0
0
This is an absolute fossil, it so old its not funny. You really should upgrade. This firmware has no safety features.

In the mean time

first issue:

U8glib.h:42:22: error: clib/u8g.h: No such file or directory
compilation terminated.

edit U8glib.h and find
#include <Print.h>
#include "clib/u8g.h"

This code says load the file in the directory clib/u8g.h in the marlin directory. This doesn't exist.
Since the U8glib is installed I just gave it the full path. You will need to change this to the path it is on in your machine.

for you its something like C:\Users\Nino\Documents\Arduino\libraries\U8glib\src\clib\u8g.h check u8g.h exists in this directory.

Change to something like this, but for your location.
#include <Print.h>
#include "C:\Users\Nino\Documents\Arduino\libraries\U8glib\src\clib\u8g.h"

Next issue:

SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'

Edit SdBaseFile.h
search for all instances of fpos_t and replace with filepos_t

Also edit SdBaseFile.cpp
search for all instances of fpos_t and replace with filepos_t


It now compiles on a modern arduino IDE

Re: G0 command issue

$
0
0
it mysteriously stopped doing that after a few resets.
though periodically it will appear lost and do other strange things after a reboot.
It is almost (maybe actually) like some variables are not getting initialized properly.

Marlin "bureaucracy"

$
0
0
<Rant>
So instead of providing one off patches here I decided it was time to actually update marlin on github..

What a nightmare!

Firstly although I can code, and use git, I am not a professional programmer, I don't do this stuff daily.

My first attempt I just created an "issue" with a solution. It was only a three line change.
So after writing a book about it... The bug report was created,
The immediate response was "submit a PR" (PR being pull request)

For a 3 line change, that is expecting a bit much for someone that doesn't do this daily. But eventually someone else did do this.

My second attempt. I created a PR.
The immediate response was "submit a issue"

Can you see the circular logic going on here?

I checked to documentation [marlinfw.org] its clearly says "If you have an open issue associated with your Pull Request" not that you require a issue

Apparently what they really want is an Issue and a PR each referencing the other... despite what the the documentation may say.

And one last insult, I wanted to also update 1.1.x and generated the PR, only to be told that I must use bugfix-1.1.x and was pointed back to the above manual

The manual does not mention 1.1.x or bugfix-1.1.x, it only mentions bugfix-2.0

So 3rd attempt is currently underway with a 3rd PR request, this time to bugfix-1.1.x

I can see why Marlin development is so slow, no one in their right mind would tolerate this bureaucracy! So they wont be attracting many new developers.
</Rant>

U8GLIB Error, preventing compiling

$
0
0
Hello!

I'm getting the following error on compiling the marlin firmware for my printer (Marlin 1.1.3):

In file included from sketch\ultralcd.cpp:65:0:

sketch\ultralcd_impl_DOGM.h: In function 'void lcd_implementation_init()':

ultralcd_impl_DOGM.h:308:94: error: no matching function for call to 'U8GLIB_ST7920_128X64_RRD::drawStr(const uint8_t&, int, double)'

           u8g.drawStr(txt1X, u8g.getHeight() - (DOG_CHAR_HEIGHT) * 3 / 2, STRING_SPLASH_LINE1);

                                                                                              ^

In file included from sketch\ultralcd_st7920_u8glib_rrd.h:41:0,

                 from sketch\ultralcd_impl_DOGM.h:46,

                 from sketch\ultralcd.cpp:65:

C:\Users\Owner\Documents\Arduino\libraries\U8glib/U8glib.h:171:16: note: candidate: u8g_uint_t U8GLIB::drawStr(u8g_uint_t, u8g_uint_t, const char*)

     u8g_uint_t drawStr(u8g_uint_t x, u8g_uint_t y, const char *s) { return u8g_DrawStr(&u8g, x, y, s); }

                ^~~~~~~

C:\Users\Owner\Documents\Arduino\libraries\U8glib/U8glib.h:171:16: note:   no known conversion for argument 3 from 'double' to 'const char*'

C:\Users\Owner\Documents\Arduino\libraries\U8glib/U8glib.h:201:16: note: candidate: u8g_uint_t U8GLIB::drawStr(u8g_uint_t, u8g_uint_t, const __FlashStringHelper*)

     u8g_uint_t drawStr(u8g_uint_t x, u8g_uint_t y, const __FlashStringHelper *s) { return u8g_DrawStrP(&u8g, x, y, (u8g_pgm_uint8_t *)s); }

                ^~~~~~~

C:\Users\Owner\Documents\Arduino\libraries\U8glib/U8glib.h:201:16: note:   no known conversion for argument 3 from 'double' to 'const __FlashStringHelper*'

Multiple libraries were found for "U8glib.h"
 Used: C:\Users\Owner\Documents\Arduino\libraries\U8glib
exit status 1
no matching function for call to 'U8GLIB_ST7920_128X64_RRD::drawStr(const uint8_t&, int, double)'

This is being compiled on a new machine, so I'm not sure if that has something to do with it. I've tried to remove extra instances of U8GLIB to no avail. I have a working firmware version loaded on the board, but I think my measurements are off in terms of build volume on the old firmware, so it needs to be updated. I've been working on this printer for years now off and on and I'm so very close to getting it running, this is driving me mad. I'm a bit of a novice with Marlin so this just eludes me and I don't know where to begin.

Any help would be greatly appreciated.

Re: U8GLIB Error, preventing compiling

$
0
0
delete the directory C:\Users\Owner\Documents\Arduino\libraries\U8glib and try again

Re: U8GLIB Error, preventing compiling

$
0
0
I updated to 1.1.9 just to see if that would compile, and it did!

But now my graphic controller is heavily artifacted and I'm not sure where the issue is. There were no issues in compiling, no error messages, so now I'm not sure what's what.

Re: Aiuto compilazione

$
0
0
Ciao Polvere e grazie per la risposta.
Ho fatto tutte le modifiche che mi hai detto, ho disinstallato la versione 1.6.3 di arduino e installato la 1.8.9
ho compilato ed ho altri errori che allego in un file.txt
Se volessi usare Marlin 2.0.x che come dicono è molto leggero, cosa devo fare che parametri devo inserire per la mia stampante.
Cosa mi consigli.

Re: Aiuto compilazione

$
0
0
Penso di aver trovato un firmware Marlin più nuovo di quello che attualmente ho installato per la mia I3 rework La 1.0.0

Il link dove ho trovato il firmware è il seguente:
[reprap.org]

Se lo lascio così senza cambiare niente, viene compilato corettamente, siccome ho comprato questo display grafico

[reprap.org]

Ho solo decommentato questa riga

//#define REPRAP_DISCOUNT_SMART_CONTROLLER

e attivato questa:

#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

non compila più e mi da questi errori:



Arduino:1.8.9 (Windows 10), Scheda:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

sketch\ultralcd.cpp: In function 'void config_lcd_level_bed()':

ultralcd.cpp:758:3: error: 'lcd' was not declared in this scope

lcd.clear();

^

sketch\ultralcd.cpp: In function 'void lcd_level_bed_cooling()':

ultralcd.cpp:769:11: error: 'lcd' was not declared in this scope

lcd.setCursor(0, 0);

^

ultralcd.cpp:791:4: error: 'lcd' was not declared in this scope

lcd.clear();

^

sketch\ultralcd.cpp: In function 'void lcd_level_bed()':

ultralcd.cpp:800:8: error: 'lcd' was not declared in this scope

lcd.clear();

^

sketch\ultralcd.cpp: In function 'void lcd_load_material_extrud_1()':

ultralcd.cpp:944:5: error: 'lcd' was not declared in this scope

lcd.setCursor(3, 2);

^

sketch\ultralcd.cpp: In function 'void lcd_unload_material_extrud_1()':

ultralcd.cpp:990:5: error: 'lcd' was not declared in this scope

lcd.setCursor(3, 2);

^

sketch\ultralcd.cpp: In function 'void lcd_init()':

ultralcd.cpp:1418:5: error: 'lcd' was not declared in this scope

lcd.clear();

^

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

Domanda:

Dove sbaglio?

Re: U8GLIB Error, preventing compiling

$
0
0
Aaaaaand now the motion is totally broken. Ignoring endstops, placing endstop 0.00 at the furthest end of travel, etc. Should I just make a new topic, or just keep dumping my sorrows here?

Re: U8GLIB Error, preventing compiling

$
0
0
You replaced the brain of your printer with a new brain, but didn't teach it anything about the body it was in...

You need to configure the firmware to match your hardware.

Re: U8GLIB Error, preventing compiling

$
0
0
Quote
Dust
You replaced the brain of your printer with a new brain, but didn't teach it anything about the body it was in...

You need to configure the firmware to match your hardware.

See, I thought I did. I have all my settings ported over, all should be okay. Also when I send M119 I get every endstop reading TRIGGERED. I can upload the configuration tomorrow, but that still doesn't explain the corrupt graphics controller.

So, basically:

Motion is frozen
Corrupt display
All endstops reading TRIGGERED

Re: U8GLIB Error, preventing compiling

$
0
0
With endstops triggered the printer thinks its at min and max position at the same time....
it cant move when it thinks its trapped between two endstops

Does the endstop change to open when you close the switch? if so you just need to invert the endstop,
If the endstops don't change it could be pullups aren't enabled


You need to play with the lcd timings

In configuration.h add these to override the defaults.

#define ST7920_DELAY_1 DELAY_NS(0)
#define ST7920_DELAY_2 DELAY_NS(0)
#define ST7920_DELAY_3 DELAY_NS(63) // these are the default values for a 16mhz processor (ie a mega2560)

which is used in this bit of code

#define ST7920_SND_BIT \
WRITE(ST7920_CLK_PIN, LOW); ST7920_DELAY_1; \
WRITE(ST7920_DAT_PIN, val & 0x80); ST7920_DELAY_2; \
WRITE(ST7920_CLK_PIN, HIGH); ST7920_DELAY_3; \
val <<= 1

which means for each bit that is sent
set the clock pin low and wait delay_1
set the data pin and wait delay_2
set the clock pin high and wait delay_3

Other have found that setting #define ST7920_DELAY_3 DELAY_NS(125) works for them.. but it depends on how slow your lcd is...
Viewing all 12090 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>