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

Re: Configuring Marlin for mystery board

$
0
0
So I've dug through some docs on the original (Rep Rap) firmware, and this was autogenerated by PlatformIO:

"defines": [
                "PLATFORMIO=50101",
                "STM32F103xE",
                "STM32F1",
                "ENABLE_USB_SERIAL",
                "ARDUINO=10808",
                "ARDUINO_ARCH_STM32",
                "ARDUINO_ARCH_STM32F1",
                "ARDUINO_GENERIC_STM32F103R",
                "MCU_STM32F103RE",
                "__STM32F1__",
                "BOARD_generic_stm32f103r",
                "F_CPU=72000000L",
                "VECT_TAB_ADDR=0x8002000",
                "ERROR_LED_PORT=GPIOB",
                "ERROR_LED_PIN=1",
                "SERIAL_USB",
                "GENERIC_BOOTLOADER",
                ""
            ],

I changed the line you were talking about to read "env['CPPDEFINES'].append(("VECT_TAB_ADDR", "0x08002000"))" but still no dice. Does any info from this doc help narrow down the issue? Serial_Port is still set to -1

Also, the file "buildroot/share/PlatformIO/scripts/STM32F103RET6_creality.py" didn't exist for me, it was called "buildroot/share/PlatformIO/scripts/creality.py"

Re: VSCode compilation issues of marlin 2.x bug fix

$
0
0
@Dust: thank you! Indeed it seems I have extracted the 2.0.7.2 over the 2.0.x BF... and that crapped everything.
I've cleared the files in my build folder, redownloaded BF and config, compiled the default and the modded config correctly.
But this brings me back to the initial post; successfully compiling with the TFT_LVGL_UI...
When I compile with TFT_COLOR_UI enabled, firmware build is ok.
when I compile with TFT_LVGL_UI enabled, it fails with message that FILAMENT_RUNOUT_SENSOR / ADVANCED_PAUSE_FEATURE need a compatible LCD.
that's weird given same options are enabled... I can't say what the difference between lvgl_ui and color_ui is but it's definitely strange that if it needs capable LCD for COLOR_UI and compiles without errors then it should be error free with LVGL_UI...

any ideas?

FEEDRATE for IDEX tool change

$
0
0
Hi,
Is it possible to set the speed (FEEDRATE) for changing tools T0 / T1 in IDEX mode?

Marlin Bugfix(2.0.X) Duplicate Problem Don't Working

$
0
0
Hi
I have a problem Dublicate Mode.
Did you have Cura setting for duplicate Mode
Idex is working but dublicate dont work extruders.. first of all I sent G28 and M605 S2 X250 R0 after that heaters and fans are working together and extruders dont move together (I sent G1 F1000 X100 for example)

M218 T1 X620.00 Y0.00 Z0.000 here have to be M218 T1 X250.00 Y0.00 Z0.000
it was like this in the old version(1.1.9) but marlin bugfix(2.0.X) wrong ???????????? M605 S2 dont save new extruder hotends offset ??????????? Please help me???



X_BED_SIZE is 500x500
#define NOZZLE_TO_PROBE_OFFSET { -33, 20, -2.27 }
// The size of the print bed
#define X_BED_SIZE 500
#define Y_BED_SIZE 500

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





#define DUAL_X_CARRIAGE
#if ENABLED(DUAL_X_CARRIAGE)
#define X1_MIN_POS X_MIN_POS // Set to X_MIN_POS
#define X1_MAX_POS X_BED_SIZE // Set a maximum so the first X-carriage can't hit the parked second X-carriage
#define X2_MIN_POS 0 // Set a minimum to ensure the second X-carriage can't hit the parked first X-carriage
#define X2_MAX_POS 620 // Set this to the distance between toolheads when both heads are homed distance between nozzle tips 720mm
#define X2_HOME_DIR 1 // Set to 1. The second X-carriage always homes to the maximum endstop position
#define X2_HOME_POS X2_MAX_POS // Default X2 home position. Set to X2_MAX_POS.
// However: In this mode the HOTEND_OFFSET_X value for the second extruder provides a software
// override for X2_HOME_POS. This also allow recalibration of the distance between the two endstops
// without modifying the firmware (through the "M218 T1 X???" command).
// Remember: you should set the second extruder x-offset to 0 in your slicer.

// This is the default power-up mode which can be later using M605.
#define DEFAULT_DUAL_X_CARRIAGE_MODE DXC_FULL_CONTROL_MODE

// Default x offset in duplication mode (typically set to half print bed width)
#define DEFAULT_DUPLICATION_X_OFFSET 250

// Default action to execute following M605 mode change commands. Typically G28X to apply new mode.
// #define EVENT_GCODE_IDEX_AFTER_MODECHANGE "G28X"
#endif

Re: 4 Extruder on IDEX mode

