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

Re: bed and nozzle heaters are not working at the same time

$
0
0
Make sure that the tabs on the RAMPS mosfets are not touching - that can cause all sorts of problems.

Re: No response from Serial on Custom Board

$
0
0
Ok, I got everything working. Turns out that Marlin does not like 12 MHz. The 1.1.x-bugfix wouldn't even compile with it since the FastIO uses lookup tables to determine an appropriate baud frequency. I changed out that 12 MHz crystal for a 16 MHz Ceramic Resonator I had and everything works up to 250000 baud now! Thanks for your help Dust, really appreciate it!

Using Marlin 2.x and saving UBL mesh into EEPROM, how to make minor adjustments in the firmware?

$
0
0
I've upgraded to Marlin 2.x and am trying out UBL, saving the mesh data into EEPROM.

I've run into an issue where if I want to reconfigure the z-probe offset to my nozzle, I have to go through the whole mesh leveling again (plus reset and resave to EEPROM).

What are the correct steps to keeping the previous UBL mesh in EEPROM while also being able to reflash minor changes to the firmware configuration and having it take effect?

I'm verifying by doing an M501 after a firmware flash, I think this will read what's in EEPROM, feels like the new configuration won't take effect since I have RESTORE_LEVELING_AFTER_G28. Not sure if this restores old settings as well?

Re: BTT SKR1.3+BTT TMC2209 sound and vibration issue:S

$
0
0
Solved it. Moved to another TMC repo in platformio.ini:

[env:LPC1768]
platform          = [github.com]
framework         = arduino
board             = nxp_lpc1768
build_flags       = -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
# debug options for backtrace
#  -funwind-tables
#  -mpoke-function-name
lib_ldf_mode      = off
lib_compat_mode   = strict
extra_scripts     = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
src_filter        = ${common.default_src_filter} +
monitor_speed     = 250000
lib_deps          = Servo
  LiquidCrystal
  U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip
  #TMCStepper=https://github.com/p3p/TMCStepper/archive/pr_lpctimingfix.zip #not ok
  TMCStepper=https://github.com/teemuatlut/TMCStepper/archive/master.zip #ok
  Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/release.zip
  SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip

Re: BTT SKR1.3+BTT TMC2209 sound and vibration issue:S

$
0
0
Quote
Jazzroutine
Solved it. Moved to another TMC repo in platformio.ini:

[env:LPC1768]
platform          = [github.com]
framework         = arduino
board             = nxp_lpc1768
build_flags       = -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
# debug options for backtrace
#  -funwind-tables
#  -mpoke-function-name
lib_ldf_mode      = off
lib_compat_mode   = strict
extra_scripts     = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
src_filter        = ${common.default_src_filter} +
monitor_speed     = 250000
lib_deps          = Servo
  LiquidCrystal
  U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip
  #TMCStepper=https://github.com/p3p/TMCStepper/archive/pr_lpctimingfix.zip #not ok
  TMCStepper=https://github.com/teemuatlut/TMCStepper/archive/master.zip #ok
  Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/release.zip
  SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip

Did you read about this solution elsewhere or did you come up with it yourself? I'm curious is theres more info about this bug and what the options are concerning TMC repo's.

Re: Using Marlin 2.x and saving UBL mesh into EEPROM, how to make minor adjustments in the firmware?

$
0
0
First of all, resetting your EEPROM (M502) should not overwrite your mesh as long as you have saved it with ''G29 S". You should be able to restore it by using "G29 L" and then activate it with "G29 A1".

In case you are running into a bug where the mesh is being overwritten, or you need to replace your board with a new one, you can use "G29 S-1" to print out gcode commands that will reset the mesh. Save those commands as a gcode file that you can replay to get the same mesh back.

Probe/homing weirdness on CoreXY

$
0
0
Hey everyone, I've recently built a HEVO, and I've got everything homing properly (I think.) It homes to the front left corner. The bed homes nicely to meet the probe. When I do bilinear probing however, it appears to be moving the z axis in the wrong direction, causing it to scrape more and more with each probe point. After this the print starts, and the bed moves up even farther.

I'm not super savvy with Marlin, so I'm pretty sure I've just got something a bit off. Anyone got any ideas what it might be? I've attached my configuration.h, hopefully that'll shed some light on the issue.

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

