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

Re: REPRAP DISCOUNT FULL GRAPHIC SMART CONTROLLER DISPLAY ERROR

$
0
0
Test with short cables.

What controller is this on?

Re: Prusa clone (anet A8 electronics) marlin issue

$
0
0
#1 in Configuration_adv.h

//#define FILAMENT_LOAD_UNLOAD_GCODES // Add M701/M702 Load/Unload G-codes, plus Load/Unload in the LCD Prepare menu.

Enable this line.

#2 in Configuration_adv.h

//#define PARK_HEAD_ON_PAUSE // Park the nozzle during pause and filament change.

enable this line

Just the two config files is normally enough, gives us 99% of the information to help you.

Compile error

$
0
0
I am using Arduino 1.8.9 and an old 1.1.9 copy (unzipped 2/24/2019) of Marlin. When I try to confirm that the original Marlin file will compile I am getting the following error:

sketch\temperature.cpp: In function 'updateTemperaturesFromRawValues':

sketch\temperature.cpp:1048:1: internal compiler error: Segmentation fault

}

^

Please submit a full bug report,

with preprocessed source if appropriate.

See [gcc.gnu.org] for instructions.

lto-wrapper.exe: fatal error: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc returned 1 exit status

compilation terminated.

c:/program files/windowsapps/arduinollc.arduinoide_1.8.21.0_x86__mdqgnx93n4wtt/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.


What do I do now? Thanks in advance.

Re: Compile error

$
0
0
... with this "Segmentation fault" error I'm deleting or changing comment lines and try to recompile, until it works -- this error is "sporadic" and I have no clue otherwise 8-)

Marlin 2.0 Compile Error

$
0
0
Trying to compile Marlin 2.0 for an SKR Mini E3. Every time I try to compile any fork of Marlin 2.0 I get a failure. I think it is missing something that python needs but I cannot figure it out.

I have downloaded the zip, extracted it, opened the project in Platformio and tried to build it without making any changes. Still the build fails. I have attempted this on two different Windows 10 laptops and still get the identical failure.

Here is my system:
Windows 10
Visual Studio Code 1.40.1
Platformio Extension (Home 3.0.1 Core 4.1.0)
Python 3.8.0 (and Python Extension installed in VSC)
Also have installed GIT, updated Pip (Just in case)

It does not matter if I use the "master" fork from bigtreetech or any of the other forks of this fork, I get the same results. I have reached out on the BigTreeTech git site but I think I need to reach out on a larger group to see it anyone else has had a similar issue.

Here is the output while attempting to compile the master fork from BigTreeTech:
Processing STM32F103RC_bigtree_NOUSB (platform: ststm32; framework: arduino; board: genericSTM32F103RC)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: [docs.platformio.org]
PLATFORM: ST STM32 5.7.0 > STM32F103RC (48k RAM. 256k Flash)
HARDWARE: STM32F103RCT6 72MHz, 48KB RAM, 256KB Flash
DEBUG: Current (blackmagic) External (blackmagic, jlink, stlink)
PACKAGES: toolchain-gccarmnoneeabi 1.70201.0 (7.2.1), framework-arduinoststm32-maple 1.10000.190819 (1.0.0), tool-stm32duino 1.0.2
No pyvenv.cfg file
OSError: 'python Marlin/src/HAL/HAL_STM32F1/build_flags.py' exited 106:
File "C:\Users\Raymond\appdata\local\programs\python\python38\lib\site-packages\platformio\builder\main.py", line 151:
env.SConscript("$BUILD_SCRIPT")
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Script\SConscript.py", line 605:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Script\SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\Raymond.platformio\platforms\ststm32\builder\main.py", line 91:
target_elf = env.BuildProgram()
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "C:\Users\Raymond\appdata\local\programs\python\python38\lib\site-packages\platformio\builder\tools\platformio.py", line 112:
env.ProcessFlags(env.get("BUILD_FLAGS"))
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "C:\Users\Raymond\appdata\local\programs\python\python38\lib\site-packages\platformio\builder\tools\platformio.py", line 202:
env.Append(**env.ParseFlagsExtended(flags))
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "C:\Users\Raymond\appdata\local\programs\python\python38\lib\site-packages\platformio\builder\tools\platformio.py", line 165:
for key, value in env.ParseFlags(str(raw)).items():
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Environment.py", line 807:
do_parse(arg)
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Environment.py", line 676:
arg = self.backtick(arg[1:])
File "C:\Users\Raymond.platformio\packages\tool-scons\script..\engine\SCons\Environment.py", line 594:
raise OSError("'%s' exited %d" % (command, status))
==================================================== [FAILED] Took 1.57 seconds ====================================================

