fysetc / marlin-2.0.x-fysetc Goto Github PK
View Code? Open in Web Editor NEWDevelopment base on Marlin Firmware https://github.com/MarlinFirmware/Marlin/tree/bugfix-2.0.x
License: GNU General Public License v3.0
Development base on Marlin Firmware https://github.com/MarlinFirmware/Marlin/tree/bugfix-2.0.x
License: GNU General Public License v3.0
F6 Board DGUS Serial Port is set to 3 instead of 2 in configuration_adv.h (https://github.com/FYSETC/Marlin-2.0.x-FYSETC/tree/F6/2.0.x) cousing the display to become unresponsive.
Expected behavior: The Display is responsive
Actual behavior: The display get stuck on FYSETC logo.
Change DGUS Serial Port configured in Configuration_adv.h
from #define DGUS_SERIAL_PORT 3
to #define DGUS_SERIAL_PORT 2
Mechanical "Filament runout sensor" does not work on either SD print & octoprint print. M119
shows "open" if filament presset and "triggered" if not, but does not launch FILAMENT_RUNOUT_SCRIPT
during printing. M600
works normally, if it sends by Pronterface.
M412
shows Filament runout ON.
Tried to change "FIL_RUNOUT_INVERTING" to false, same result...
Expected behavior:
Changing state of filament sensor from "open to "triggered" launch FILAMENT_RUNOUT_SCRIPT
.
Actual behavior:
State of filament sensor is changing, but does not launch FILAMENT_RUNOUT_SCRIPT
.
My Configuration.zip (Configuration.h & Configuration_adv.h
Programs required for firmware upload in Windows
Git CMD
https://git-scm.com/downloads
Download for Windows
stm32flash
https://sourceforge.net/projects/stm32flash/
Download stm32flash-0.5-win64.zip
How to upload firmware
3d Turn off the printer, connect the computer to the board with a USB cable, and check the COM port.
open git cmd
cd Downloads \ stm32flash-0.5-win64 <-stm32flash path
Read information
stm32flash -b460800 COM3 <-change after checking the port
Write firmware
stm32flash -R -b460800 -w firmware.hex -v -i rts, -dtr, dtr COM3 <-change after checking the port
i try to use the serial pinheader P4 for use with ESP unit (with serial breakout). i change the P2 for use with 5V (3.3 default)
and set the SERIAL_PORT_2
to 2
but seems not send/received any command for that port.
i have tested the unit with this sketch (platformio)
// Práctica encender y apagar un LED a través de botón pulsador
#include <Arduino.h>
#define LED PB0
#define BOTON PA3
int val;
void setup(){
pinMode(LED, OUTPUT);
pinMode(BOTON, INPUT);
}
void loop(){
val=digitalRead(BOTON);
if (val==HIGH){
digitalWrite(LED, HIGH);
}
else {
digitalWrite(LED, LOW);
}
delay(100);
}
and scan one by one all pins (P4 pin header, TE, TB, Xmin, Ymin, Zmin, fill det and ac det.
and the unit worked ok, so seems is not a hardware problem
the ESP unit and breakout unit is:
https://www.keyestudio.com/products/keyestudio-esp-01s-wifi-to-serial-shield-module-for-arduino-esp8266-wifi
https://www.keyestudio.com/products/2pcs-esp8266-esp-01-serial-wireless-wifi-transceiver-module-with-keyestudio-packing-box-for-arduino
and my marlin config is (see bottom)
SERIAL_PORT_2
to 2M117 Hello
Expected behavior: [What you expect to happen]
comunication between ESP and the board thougth P4 pinheader
Actual behavior: [What actually happens]
nothig happens, no comunication
Configuration.h
and Configuration_adv.h
files.Hi,
Any plan to update to Marlin 2.1.x ?
Trying to update the firmware of my cheetah 1.2b board (ender 3) to Marlin 2.1.x (there is a configuration for this board in the official repo) but without success so far (blue screen)
Does anyone successfuly update or have any hints ?
Thank you,
I cannot build the firmware.
Actual behavior: There is error
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str':
File "C:\users\melld\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 134:
env.SConscript(item, exports="env")
File "C:\Users\melld\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 541:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\melld\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 250:
exec _file_ in call_stack[-1].globals
File "C:\m\Marlin-2.0.x-FYSETC\buildroot\share\PlatformIO\scripts\fysetc_STM32F1.py", line 32:
UPLOADER=platform.get_package_dir("tool-stm32duino") + '/stm32flash/stm32flash',
AIO II build break
Compiling .pioenvs\fysetc_STM32F1\src\src\sd\usb_flashdrive\Sd2Card_FlashDrive.cpp.o
Marlin\src\module\stepper.cpp: In static member function 'static void Stepper::digipot_current(uint8_t, int16_t)':
Marlin\src\module\stepper.cpp:2505:124: error: call of overloaded 'analogWrite(<unnamed enum>, long int)' is ambiguous
#define _WRITE_CURRENT_PWM(P) analogWrite(MOTOR_CURRENT_PWM_## P ##_PIN, 255L * current / (MOTOR_CURRENT_PWM_RANGE))
^
Marlin\src\module\stepper.cpp:2515:15: note: in expansion of macro '_WRITE_CURRENT_PWM'
_WRITE_CURRENT_PWM(XY);
^~~~~~~~~~~~~~~~~~
In file included from C:\Users\gouache\.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish.h:57:0,
from C:\Users\gouache\.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/Arduino.h:30,
from Marlin\src\module\../inc/../HAL/HAL_STM32F1/../shared/Marduino.h:33,
from Marlin\src\module\../inc/../HAL/HAL_STM32F1/HAL.h:40,
from Marlin\src\module\../inc/MarlinConfig.h:30,
from Marlin\src\module\stepper.h:44,
from Marlin\src\module\stepper.cpp:80:
C:\Users\gouache\.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/pwm.h:57:6: note: candidate: void analogWrite(uint8, int)
void analogWrite(uint8 pin, int duty_cycle8);
^~~~~~~~~~~
In file included from Marlin\src\module\../inc/MarlinConfig.h:30:0,
from Marlin\src\module\stepper.h:44,
from Marlin\src\module\stepper.cpp:80:
Marlin\src\module\../inc/../HAL/HAL_STM32F1/HAL.h:258:6: note: candidate: void analogWrite(pin_t, int)
void analogWrite(pin_t pin, int pwm_val8); // PWM only! mul by 257 in maple!?
^~~~~~~~~~~
Marlin\src\module\stepper.cpp:2505:124: error: call of overloaded 'analogWrite(<unnamed enum>, long int)' is ambiguous
#define _WRITE_CURRENT_PWM(P) analogWrite(MOTOR_CURRENT_PWM_## P ##_PIN, 255L * current / (MOTOR_CURRENT_PWM_RANGE))
^
Marlin\src\module\stepper.cpp:2520:15: note: in expansion of macro '_WRITE_CURRENT_PWM'
_WRITE_CURRENT_PWM(Z);
^~~~~~~~~~~~~~~~~~
In file included from C:\Users\gouache\.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish.h:57:0,
from C:\Users\gouache\.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/Arduino.h:30,
from Marlin\src\module\../inc/../HAL/HAL_STM32F1/../shared/Marduino.h:33,
from Marlin\src\module\../inc/../HAL/HAL_STM32F1/HAL.h:40,
from Marlin\src\module\../inc/MarlinConfig.h:30,
from Marlin\src\module\stepper.h:44,
from Marlin\src\module\stepper.cpp:80:
C:\Users\gouache\.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/pwm.h:57:6: note: candidate: void analogWrite(uint8, int)
void analogWrite(uint8 pin, int duty_cycle8);
^~~~~~~~~~~
In file included from Marlin\src\module\../inc/MarlinConfig.h:30:0,
from Marlin\src\module\stepper.h:44,
from Marlin\src\module\stepper.cpp:80:
Marlin\src\module\../inc/../HAL/HAL_STM32F1/HAL.h:258:6: note: candidate: void analogWrite(pin_t, int)
void analogWrite(pin_t pin, int pwm_val8); // PWM only! mul by 257 in maple!?
^~~~~~~~~~~
*** [.pioenvs\fysetc_STM32F1\src\src\module\stepper.cpp.o] Error 1
[ERROR] Took 67.91 seconds
Expected behavior: no error
Actual behavior: build break
TB / TE not working
Expected behavior: get normal temperature
Actual behavior: abnormal temperature
Configuration.h
and Configuration_adv.h
files.I built a Hypercube Evolution which is using CoreXY Kinematics. Some time ago I installed the Fysetc S6 board running Fysetc TMC2130 V1.2 SPI Mode drivers. HW AND FW was configured as desriped in the Wiki. Sensorless Homing is activated, but does not work!! I tried deactivating #define COREXY
to see if it's a problem with the CoreXY but it is not!
I played around with the bumping sensitivity. Only once it worked with X 13. But then it kept on crashing into the frame!
Used FW: Marlin-2.0.x-FYSETC-S6-2.0.x and Stock Marlin-2.0.x
I've installed Cheetah on Ender 3 and everything is fine but the layer fan don't turn on automatically. Even if I configure Slicer for turn on fan on layer 2, I have to do a simple CLICK on the rotary of LCD for turn on the layer fan.. How can we solve it?
Thanks
Expected behavior: [What you expect to happen]
Actual behavior: [What actually happens]
Configuration.h
and Configuration_adv.h
files.Can the Cheetah 32bit Board be used in Ender-2?
Compilation was succesfull but I have 1 yellow remark:
C:\Users\wes.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\STM32ADC\src\utility\util_adc.c:10:30: warning: 'adc_result' initialized and declared 'extern'
extern volatile unsigned int adc_result = 0;
Can I ignore it?
The LCD panel Blinks diferent colors just before the print and then you can't go in to the menu during the print - screen freezes.
if #DEFINE SPEAKER
is uncommented in configuration.h, the compilation will fail. This is because STEP_TIMER and TIMER_TONE use the same timer (6).
#DEFINE SPEAKER
in configuration.hExpected behavior: [What you expect to happen]
Build succeeds, able to hear tones on speaker
Actual behavior: [What actually happens]
Build fails
Suggested resolution:
In pins_FYSETC_S6.h
, add a line to specify a different timer (8 for example) for the STEP_TIMER:
#define STEP_TIMER 8
Error: Invalid value: invalid choice: 1. (choose from off, chain, deep, chain+, deep+) for option lib_ldf_mode
in section [env:fysetc_STM32F1]
Just try to compile the code
Expected behavior:
Compiles
Actual behavior: [What actually happens]
Gives error in line 299
I think the line "lib_ldf_mode" should be comented or set to "chain" and not to 1
FYI, I've submitted a PR upstream
MarlinFirmware/Marlin#14407
Good news it compiles, but I can't test it yet.
Would be nice if you could give it a try !
the board has no 5v jumper on the usb, so when the printer is shout off will continue to gain power from any usab device connected, in my cvase raspberry pi , making also the fan spinning, this has a big risk factor for the usb ampere limits.
planning to use the usb second pinout to avoid problems.
I'm flashing Marlin firmware on my spider v1.1, and the device is no longer recognised by the computer (windows 10) after firmware flashing with STM32CubeProgrammer. After loading, I'm taking the jumper off to ensure I'm not still in DFU mode and resetting the device.
Please find attached Configuration.h
and Configuration_adv.h
files.
Configuration_adv.h.txt
Configuration.h.txt
I'm compiling using Platformio as recommended and following the instructions. I've tried both FYSETC_S6
and FYSETC_S6_8000
adjusting bootloader address to 0x08010000
and 0x08008000
depending on the defualt_envs
as per the instructions.
Download last Marlin version from Fysetc, enabled ExtUI and set to FT81050. Fysetc S6 board.
Expected behavior: Works properly
Actual behavior: TouchScreen stops responding after 7 seconds
Configuration.h:
//
// Touch UI for FTDI EVE (FT800/FT810) displays
// See Configuration_adv.h for all configuration options.
//
#define TOUCH_UI_FTDI_EVE
Configuration_adv.h
#if ENABLED(TOUCH_UI_FTDI_EVE)
// Display board used
//#define LCD_FTDI_VM800B35A // FTDI 3.5" with FT800 (320x240)
//#define LCD_4DSYSTEMS_4DLCD_FT843 // 4D Systems 4.3" (480x272)
//#define LCD_HAOYU_FT800CB // Haoyu with 4.3" or 5" (480x272)
//#define LCD_HAOYU_FT810CB // Haoyu with 5" (800x480)
//#define LCD_ALEPHOBJECTS_CLCD_UI // Aleph Objects Color LCD UI
#define LCD_FYSETC_TFT81050 // FYSETC with 5" (800x480)
// Correct the resolution if not using the stock TFT panel.
//#define TOUCH_UI_320x240
//#define TOUCH_UI_480x272
//#define TOUCH_UI_800x480
// Mappings for boards with a standard RepRapDiscount Display connector
//#define AO_EXP1_PINMAP // AlephObjects CLCD UI EXP1 mapping
//#define AO_EXP2_PINMAP // AlephObjects CLCD UI EXP2 mapping
//#define CR10_TFT_PINMAP // Rudolph Riedel's CR10 pin mapping
#define S6_TFT_PINMAP // FYSETC S6 pin mapping
When printer switch on, the touchscreen works properly after 7 seconds passed, then the screen goes to information page and doesn´t respond to touches.
Unable to build the firmware by following the documentation.
Linux X220 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Then, edit the platformio.ini and switch the default build to STM32F103RC_fysetc.
5.
Hit build again and have this nice error :
Compiling .pio/build/STM32F103RC_fysetc/src/src/HAL/STM32F1/Servo.cpp.o
In file included from Marlin/src/HAL/STM32F1/../../inc/../HAL/HAL.h:26:0,
from Marlin/src/HAL/STM32F1/../../inc/MarlinConfig.h:30,
from Marlin/src/HAL/STM32F1/HAL.cpp:30:
Marlin/src/HAL/STM32F1/../../inc/../HAL/./STM32F1/HAL.h:82:4: error: #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration."
#error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration."
^~~~~
In file included from Marlin/src/HAL/STM32F1/../../inc/../pins/pins.h:71:0,
from Marlin/src/HAL/STM32F1/../../inc/MarlinConfig.h:32,
from Marlin/src/HAL/STM32F1/HAL.cpp:30:
Marlin/src/HAL/STM32F1/../../inc/../pins/ramps/pins_RAMPS.h:51:4: error: #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
#error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
^~~~~
Marlin/src/HAL/STM32F1/../../inc/../pins/ramps/pins_RAMPS.h:56:6: error: #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
^~~~~
In file included from Marlin/src/HAL/STM32F1/../../inc/../HAL/HAL.h:26:0,
from Marlin/src/HAL/STM32F1/../../inc/MarlinConfig.h:30,
from Marlin/src/HAL/STM32F1/Servo.cpp:26:
Marlin/src/HAL/STM32F1/../../inc/../HAL/./STM32F1/HAL.h:82:4: error: #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration."
#error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration."
^~~~~
In file included from Marlin/src/HAL/STM32F1/../../inc/../pins/pins.h:71:0,
from Marlin/src/HAL/STM32F1/../../inc/MarlinConfig.h:32,
from Marlin/src/HAL/STM32F1/Servo.cpp:26:
Marlin/src/HAL/STM32F1/../../inc/../pins/ramps/pins_RAMPS.h:51:4: error: #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
#error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
^~~~~
Marlin/src/HAL/STM32F1/../../inc/../pins/ramps/pins_RAMPS.h:56:6: error: #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
^~~~~
In file included from Marlin/src/HAL/STM32F1/../../inc/../HAL/HAL.h:26:0,
from Marlin/src/HAL/STM32F1/../../inc/MarlinConfig.h:30,
from Marlin/src/HAL/STM32F1/HAL_SPI.cpp:35:
Marlin/src/HAL/STM32F1/../../inc/../HAL/./STM32F1/HAL.h:82:4: error: #error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration."
#error "SERIAL_PORT cannot be 0. (Port 0 does not exist.) Please update your configuration."
^~~~~
In file included from Marlin/src/HAL/STM32F1/../../inc/../pins/pins.h:71:0,
from Marlin/src/HAL/STM32F1/../../inc/MarlinConfig.h:32,
from Marlin/src/HAL/STM32F1/HAL_SPI.cpp:35:
Marlin/src/HAL/STM32F1/../../inc/../pins/ramps/pins_RAMPS.h:51:4: error: #error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
#error "Oops! Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
^~~~~
Marlin/src/HAL/STM32F1/../../inc/../pins/ramps/pins_RAMPS.h:56:6: error: #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
^~~~~
*** [.pio/build/STM32F103RC_fysetc/src/src/HAL/STM32F1/HAL.cpp.o] Error 1
*** [.pio/build/STM32F103RC_fysetc/src/src/HAL/STM32F1/Servo.cpp.o] Error 1
*** [.pio/build/STM32F103RC_fysetc/src/src/HAL/STM32F1/HAL_SPI.cpp.o] Error 1
Followed this link which is not helpfull : #10
Can you give me the right procedure to build this firmware ? Or give me the correctly configured hex file ?
Running build in PlatformIO fails
Expected behavior: Build is successful
Actual behavior: Build Fails
The Build is failing in buildroot/share/PlatformIO/scripts/fysetc_STM32F1.py If I comment out:
extra_scripts = buildroot/share/PlatformIO/scripts/fysetc_STM32F1.py
in platformio.ini, the build is successful.
It's almost as if the function is outputting the help documentation instead of running correctly.
Is it possible to upload firmware by copying bin file to sd card after firmware build?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.