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

Re: move Z - axis beyond zero without LCD

$
0
0
Hey,
Have you defined
#define Z_MIN_PROBE_PIN?

Regards

3 problems with Marlin 1.1.9 and MKS GEN 1.4

$
0
0
OK, the first problem is when trying to compile Marlin with the Auto bed levelling. I get the following error:

expected ',' before numeric constant

#if ENABLED(AUTO_BED_LEVELING_LINEAR) || ENABLED(AUTO_BED_LEVELING_BILINEAR)

// Set the number of grid points per dimension.
#define GRID_MAX_POINTS_X 3
#define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X

// Set the boundaries for probing (where the probe can reach).
#define LEFT_PROBE_BED_POSITION MIN_PROBE_EDGE 15
#define RIGHT_PROBE_BED_POSITION (X_BED_SIZE - MIN_PROBE_EDGE) 205
#define FRONT_PROBE_BED_POSITION MIN_PROBE_EDGE 48
#define BACK_PROBE_BED_POSITION (Y_BED_SIZE - MIN_PROBE_EDGE) 205

Now if I put the ',' in there like it is expecting it complains about another error but if I comment those four lines out then it will compile. The second problem is when trying to enable the Z_Safe_Homing I get the following error:

static assertion failed: Z_SAFE_HOMING_X_POINT is outside the probe region.


#if ENABLED(Z_SAFE_HOMING)
#if HAS_BED_PROBE
static_assert(WITHIN(Z_SAFE_HOMING_X_POINT, MIN_PROBE_X, MAX_PROBE_X), "Z_SAFE_HOMING_X_POINT is outside the probe region.");
static_assert(WITHIN(Z_SAFE_HOMING_Y_POINT, MIN_PROBE_Y, MAX_PROBE_Y), "Z_SAFE_HOMING_Y_POINT is outside the probe region.");
#else
static_assert(WITHIN(Z_SAFE_HOMING_X_POINT, X_MIN_POS, X_MAX_POS), "Z_SAFE_HOMING_X_POINT can't be reached by the nozzle.");
static_assert(WITHIN(Z_SAFE_HOMING_Y_POINT, Y_MIN_POS, Y_MAX_POS), "Z_SAFE_HOMING_Y_POINT can't be reached by the nozzle.");
#endif
#endif // Z_SAFE_HOMING

The third problem is none of my axis moves. I have attached the Configuration.h and the Configuration.adv.h
Thank you for any help you can give.

Ted

Thermistor/temperature problem

$
0
0
hi everyone, i am new on this forum and having an anet a8 since a while.

I am trying desperately to install Marlin (1.1.9) but there is an issue with the thermistors behavior.

By the way it is working properly under A8 stock firmware so I don't think it is a hardware issue or a wrong wiring.

Problems are :
1. The temp shown for the hot end it too low (9° whilst it is 18° in the room). Temp is fine for the bed.
2. If I warm the bed to 30° it goes up to 30° which is fine but if I warm up the hot endto 200°, the hot end warm which is also ok. BUT the temp shown for the bed increases to 110° without warming the bed above 30°. The bed is still around 30° then decrease a bit because it is not warming anymore dur to the temp shown at 110°.
3. If on the motherboard I connect the bed temp connector to the hot end entry, the temp shown for the hot end (which is in reality the bed) is 27° which is fine...
4. If I flash back the stock firmware on my anet, the 2 temp shown are ok.

I become crazy because I really want to use Marlin for security reasons and to be able to use a bltouch.

Any idea of the issue ? In config.h I have selected 5 et 5 and tried several others but without any success.

Any help will be appreciated. Thanks in advance.

Frankie666

Re: Thermistor/temperature problem

$
0
0
Did you roll your own configuration.h or copy the one from marlin example_configurations/Anet/A8 ?

Re: Thermistor/temperature problem

$
0
0
thx, i copy the files from example anet a8.

Marlin 1.1.x Axis configuration issues

$
0
0
Hello all,