$
0
0
Hi
I have a problem Dublicate Mode.
Did you have Cura setting for duplicate Mode
Idex is working but dublicate dont work extruders.. first of all I sent G28 and M605 S2 X250 R0 after that heaters and fans are working together and extruders dont move together (I sent G1 F1000 X100 for example)

M218 T1 X620.00 Y0.00 Z0.000 here have to be M218 T1 X250.00 Y0.00 Z0.000
it was like this in the old version(1.1.9) but marlin bugfix(2.0.X) wrong ???????????? M605 S2 dont save new extruder hotends offset ??????????? Please help me???



X_BED_SIZE is 500x500
#define NOZZLE_TO_PROBE_OFFSET { -33, 20, -2.27 }
// The size of the print bed
#define X_BED_SIZE 500
#define Y_BED_SIZE 500

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





#define DUAL_X_CARRIAGE
#if ENABLED(DUAL_X_CARRIAGE)
#define X1_MIN_POS X_MIN_POS // Set to X_MIN_POS
#define X1_MAX_POS X_BED_SIZE // Set a maximum so the first X-carriage can't hit the parked second X-carriage
#define X2_MIN_POS 0 // Set a minimum to ensure the second X-carriage can't hit the parked first X-carriage
#define X2_MAX_POS 620 // Set this to the distance between toolheads when both heads are homed distance between nozzle tips 720mm
#define X2_HOME_DIR 1 // Set to 1. The second X-carriage always homes to the maximum endstop position
#define X2_HOME_POS X2_MAX_POS // Default X2 home position. Set to X2_MAX_POS.
// However: In this mode the HOTEND_OFFSET_X value for the second extruder provides a software
// override for X2_HOME_POS. This also allow recalibration of the distance between the two endstops
// without modifying the firmware (through the "M218 T1 X???" command).
// Remember: you should set the second extruder x-offset to 0 in your slicer.

// This is the default power-up mode which can be later using M605.
#define DEFAULT_DUAL_X_CARRIAGE_MODE DXC_FULL_CONTROL_MODE

// Default x offset in duplication mode (typically set to half print bed width)
#define DEFAULT_DUPLICATION_X_OFFSET 250

// Default action to execute following M605 mode change commands. Typically G28X to apply new mode.
// #define EVENT_GCODE_IDEX_AFTER_MODECHANGE "G28X"
#endif

Re: X and Y Homing doesn't move all the way to the switch

$
0
0
The problem was the steps/per mm. It seems once the eeprom (flash or whatever) on the skr is initialized, it doesn't uses the value you set in marlin, it use what is stored in eeprom.

I changed the steps per mm to the correct value directly in the menu.

Now it works.

Thanks for your help!!

Re: 4 Extruder on IDEX mode

$
0
0
Hello,
try this my test G-code for all IDEX modes.

Firmware 2.2.x compiling error

$
0
0
Hi all,

I am trying to compile the Marlin firmware 2.2.x version.

I know about the Arduino IDE linking error related to long filenames, so I am using the Arduino CLI "Nightly" version.

Also running the Cmd.exe as administrator.

I am having the following compiling error: Anybody help help?

c:\users\moutinho\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\bin\../lib/gcc/avr/7.3.0/../../../../avr/bin/ar.exe: c:\temp\arduino-sketch-03B319767649EEEEAC127D5DB281EFB3\sketch\src\HAL\shared\backtrace\objs.a: Permission denied
Using library LiquidCrystal at version 1.0.7 in folder: C:\Program Files (x86)\Arduino\libraries\LiquidCrystal

Error during build: exit status 1

Best
Andre

Strange extruder motions

$
0
0
Hello all,,

I have changed the extruder of my Tevo Tarantula and had to change the direction of the stepper motor in the the firmware. Just changed the CHANGE_E0_DIRECTION define in a firmware 1.1.x source code I had already used with sucess.

Now a very strange thing is happening when I print a gcode model created by Simplify3D.

The filament advances almost 10 cm outwards when printing starts.

I have looked at the gcode and the problem happens just the line after the command G92 E0 that resets the reference of E0.

G92 E0
---> G1 X82.462 Y23.760 E0.0074 F1800 <----- Strange E0 motion happens here


The gcode generated by the repetier does not have this problem when printing (it does not use the command G92 E0).

It seems that this command generates a negative reference of about -10 cm for the filament.

I have calibrated the Extrusion Esteps/mm parameter.

Any idea to solve this?

Thanks
Andre

Re: Configuring Marlin for mystery board

$
0
0
I figured it out. In addition to changing to .py file, I also needed to change the .ld file for Creality to set the memory address to 0x8002000(tu)

Re: Firmware 2.2.x compiling error