Environment Status Duration

megaatmega2560 IGNORED
megaatmega1280 IGNORED
at90usb1286_cdc IGNORED
at90usb1286_dfu IGNORED
DUE IGNORED
DUE_USB IGNORED
DUE_debug IGNORED
LPC1768 IGNORED
LPC1769 IGNORED
sanguino_atmega644p IGNORED
sanguino_atmega1284p IGNORED
melzi IGNORED
melzi_optiboot IGNORED
rambo IGNORED
STM32F103RE IGNORED
STM32F103RC_fysetc IGNORED
STM32F103RC_bigtree IGNORED
STM32F103RC_bigtree_NOUSB FAILED 00:00:01.571
STM32F103RC_bigtree_512K IGNORED
STM32F103RC_bigtree_512K_NOUSB IGNORED
STM32F103RE_bigtree IGNORED
STM32F103RE_bigtree_NOUSB IGNORED
STM32F4 IGNORED
STM32F7 IGNORED
ARMED IGNORED
STM32F103VE_longer IGNORED
mks_robin IGNORED
mks_robin_lite IGNORED
mks_robin_mini IGNORED
mks_robin_nano IGNORED
jgaurora_a5s_a1 IGNORED
STM32F407VE_black IGNORED
BIGTREE_SKR_PRO IGNORED
BIGTREE_BTT002 IGNORED
teensy31 IGNORED
STM32F103CB_malyan IGNORED
chitu_f103 IGNORED
teensy35 IGNORED
esp32 IGNORED
fysetc_f6_13 IGNORED
linux_native IGNORED
SAMD51_grandcentral_m4 IGNORED
include_tree IGNORED
=============================================== 1 failed, 0 succeeded in 00:00:01.571 ===============================================
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

Re: Compile error

Re: REPRAP DISCOUNT FULL GRAPHIC SMART CONTROLLER DISPLAY ERROR

$
0
0
I'm already using short cables, I'm using Marlin 1.1.9 with ramps.

Re: REPRAP DISCOUNT FULL GRAPHIC SMART CONTROLLER DISPLAY ERROR

$
0
0
Try the GLCD tester [github.com]


What are those cables, they don't look like normal ribbon cables.

Re: Compile error

$
0
0
... I have the same error with different ZIP-IDE's on two different PC's - so it seems to be a more complex cause :S

Re: Prusa clone (anet A8 electronics) marlin issue

$
0
0
Thank you very much Dust, can’t wait to test this next week. The only question I have without trying it is,
Quote
Dust
// Add M701/M702 Load/Unload G-codes

Will I add the gcode I have in the place of m701/m702, after it, etc.?

This is what I ‘run as a print’ to currently change:

G21 ;Let the printer know you are following this point with metric values
G90 ;Let the printer know you are using absolute positioning
M109 S215.000 ;Heat hotend to 200C for PLA 'S245.000' for ABS
G92 E0 ;Reset the position of the extruder
G1 E70 F1000 ;Feed 70 mm of filament at 1000 mm/minute speed
G92 E0 ;Reset the position of the extruder
G1 E30 F200 ;Feed 30 mm of filament at 200 mm/minute speed
G92 E0 ;Reset the position of the extruder
M400 ;finish


Thank you once again.

Re: moved from ancient Marlin to Marlin 1.1.8, now hotend does not heat up

$
0
0
While I am guessing this is not the cause, I thought I would offer the following as I had something similar happen to me (printer worked and then after some work on the board and flashing, the end would not heat up). Drove me nuts and took me way longer than I would like to admit to figure out. Turns out my thermostat was broken, so it simply read 0 degrees (not even room temp). This caused my printer to act exactly as yours when I tried to pre-heat.

Just throwing it out there as if it is that, it is a simple fix of swapping in new thermostat.

Good-luck.

Re: REPRAP DISCOUNT FULL GRAPHIC SMART CONTROLLER DISPLAY ERROR