New to this forum so please be patient. I inherited a Solidoodle Workbench which was working when I received it. The factory controller board died and the company is no longer in business. I purchased a Ramps 1.4 & Arduino Mega 2560 for the replacement controller. I have just about everything working with the latest Marlin firmware except I cannot set the Z axis home position above the bed. M114 returns this after clicking the home buttons in Octoprint: X:-30.00 Y:-15.00 Z:10.00 E:0.00 Count X:-3780 Y:-1875 Z:17040. Home position is in the back right corner when looking at the front of the printer. There is one limit switch per axis, X & Y are located in the Home position and Z is at the top. I have searched online extensively for instructions but here I am asking for help.

TIA

Marlin 2.0 Low Memory Warning

$
0
0
Hi All,

I am configuring Marlin for my 3D printer and I have run into a warning:

Sketch uses 207664 bytes (81%) of program storage space. Maximum is 253952 bytes.
Global variables use 7779 bytes (94%) of dynamic memory, leaving 413 bytes for local variables. Maximum is 8192 bytes.
Low memory available, stability problems may occur.

I was wondering if anyone has any suggestions to reduce the dynamic memory usage, ideally without removing many of the extra features. :P
Is it possible to use an I2C memory chip to expand the SRAM?
I was thinking there may be some unneccesary variables like thermistor tables that I could get rid off, but I am not sure if those would make a difference.

Perhaps it is actually fine to only have 413 bytes, is it best for me to just test the firmware on my printer?

Thanks,

Tanmay

Re: Marlin 2.0 Low Memory Warning

$
0
0
This is a very interesting question which brings up even more questions.

I too would like to know if there is a way to expand the SRAM.

Re: Volumetric Extrusion settings

$
0
0
If only talking about the extruder, assuming a 0.4mm nozzle, use the formula:
v=s*PI*r^2
therefore
mm^3 = 5.3*PI*(0.4/2)^2
= 0.666 mm^3
If someone else has better solution, I'm genuinely interested. I usually calculate volumetrics using run speed, so v = lws.
For example, if I want to run at 30mm/s with a layer height of 0.3mm and an extrusion width of 0.5mm, I'll set my volumetric speed to 4.5mm^3/s.

Need to define Y_CS_PIN in Configuration_adv.h

$
0
0
Sorry to be a pain in the butt but when I try to compile Marlin 1.1.9 I'm getting the following error ( #error "Y_CS_PIN is required for TMC2130. Define Y_CS_PIN in Configuration_adv.h."). How do you define this statement in the Configuration_adv.h file. Thanks in advance for the help.

Re: Need to define Y_CS_PIN in Configuration_adv.h

$
0
0
Sorry, after going back over my pins_RAMPS.h file I found my mistake.

Marlin 1.1.8 - MKS Gen 1.4 and TMC 2100

$
0
0
Hello,

I've searched through the forum and can't find anyone who's running into the same issue as me. I've just finished building a CoreXY. Initially, I had an MKS Gen 1.4 with DRV8825's throughout. I wanted to install some TMC 2100's to replace my X/Y Movement, and I'm running into an issue where all my movement's are twice what they should be; 1mm is moving 2mm, 10/20, 100/200, etc.. I've adjusted the steps/mm in the firmware with no change - I've also played with the microstepping jumpers on the board. All with no results. I've closed the solder pads between CFG1 and GND as I wanted to run in spreadcycle mode. I've also tried in stealthchop with the same result..

can anyone offer some insight into why this is happening?

Thank you very much in advance,
~C.

Re: Marlin 1.1.8 - MKS Gen 1.4 and TMC 2100

$
0
0
After having changed the steps/mm in the firmware, have reset the values to the (new) defaults and stored them into EEPROM? This can be done via display menu or by sending manually the gcodes M502 followed by M500.

As for the micro stepping changes not having any effect, note that there are some RAMPS boards around which have the jumper pins shorted on the PCB, so that the jumper settings have no effect.