$
0
0
I have made this switch from ancient Marlin versions to 1.1.8 on several printers with no problems, but this one isn't working.
I have a custom Kossel that uses the RAMPS 1.4 board. It is a hot end and fan only, bed. I used a RAMPS EFF (extruder, fan, fan) setting from the boards.h, there isn't a EF only option for RAMP 1.4 or 1.3.
I used the RAMPS 1.3 board def '35' in both the old Marlin and new Marlin. I also tried the '45' board for the RAMPS 1.4, same thing happens.

Everything works but the hot end. I am scratching my head.
I set the extruder count to 1
I set the correct thermistor (that is working fine)
The display says it is trying to do the hot end, but, nada.

When I turn on the hot end from Pronterface, no heat.

The hardware is fine. If I revert to the old code, all works as usual.

Is there some nuance that I am missing? This is the first time that I have attempted this move to a system that does not have a heated bed. Is the "EFF" choice bunging up the system?

Thanks,
DLC

Warning in marlin bugfix-2.0.x Build

$
0
0
Anyone have any insight into the following warning and its scope of potential impact. (I have not yet found the source file to analyze).

\STM32ADC\src\utility\util_adc.c:10:30: warning: 'adc_result' initialized and declared 'extern'
extern volatile unsigned int adc_result = 0;


Thanks for sharing your expertise.

Regards,

Charles F. Nelson

Re: Probe/homing weirdness on CoreXY

$
0
0
Figured it out! I had the axis reversed, AND homing reversed, so it appeared to be moving the right direction.

Lower PWM frequency on part cooling fans?

$
0
0
I am having a problem with my part cooling Sunon maglev fans, they will not rotate when the PWM is lower than 80% in default conditions and 60% when using the FAN_SOFT_PWM and SOFT_PWM_SCALE 0 directives. Is there any way to make them work with a lower value? Maybe lowering the frequency even more, as to get an occasional blip?

Re: Lower PWM frequency on part cooling fans?

$
0
0
This is an issue with your fans they just don't do PWM very well

Google putting a capacitor over the power wires

Re: Lower PWM frequency on part cooling fans?

$
0
0
Dust, thank you for your reply.

So a low-pass (or averaging etc.) filter solves it? Wow, that is the exact opposite of what I would expect, in fact, by experience, usually these fans will stop working below a given (usually high) DC voltage. But I will try you suggestion anyway.

Re: Lower PWM frequency on part cooling fans?

$
0
0
Let us know how it worked out! :)

Re: Lower PWM frequency on part cooling fans?

$
0
0
Quite a lot of fans that don't work at the standard PWM frequencies do work with 100Hz PWM. Some others, such as the heatsink fans supplied with E3D hot ends, don't even work at those low frequencies.

You could use a flyback diode and a series inductor as a low pass filter, but in order to keep the inductor reasonably small you need to increase the PWM frequency to several 10s of kHz.

Some people use a parallel capacitor to partly smooth the PWM, but this risks blowing the mosfet because of the high peak current when the mosfet turns on and the capacitor charges.

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

$
0
0
More information.
I have now tried to create a Marlin 1.1.8 Delta on two different delta printers that do not have heated beds,
one is a RAMPS 1.4 and the other is a MKS Gen 1.4 controller.
In each case, the hot end does not even try to heat.
In both cases, I have a super old marlin base that works just fine.
I have successfully upgraded an Anet A8, HE3D K200 delta, FLSUN delta (using the Marlin config files given), a custom Tevo Tarantula that I made a dual extruder, and a custom Cartesean printer with no problems. 1.1.8 worked first time on these other five printers.