$
0
0
Quote
Dust
Try the GLCD tester [github.com]


What are those cables, they don't look like normal ribbon cables.

They look wrapped in aluminium foil. Are you sure there are no shorted pins?

Marlin 2.0.x Z axis not homing to MAX endstop with G28 etc

$
0
0
HI Everyone,
Im setting up a new printer with Marlin 2.0.x on a Azteeg X5 GT from Panucatt and 32bit
Im having a problem with Z homing to max endstop.

What ive found so far:
Physical endstop is triggered in the max when moving bed up to endstop, this is confirmed by M119
Reset board, and M114 to return:
Recv: X:0.00 Y:250.00 Z:0.00 E:0.00 Count X:0 Y:25000 Z:0
I can move the bed down via controls on octoprint say 10mm and M114 returns
Recv: X:0.00 Y:250.00 Z:-10.00 E:0.00 Count X:0 Y:25000 Z:-10667
and then back up to 0 at MAX with the endstop triggered with M119.

Then If I home via G28 or Z axis on octoprint.
The bed keeps lowering to the min and rams into floor....?? Does not home to MAX?

Can anyone see an error or possibly know a solution. Configuration.h attached as file
cheers
jason

My settings are all correct for:
"// @section homing

// Specify here all the endstop connectors that are connected to any endstop or probe.
// Almost all printers will be using one per axis. Probes will use one or more of the
// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
#define USE_XMIN_PLUG
//#define USE_YMIN_PLUG
//#define USE_ZMIN_PLUG
//#define USE_XMAX_PLUG
#define USE_YMAX_PLUG
#define USE_ZMAX_PLUG

// Enable pullup for all endstops to prevent a floating state
//#define ENDSTOPPULLUPS
#if DISABLED(ENDSTOPPULLUPS)
// Disable ENDSTOPPULLUPS to set pullups individually
//#define ENDSTOPPULLUP_XMAX
//#define ENDSTOPPULLUP_YMAX
//#define ENDSTOPPULLUP_ZMAX
//#define ENDSTOPPULLUP_XMIN
//#define ENDSTOPPULLUP_YMIN
//#define ENDSTOPPULLUP_ZMIN
//#define ENDSTOPPULLUP_ZMIN_PROBE
#endif

// Enable pulldown for all endstops to prevent a floating state
//#define ENDSTOPPULLDOWNS
#if DISABLED(ENDSTOPPULLDOWNS)
// Disable ENDSTOPPULLDOWNS to set pulldowns individually
//#define ENDSTOPPULLDOWN_XMAX
//#define ENDSTOPPULLDOWN_YMAX
//#define ENDSTOPPULLDOWN_ZMAX
//#define ENDSTOPPULLDOWN_XMIN
//#define ENDSTOPPULLDOWN_YMIN
//#define ENDSTOPPULLDOWN_ZMIN
//#define ENDSTOPPULLDOWN_ZMIN_PROBE
#endif

// Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
#define X_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
#define Y_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
#define Z_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
#define X_MAX_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
#define Y_MAX_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
#define Z_MAX_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
//#define Z_MIN_PROBE_ENDSTOP_INVERTING true // Set to true to invert the logic of the probe."

and

"// @section homing

//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed

//#define UNKNOWN_Z_NO_RAISE // Don't raise Z (lower the bed) if Z is "unknown." For beds that fall when Z is powered off.

//#define Z_HOMING_HEIGHT 4 // (mm) Minimal Z height before homing (G28) for Z clearance above the bed, clamps, ...
// Be sure you have this distance over your Z_MAX_POS in case.

// Direction of endstops when homing; 1=MAX, -1=MIN
// :[-1,1]
#define X_HOME_DIR -1
#define Y_HOME_DIR 1
#define Z_HOME_DIR 1

// @section machine

// The size of the print bed
#define X_BED_SIZE 250
#define Y_BED_SIZE 250

// Travel limits (mm) after homing, corresponding to endstop positions.
#define X_MIN_POS 0
#define Y_MIN_POS 0
#define Z_MIN_POS 200
#define X_MAX_POS X_BED_SIZE
#define Y_MAX_POS Y_BED_SIZE
#define Z_MAX_POS 0

/**
* Software Endstops
*
* - Prevent moves outside the set machine bounds.
* - Individual axes can be disabled, if desired.
* - X and Y only apply to Cartesian robots.
* - Use 'M211' to set software endstops on/off or report current state
*/