Arduino IDE search all of sketch

$
0
0
I have been working with Marlin 1.1.7-1.1.9 for a few months. I am looking into 2.0.x and find that only 3 files are shown in the IDE now. That means that search does not go across all the source files even when the all sketch option in the search dialog is selected. Is there another option that I do not know about for searching all source? Is there a way to go back to all sources being tabed?

Thanks
Robert Duncan

Re: Arduino IDE search all of sketch


Re: BLTouch and UBL

$
0
0
I can't seem to edit the original post, but a couple of small tweaks to the instructions above. Any comments?:

Bed Leveling 1:
*************
Pre-heat the nozzle and bed.
G28;
Make sure both z axis are the same height. Adjust where necessary.
Manually level the bed with a piece of paper (0.1mm)

Set probe trigger height
****************
Remove paper (from above)
M502; Reset everything
M500; Save blank settings to EEPROM
M501
G28;
M851 Z0;
G0 Z10; Raise Z 10mm
Deploy the probe.
Move Z down slowly until the probe triggers.
M114; What the printer believes the Z height is. Take the current M114 value and negate it. (0.80 => -0.80)
M851 Z-0.80; and #define Z_PROBE_OFFSET_FROM_EXTRUDER -0.80
M500;

Set Z height
*****************
M211 S0; Disable software endstops.
Put a piece of paper on the bed (0.1mm)
G28 ; Home the axis.
G0 Z0; Home Z to zero.
M119; Check what the end stops are doing. Z should both have triggered.
M114; to check what it thinks the Z height is
G0 Z-X.XX; Adjust the Z height down so it just grabs the paper, taking note of the Z adjustments made.
M114; Write down the new Z height
M851 Z-x.yz; This is last M114 result minus the 1st M114 result. Negative, if nozzle is above trigger point. This is #define Z_PROBE_OFFSET_FROM_EXTRUDER -X.XX in marlin
M500; Save the settings
G28; Home everything.
Remove the paper from the bed.
Carry on with Auto bed levelling below.

Bed Leveling 2:
*************
G29 P1; Automatic Probing
G29 P3 T ; Repeat until all mesh points are filled in.
G29 S1 ; Save UBL mesh points to EEPROM.
G29 F 10.0 ; Set Fade Height for correction at 10.0 mm.
G29 A ; Activate the UBL System.
M500 ; Save current setup.
M211 S1; Re-enable software endstops.

Re: Arduino IDE search all of sketch

$
0
0
You have all other files in src folder under marlin...

Re: Trouble configuring 3d touch z probe

$
0
0
You have to connect the 2 pins of 3d touch to GND and Sig on Zmin...

Problem enabling Z Home Safe

$
0
0
Does anyone know why I'm getting this error (static assertion failed: Z_SAFE_HOMING_X_POINT is outside the probe region.) when I try to enable Z_HOME_SAFE feature. I'm using Marlin 1.1.9 and an MKS Gen 1.4. Print area is 220mm x 220mm x 240mm.
Thanks

Error compiling for board

$
0
0
Hi,

I am new to Marlin and just finished setting up the configuration file, but whenever I try to compile the code I get the following error

C:\Users\ethan\AppData\Local\Temp\ccFKhzde.ltrans3.ltrans.o: In function `position_is_reachable_by_probe(float const&, float const&) [clone .isra.1] [clone .lto_priv.164]':

: (.text+0x6fa): undefined reference to `TMC2130Stepper::getOTPW()'

C:\Users\ethan\AppData\Local\Temp\ccFKhzde.ltrans3.ltrans.o: In function `void tmc_report_otpw(TMC2130Stepper&, TMC_AxisEnum)':

: (.text+0x750): undefined reference to `TMC2130Stepper::getCurrent()'

C:\Users\ethan\AppData\Local\Temp\ccFKhzde.ltrans3.ltrans.o: In function `void tmc_set_current(TMC2130Stepper&, int)':

: (.text.unlikely+0x18): undefined reference to `TMC2130Stepper::setCurrent(unsigned int, float, float)'