Pronterface commands cause the display to say it is intending to heat, but no thermistor movement, eventual temp failure. Same for display controller setting to preheat to a temperature.
(Remember, this all works fine with an old version of Marlin, unknown vintage, just not with 1.1.8.

I am missing something and I do not understand what it is!
Any hints appreciated,
Thanks,
DLC


I have attached the configuration.h file, ifdef'd for each of the printers I am trying to get going. I am really hoping for a 'forehead slap" moment...
[attachment 113505 Configuration.h]

Re: UBL Delta Calibration for Square Printing

$
0
0
Quote
Ohmarinus
Shouldn't this topic be in the Delta forum?

Maybe you should go ahead and move it to the delta forum after all.

Thanks

Marlin 2.0.X Bugfix Platformio error compilation

$
0
0
Hello all,

I tried to compile a marlin 2.0.x for an SKR 1.3 +TMC5160 V1.1 for a delta printer type kossel K800XL ...
I use visual studio code + pio platform

I suppose there is missing something somewhere... But I don't know what is missing and in wich file.
Could someone help me ?
I can provide You other files / informations if needed

Here is what I received as message :


CIompiling .pio\build\LPC1768\src\src\lcd\menu\menu_ubl.cpp.o
n file included from Marlin\src\lcd\menu\menu_sdcard.cpp:31:
Marlin\src\lcd\menu\menu_sdcard.cpp: In function 'void menu_sdcard()':
Marlin\src\lcd\menu\menu_sdcard.cpp:128:29: error: 'MSG_CARD_MENU' was not declared in this scope
C ompiling .pio\build\LPC1768\src\src\lcd\ultralcd.cpp.o
MENU_ITEM(sdfolder, MSG_CARD_MENU, card);
Compiling .pio\build\LPC1768\src\src\libs\L6470\L6470_Marlin.cpp.o
^~~~~~~~~~~~~
Marlin\src\lcd\menu\menu.h:316:88: note: in definition of macro '_MENU_ITEM_VARIANT_P'
draw_menu_item ## VARIANT ## _ ## TYPE(encoderLine == _thisItemNr, _lcdLineNr, PLABEL, ## __VA_ARGS__); \
^~~~~~
Marlin\src\lcd\menu\menu.h:346:103: note: in expansion of macro 'PSTR'
#define MENU_ITEM(TYPE, LABEL, ...) _MENU_ITEM_VARIANT_P(TYPE, , false, PSTR(LABEL), ## __VA_ARGS__)
^~~~
Marlin\src\lcd\menu\menu_sdcard.cpp:128:9: note: in expansion of macro 'MENU_ITEM'
MENU_ITEM(sdfolder, MSG_CARD_MENU, card);
^~~~~~~~~
Marlin\src\lcd\menu\menu_sdcard.cpp:128:29: note: suggested alternative: 'MSG_INFO_MENU'
MENU_ITEM(sdfolder, MSG_CARD_MENU, card);
^~~~~~~~~~~~~
Marlin\src\lcd\menu\menu.h:316:88: note: in definition of macro '_MENU_ITEM_VARIANT_P'
draw_menu_item ## VARIANT ## _ ## TYPE(encoderLine == _thisItemNr, _lcdLineNr, PLABEL, ## __VA_ARGS__); \
^~~~~~
Marlin\src\lcd\menu\menu.h:346:103: note: in expansion of macro 'PSTR'
#define MENU_ITEM(TYPE, LABEL, ...) _MENU_ITEM_VARIANT_P(TYPE, , false, PSTR(LABEL), ## __VA_ARGS__)
^~~~
Marlin\src\lcd\menu\menu_sdcard.cpp:128:9: note: in expansion of macro 'MENU_ITEM'
MENU_ITEM(sdfolder, MSG_CARD_MENU, card);
^~~~~~~~~
Marlin\src\lcd\menu\menu_sdcard.cpp:130:27: error: 'MSG_CARD_MENU' was not declared in this scope
MENU_ITEM(sdfile, MSG_CARD_MENU, card);
^~~~~~~~~~~~~
Marlin\src\lcd\menu\menu.h:316:88: note: in definition of macro '_MENU_ITEM_VARIANT_P'
draw_menu_item ## VARIANT ## _ ## TYPE(encoderLine == _thisItemNr, _lcdLineNr, PLABEL, ## __VA_ARGS__); \
^~~~~~
Marlin\src\lcd\menu\menu.h:346:103: note: in expansion of macro 'PSTR'
#define MENU_ITEM(TYPE, LABEL, ...) _MENU_ITEM_VARIANT_P(TYPE, , false, PSTR(LABEL), ## __VA_ARGS__)
^~~~
Marlin\src\lcd\menu\menu_sdcard.cpp:130:9: note: in expansion of macro 'MENU_ITEM'
MENU_ITEM(sdfile, MSG_CARD_MENU, card);
^~~~~~~~~
Marlin\src\lcd\menu\menu_sdcard.cpp:130:27: note: suggested alternative: 'MSG_INFO_MENU'
MENU_ITEM(sdfile, MSG_CARD_MENU, card);
^~~~~~~~~~~~~
Marlin\src\lcd\menu\menu.h:316:88: note: in definition of macro '_MENU_ITEM_VARIANT_P'
draw_menu_item ## VARIANT ## _ ## TYPE(encoderLine == _thisItemNr, _lcdLineNr, PLABEL, ## __VA_ARGS__); \
^~~~~~
Marlin\src\lcd\menu\menu.h:346:103: note: in expansion of macro 'PSTR'
#define MENU_ITEM(TYPE, LABEL, ...) _MENU_ITEM_VARIANT_P(TYPE, , false, PSTR(LABEL), ## __VA_ARGS__)
^~~~
Marlin\src\lcd\menu\menu_sdcard.cpp:130:9: note: in expansion of macro 'MENU_ITEM'
MENU_ITEM(sdfile, MSG_CARD_MENU, card);
^~~~~~~~~
*** [.pio\build\LPC1768\src\src\lcd\menu\menu_sdcard.cpp.o] Error 1











-----------------------------------------------------------------------------------------------------
PROBLEMS 4
{
"resource": "/c:/3dprinter/BIGTREETECH-SKR-V1.3-master/firmware/Marlin-bugfix-2.0.x/Marlin/src/lcd/menu/menu_sdcard.cpp",
"owner": "cpp",
"severity": 8,
"message": "'MSG_CARD_MENU' was not declared in this scope",
"startLineNumber": 130,
"startColumn": 27,
"endLineNumber": 130,
"endColumn": 27
}


----------------------------------------------------------------------------------------------------------
Here is part of the file menu_sdcard.ccp


if (ui.should_draw()) for (uint16_t i = 0; i < fileCnt; i++) {
if (_menuLineNr == _thisItemNr) {
const uint16_t nr =
#if ENABLED(SDCARD_RATHERRECENTFIRST) && DISABLED(SDCARD_SORT_ALPHA)
fileCnt - 1 -
#endif
i;

card.getfilename_sorted(nr);

if (card.flag.filenameIsDir)
MENU_ITEM(sdfolder, MSG_CARD_MENU, card);
else
MENU_ITEM(sdfile, MSG_CARD_MENU, card);
}
else {
MENU_ITEM_DUMMY();
}
}

Prusa clone (anet A8 electronics) marlin issue

$
0
0
Okay,

While I have used this site a lot for trouble shooting, this is my first post. I thank you in advance for your help, I hope I am posting in the correct place. Long story short, I used my anet a8's electronics to build as close to a prusa clone as I can (likely others could get closer, but not me at this point) without spending too much extra $$. Through searching internet for help, I flashed both the bootloader and firmware to marlin. I am getting very good prints (I am completely happy with the print quality), however, I am wanting a couple of options that I am struggling with. Currently I can only change filament through 'printing' gcode that unloads or loads filament - works great, but I want to do it through the lcd like prusa (I do have access to prusas, so I know specifically the shortcomings in my machine that I want from prusa)...also, I cannot pause a print and change filament (because I am already 'in a print'). FYI - I have a geared extruder (exact copy from Prusa i3), so it needs to be done via the machine.

So problem #1 - I want to unload/load filament through lcd (prior to printing)
#2 - similar in a way - I want to be able to pause print and change filament (I think this includes parking the nozzle above my print, which I haven't figured out...currently when I pause it just sits on where it stops)

From what I can gather, I need to make changes for #2 in the adv.h file (this is my first project with marlin, and coding in general...so I now know just enough to get myself in trouble) under advance pause. As soon as I enable (uncomment) advance pause features it will not compile. The error codes have to do with parking nozzle...I tried commenting other things within advance pause features, but it just doesn't compile. If I keep advance pause commented, it compiles and loads - and is how I am currently using he printer.

I haven't tried much to figure out problem #1 (problem 2 was a higher priority, so I am simply starting there) - however, I am not sure how to do this either.

Overall, I am at 94% of the memory available. If I need to free up memory, I am happy to 'take things away' that I don't plan on utilizing. My must list of extras:

- live z adjust
- load/unload from lcd and mid-print
- bed leveling

Not sure if there are other things, but lets start there.

Not exactly sure how to share the marlin code...attached are the .ino file as well as text files of my config and config.adv.

Thank you once again for any help, and my apologies for any noob errors I am making. I will be able to access your responses, but not try anything out for another week. Thank you once again.

REPRAP DISCOUNT FULL GRAPHIC SMART CONTROLLER DISPLAY ERROR

$
0
0
Hi, I recently purchased a new LCD screen, my problem arises with this has a whole line, and quite thick, pixels which do not show information, if anyone knows the solution would appreciate it.

Viewing all 12089 articles
Browse latest View live


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