// Min software endstops constrain movement within minimum coordinate bounds
#define MIN_SOFTWARE_ENDSTOPS
#if ENABLED(MIN_SOFTWARE_ENDSTOPS)
#define MIN_SOFTWARE_ENDSTOP_X
#define MIN_SOFTWARE_ENDSTOP_Y
#define MIN_SOFTWARE_ENDSTOP_Z
#endif

// Max software endstops constrain movement within maximum coordinate bounds
#define MAX_SOFTWARE_ENDSTOPS
#if ENABLED(MAX_SOFTWARE_ENDSTOPS)
#define MAX_SOFTWARE_ENDSTOP_X
#define MAX_SOFTWARE_ENDSTOP_Y
#define MAX_SOFTWARE_ENDSTOP_Z
#endif"

Re: REPRAP DISCOUNT FULL GRAPHIC SMART CONTROLLER DISPLAY ERROR

$
0
0
Quote
Ohmarinus
They look wrapped in aluminium foil.

That is my guess also, which you would normally only try if you where trying to sheid overly long cables...

Which is why I said to use short cables for testing.

Re: Marlin 2.0.x Z axis not homing to MAX endstop with G28 etc

$
0
0
What happens when you set:
#define Z_HOME_DIR -1

Assuming you are using an Hbot or corexy. The bed still homes to Zmin btw. It just moves up instead of down.

If the bed moves to zmax it means the bed would move down. If you home to zmin it would move up

Re: Marlin 2.0.x Z axis not homing to MAX endstop with G28 etc

$
0
0
Yes Concurr,
Just came to the same conclusion and BOOM works well.
Thanks for your help.
jas

Re: Marlin 2.0.x Z axis not homing to MAX endstop with G28 etc

$
0
0
Quote
Jasontwd
Yes Concurr,
Just came to the same conclusion and BOOM works well.
Thanks for your help.
jas

Ah good to hear! Any place where we can see your printer? :)

Final Marlin configuration

$
0
0
Been a long road but my FLSUN kossel is almost ready to print again.
I have everything set using the manual configuration process to modify the Marlin script using Arduino.
However, now I have all the tower heights exactly the same the centre height is 0.7 mm above the bed at Z0.
I cannot find anything to guide me in this last adjustment that relates to the current Marlin version.
Everything I find refer to DELTA SMOOTH ROD OFFSET, but the new version does have this code at all.
I have not been able to find a work around, can anyone help?
I no longer have an effector with auto-calibration end-stop so I need to figure this out.

Delta homing under Marlin - moved from 'Deltas'

$
0
0
I moved this problem from 'Deltas' to here are it's more of a Marlin issue than specifically with the machine itself.

I have a fairly new Anycubic Kossel Linear Plus running Marlin 1.1.9 (recently updated) on its TriGorilla board. Everything is going well, and I'm getting decent prints. However, I have one significant problem: when I'm doing the Delta Calibration routines via the LCD, the print head finishes off by trying to push itself through the front-left (X) column!

I have done quite a bit of on-line research and have got rid of quite a number of issues, but this one's a persistent little beggar...
  • If I do G28 the machine will home properly - reasonably central, and straight to the top - but it seems to go wrong now and again, and I can't predict when.
  • Killing/stopping a job will often send the head to the X column.
  • If I enter 'G0 F2000 X0 Y0 Z280' the head will go central and stop correctly near to the top.
  • If I enter Prepare -> Delta Calibration -> Auto Calibration on the printer's LCD terminal it will go through its routine, then head upwards and leftwards until it collides with the left (X) column.
  • A random selection (probably not totally 'random'!) will go straight up on home, others will head for the front-left position.
Almost certainly I have something wrong in my Marlin configuration - could people have a look at my Configuration.h file (attached) and suggest where I've gone wrong? I have also attached my Configuration_adv.h, just in case...

TIA,

David

Re: Marlin 2.0.x Z axis not homing to MAX endstop with G28 etc

$
0
0
Thanks, I 've set up a blog, but havnt put any new stuff on there for ages. I'll get some writing and info up there and send you link once ready eh.
You got messanger address and I flick you some images and video of it working just today.
jas
Viewing all 12089 articles
Browse latest View live


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