C:\Users\ethan\AppData\Local\Temp\ccFKhzde.ltrans4.ltrans.o: In function `tmc2130_init(TMC2130Stepper&, unsigned int, unsigned int, unsigned long, float) [clone .constprop.63]':

: (.text+0x1cdc): undefined reference to `TMC2130Stepper::begin()'

: (.text+0x1cf6): undefined reference to `TMC2130Stepper::setCurrent(unsigned int, float, float)'

: (.text+0x1d00): undefined reference to `TMC2130Stepper::microsteps(unsigned int)'

: (.text+0x1d08): undefined reference to `TMC2130Stepper::blank_time(unsigned char)'

: (.text+0x1d10): undefined reference to `TMC2130Stepper::toff(unsigned char)'

: (.text+0x1d18): undefined reference to `TMC2130Stepper::intpol(bool)'

: (.text+0x1d20): undefined reference to `TMC2130Stepper::TPOWERDOWN(unsigned char)'

: (.text+0x1d28): undefined reference to `TMC2130Stepper::hysteresis_start(unsigned char)'

: (.text+0x1d30): undefined reference to `TMC2130Stepper::hysteresis_end(signed char)'

: (.text+0x1d38): undefined reference to `TMC2130Stepper::pwm_freq(unsigned char)'

: (.text+0x1d40): undefined reference to `TMC2130Stepper::pwm_autoscale(bool)'

: (.text+0x1d48): undefined reference to `TMC2130Stepper::pwm_grad(unsigned char)'

: (.text+0x1d50): undefined reference to `TMC2130Stepper::pwm_ampl(unsigned char)'

: (.text+0x1d58): undefined reference to `TMC2130Stepper::en_pwm_mode(bool)'

: (.text+0x1d6a): undefined reference to `TMC2130Stepper::GSTAT()'

C:\Users\ethan\AppData\Local\Temp\ccFKhzde.ltrans17.ltrans.o: In function `global constructors keyed to 65535_0_G26_Mesh_Validation_Tool.cpp.o.6491':

: (.text.startup+0x72): undefined reference to `TMC2130Stepper::TMC2130Stepper(unsigned int, unsigned int, unsigned int, unsigned int)'

: (.text.startup+0x8a): undefined reference to `TMC2130Stepper::TMC2130Stepper(unsigned int, unsigned int, unsigned int, unsigned int)'

: (.text.startup+0xa2): undefined reference to `TMC2130Stepper::TMC2130Stepper(unsigned int, unsigned int, unsigned int, unsigned int)'

: (.text.startup+0xba): undefined reference to `TMC2130Stepper::TMC2130Stepper(unsigned int, unsigned int, unsigned int, unsigned int)'

C:\Users\ethan\AppData\Local\Temp\ccFKhzde.ltrans12.ltrans.o: In function `MarlinSettings::report(bool)':

: (.text+0x8fc): undefined reference to `TMC2130Stepper::getCurrent()'

: (.text+0x90e): undefined reference to `TMC2130Stepper::getCurrent()'
 
: (.text+0x920): undefined reference to `TMC2130Stepper::getCurrent()'

: (.text+0x93a): undefined reference to `TMC2130Stepper::getCurrent()'

C:\Users\ethan\AppData\Local\Temp\ccFKhzde.ltrans18.ltrans.o: In function `gcode_M912()':

: (.text+0x56): undefined reference to `TMC2130Stepper::clear_otpw()'

: (.text+0x86): undefined reference to `TMC2130Stepper::clear_otpw()'

: (.text+0xb4): undefined reference to `TMC2130Stepper::clear_otpw()'

: (.text+0xe2): undefined reference to `TMC2130Stepper::clear_otpw()'

collect2.exe: error: ld returned 1 exit status

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

could someone try to help me?

Thanks,
Ethan
Viewing all 12089 articles
Browse latest View live


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