$
0
0
Please, do yourself a favor and stop trying to use Arduino. Switch to VSCode + PlatformIO: Install Marlin with PlatformIO - it is much more reliable, faster to compile, and produces better compiled code.

EEPROM question-Marlin

$
0
0
Hello Folks.

I realize this is a newbie question.
I thought I understood at first but I'm now getting confused about how EEPROM really works on a 32bit board (MKS Robin Nano - STM32F106...)
Could someone explain the exact function and the difference between these 4 commands in Marlin 2.X?

1) Store Settings
2) Load Settings
3) Restore Defaults
4) Initialize EEPROM

Thanks a lot for shedding some light on this for me.
Cheers!

Attempting to open menu freezes LCD

$
0
0
Hello all,

I've been trying to port Marlin to a STM32F106RET6 board I have for a project. I've been able to compile and upload firmware to the board, and at this point I seem to have everything working minus the LCD menu system. The LCD (Mini12864 LCD) works fine, it shows the boot screen then goes to the main screen with extruder temps, etc. The issue is when I try to use the encoder. As soon as I press the encoder button, the screen freezes and the entire controller locks up, I have to press the hardware reset button. My only clue to the LCD freezing is the XYZ coordinates that are normally switching between displaying a "0" or a "?" simply freeze. In addition, the beeper does not seem to make noise no matter what I do. The SD card seems to be functioning fine, the board recognizes when the card is inserted and removed. I've also enabled the dummy thermistor just for testing purposes, just so I don't get any under/over temp errors. Any ideas as to what could be causing my issues?

Re: Attempting to open menu freezes LCD

$
0
0
Strange, seem to have solved my own problem. Commenting out the #define SPEAKER line both enabled the speaker and fixed the menu

Re: EEPROM question-Marlin

$
0
0
There are three locations where configuration information is stored in Marlin. First, there is the firmware itself which is configured using Configuration.h and Configuration_adv.h, next is the EEPROM, and finally is RAM when Marlin is running.

When Marlin boots up, it will copy the configuration from EEPROM to RAM. When you use any of the gcodes that change configuration settings, these will apply only to the copy of the configuration that is in RAM.
To save these for future boots of Marlin, you need to explicitly copy the RAM configuration to EEPROM. That is done with the "Store Settings" option (or the M500 gcode).
If you make a change in RAM that has not yet been saved to EEPROM, and you want to revert back to the previous setting, you can do that with "Load Settings" (or the M501 gcode) which will copy the values from EEPROM to RAM.

If you change Configuration.h and/or Configuration_adv.h, in most cases the new values in the firmware will not be automatically copied into EEPROM, so they will not take effect immediately. That's what the "Restore Defaults" (M502) and "Initialize EEPROM" options are for. "Restore Defaults" will overwrite the values in RAM with the values stored in the firmware. A "Store Settings" will then store these in EEPROM for future boots. "Initialize EEPROM" is the same as doing "Restore Defaults" followed by "Store Settings" so it's simply an easier way to do both at once.

Re: EEPROM question-Marlin

$
0
0
Now I get it !

Thank you so much.

This is the best explanation I have seen on this. Clear and to the point. Really appreciated.

Thanks again for taking the time and sharing the knowledge!

Cheers!

Reset to factory settings

$
0
0
Hello I didn't feel like a newby but I just cant get My Geeetech A20M to print. I flashed the firmware with a couple different versions from GitHub. I added a 3d touch to help me with bed leveling and I am very frustrated.
The 3d touch is the only reason I jacked with it. When I received the printer it printed the cat sample perfect. I have had aDa Vinci Aio, Geeetech build your own Prusa pro and a Monoprice mini. I dont mind fiddling with it but I cant seem to figure out how to flash the firmware correctly. I have watched a ton of YT videos followed the directions from Geeetech instructions and no go. I just want to reset to factory settings and manually level the bed and PRINT something.

Thanks for listing to my rant. Any suggestions will help.

PS I did search for a listing like my own I didn't find any so sorry if this is the millionth time someone else has asked same ?

Re: Reset to factory settings

Re: Reset to factory settings

$
0
0
Thanks for the links. I did a cold pull but it didn't help. There was some clogging in the second B tube. I guess I have been out of this for too long. I can't get the 3d touch to work. I unplug it and still can't get it right. When I follow the video from Geeetech for the firmware change to add the 3d touch I load the firmware successfully. Then I understand up to the point that they say set Z back to zero for the second time and save settings. I check visually to see if the hot end is .3mm from bed, but it's not it's higher. But it wont let me adjust closer. I can raise the nozzle but not lower it with the offset.

I guess there are no dumb questions as they say. Thanks for the patients a nooby requires.

Dave

Re: 4 Extruder on IDEX mode

$
0
0
Yes I have 2 extruder on ıdex but I solved my problem with version 1.1.9
Viewing all 12090 articles
Browse latest View live


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