mirror of
https://github.com/MarlinFirmware/Configurations.git
synced 2025-07-24 15:14:02 -06:00
Update Anet ET4 configs (#368)
This commit is contained in:
parent
b4a62a7d7d
commit
5a25fd57e9
8 changed files with 377 additions and 196 deletions
|
@ -877,7 +877,7 @@
|
|||
* A Fix-Mounted Probe either doesn't deploy or needs manual deployment.
|
||||
* (e.g., an inductive probe or a nozzle-based probe-switch.)
|
||||
*/
|
||||
//#define FIX_MOUNTED_PROBE
|
||||
#define FIX_MOUNTED_PROBE
|
||||
|
||||
/**
|
||||
* Use the nozzle as the probe, with the hotend
|
||||
|
@ -889,7 +889,7 @@
|
|||
* Use the nozzle as the probe, as with a conductive
|
||||
* nozzle system or a piezo-electric smart effector.
|
||||
*/
|
||||
#define NOZZLE_AS_PROBE
|
||||
//#define NOZZLE_AS_PROBE
|
||||
|
||||
/**
|
||||
* Z Servo Probe, such as an endstop switch on a rotating arm.
|
||||
|
@ -997,7 +997,7 @@
|
|||
* | [-] |
|
||||
* O-- FRONT --+
|
||||
*/
|
||||
#define NOZZLE_TO_PROBE_OFFSET { 0, 0, 0 }
|
||||
#define NOZZLE_TO_PROBE_OFFSET { -25, -8.5, 0 }
|
||||
|
||||
// Most probes should stay away from the edges of the bed, but
|
||||
// with NOZZLE_AS_PROBE this can be negative for a wider probing area.
|
||||
|
@ -2379,6 +2379,16 @@
|
|||
//
|
||||
//#define LONGER_LK_TFT28
|
||||
|
||||
//
|
||||
// 320x240, 2.8", FSMC Stock Display from ET4
|
||||
//
|
||||
#define ANET_ET4_TFT28
|
||||
|
||||
//
|
||||
// 480x320, 3.5", FSMC Stock Display from ET5
|
||||
//
|
||||
//#define ANET_ET5_TFT35
|
||||
|
||||
//
|
||||
// Generic TFT with detailed options
|
||||
//
|
||||
|
@ -2408,9 +2418,40 @@
|
|||
* root of your SD card, together with the compiled firmware.
|
||||
*/
|
||||
//#define TFT_CLASSIC_UI
|
||||
//#define TFT_COLOR_UI
|
||||
#define TFT_COLOR_UI
|
||||
//#define TFT_LVGL_UI
|
||||
|
||||
/* ET4/ET5 Black Theme */
|
||||
|
||||
#define COLOR_RED2 0xF003 // #F70019
|
||||
#define COLOR_ORANGE2 0xFDE0 // #FFBE00
|
||||
#define COLOR_LIME2 0xA7E0 // #A5FF00
|
||||
#define COLOR_BLACK2 0x2124 // #212421
|
||||
|
||||
#define COLOR_BACKGROUND COLOR_BLACK2
|
||||
#define COLOR_SELECTION_BG COLOR_ORANGE2
|
||||
#define COLOR_COLD COLOR_WHITE
|
||||
#define COLOR_HOTEND COLOR_RED2
|
||||
#define COLOR_HEATED_BED COLOR_RED2
|
||||
#define COLOR_CHAMBER COLOR_WHITE
|
||||
#define COLOR_FAN COLOR_WHITE
|
||||
#define COLOR_AXIS_FRAME COLOR_WHITE
|
||||
#define COLOR_AXIS_HOMED COLOR_ORANGE2
|
||||
#define COLOR_AXIS_NOT_HOMED COLOR_ORANGE2
|
||||
#define COLOR_RATE_100 COLOR_LIME2
|
||||
#define COLOR_RATE_ALTERED COLOR_ORANGE2
|
||||
#define COLOR_PRINT_TIME COLOR_WHITE
|
||||
#define COLOR_PROGRESS_BAR COLOR_ORANGE2
|
||||
#define COLOR_STATUS_MESSAGE COLOR_ORANGE2
|
||||
#define COLOR_SD_ENABLED COLOR_CONTROL_ENABLED
|
||||
#define COLOR_SD_DISABLED COLOR_CONTROL_DISABLED
|
||||
#define COLOR_MENU_TEXT COLOR_WHITE
|
||||
#define COLOR_MENU_VALUE_FONT COLOR_ORANGE2
|
||||
#define COLOR_SLIDER COLOR_ORANGE2
|
||||
#define COLOR_INCREASE COLOR_WHITE
|
||||
#define COLOR_DECREASE COLOR_WHITE
|
||||
#define COLOR_TICK COLOR_VIVID_GREEN
|
||||
|
||||
/**
|
||||
* TFT Rotation. Set to one of the following values:
|
||||
*
|
||||
|
@ -2438,13 +2479,13 @@
|
|||
#define BUTTON_DELAY_EDIT 50 // (ms) Button repeat delay for edit screens
|
||||
#define BUTTON_DELAY_MENU 250 // (ms) Button repeat delay for menus
|
||||
|
||||
#define TOUCH_SCREEN_CALIBRATION
|
||||
//#define TOUCH_SCREEN_CALIBRATION
|
||||
|
||||
#define TOUCH_CALIBRATION_X -11838
|
||||
#define TOUCH_CALIBRATION_Y 8776
|
||||
#define TOUCH_OFFSET_X 333
|
||||
#define TOUCH_OFFSET_Y -17
|
||||
#define TOUCH_ORIENTATION TOUCH_PORTRAIT
|
||||
//#define TOUCH_CALIBRATION_X -11838
|
||||
//#define TOUCH_CALIBRATION_Y 8776
|
||||
//#define TOUCH_OFFSET_X 333
|
||||
//#define TOUCH_OFFSET_Y -17
|
||||
//#define TOUCH_ORIENTATION TOUCH_PORTRAIT
|
||||
|
||||
#if ENABLED(TFT_COLOR_UI)
|
||||
//#define SINGLE_TOUCH_NAVIGATION
|
||||
|
|
46
config/examples/Anet/ET4+/README.md
Normal file
46
config/examples/Anet/ET4+/README.md
Normal file
|
@ -0,0 +1,46 @@
|
|||
# Marlin for Anet ET4/ET5 Series
|
||||
|
||||
A debugging/programming probe (_e.g._, ST-Link, J-Link, or Black Magic Probe) is required to flash the the [OpenBLT bootloader for Anet ET4/ET5 series printers](https://github.com/davidtgbe/openblt/releases) due to incompatibility with the stock bootloader. Once OpenBLT is flashed, Marlin can be updated by SD card just like the original firmware.
|
||||
|
||||
## Flashing OpenBLT Bootloader with an ST-Link V2
|
||||
|
||||
1. Using three female to female Dupont jumper cables, connect `GND`, `SWDIO`, and `SWCLK` pins from the ST-Link to the Serial Wire Debug (SWD) header on the motherboard. Pay close attention that the cables on SWD header side match the order below using the `U` and `G` letters printed on the motherboard as a reference:
|
||||
|
||||
```
|
||||
SWD Header on ET Series motherboard
|
||||
___
|
||||
U | o | (not connected)
|
||||
|---|
|
||||
| o | SWDIO
|
||||
|---|
|
||||
| o | SWCLCK
|
||||
|---|
|
||||
G | o | GND
|
||||
---
|
||||
```
|
||||
Photo reference:
|
||||
|
||||
<img src="https://i.imgur.com/IBqE0i0.jpeg" width="50%">
|
||||
|
||||
_`GND` is connected to `GND` (black wire), `SWDIO` to `SWDIO` (yellow wire), and `SWCLK` to `SWCLK` (green wire). Your ST-Link pinout may differ from the one pictured, so double-check pinout._
|
||||
2. Plug in the ST-Link to your computer's USB port & power on your printer.
|
||||
3. Download & install [STM32 ST-Link Utility](https://www.st.com/en/development-tools/stsw-link004.html).
|
||||
4. Launch STM32 ST-Link Utility & click `Target` then `Connect`.
|
||||
5. Backup the original motherboard firmware or, at the very least, back up the bootloader. This will allow you to recover the full stock firmware by flashing the original bootloader to the `0x08000000` - `0x8010000` address range, and flashing any of the available Anet firmware binaries (_e.g._, `et4.bin`, `et5.bin`, etc.) to address `0x08010000`. _Note:_ You can restore your motherboard to stock by downloading printer-specific firmware from [Anet's Download section](https://www.anet3d.com/download/) and flashing the included hex (_e.g._, `et4p20191211V1.0.2.hex`, `et520200612V1.1.7.hex`, etc.) to address `0x08000000`.
|
||||
6. Download & extract [OpenBLT bootloader for Anet ET4/ET5 series printers](https://github.com/davidtgbe/openblt/releases).
|
||||
7. Click on `Target` then `Program...`
|
||||
8. Set the `Start Address` to `0x08000000`.
|
||||
9. Under `File Path`, click `Browse` and select `openblt_et4.bin` extracted in Step 6.
|
||||
10. Click `Start` to initiate the flashing process.
|
||||
11. OpenBLT for Anet ET4/ET5 series printers is now be installed on your motherboard.
|
||||
|
||||
## Installing Marlin
|
||||
|
||||
1. Once Marlin is compiled, copy `Marlin/.pio/build/Anet_ET4_OpenBLT/firmware.srec` to a blank SD card and insert it into your printer.
|
||||
2. Power cycle your printer to start the update process.
|
||||
|
||||
## Acknowledgements
|
||||
- [@davidtgbe](https://github.com/davidtgbe) for porting Marlin to the ET4/ET5 series.
|
||||
- [Telegram Anet ET4 spanish group](https://t.me/anetet4esp), especially [@olidnon](https://github.com/olidnon), who lent his motherboard for testing.
|
||||
- [@uwe](https://github.com/uwe) and [@mubes](https://github.com/mubes) from Black Magic Probe team, and to [@Ebiroll](https://github.com/Ebiroll) (BMP/ESP32).
|
||||
- All contributors and testers.
|
|
@ -128,7 +128,7 @@
|
|||
|
||||
// Choose the name from boards.h that matches your setup
|
||||
#ifndef MOTHERBOARD
|
||||
#define MOTHERBOARD BOARD_ANET_ET4
|
||||
#define MOTHERBOARD BOARD_ANET_ET4P
|
||||
#endif
|
||||
|
||||
// Name displayed in the LCD "Ready" message and Info menu
|
||||
|
@ -997,7 +997,7 @@
|
|||
* | [-] |
|
||||
* O-- FRONT --+
|
||||
*/
|
||||
#define NOZZLE_TO_PROBE_OFFSET { -23, -10, -0.77 }
|
||||
#define NOZZLE_TO_PROBE_OFFSET { -25, -8.5, 0 }
|
||||
|
||||
// Most probes should stay away from the edges of the bed, but
|
||||
// with NOZZLE_AS_PROBE this can be negative for a wider probing area.
|
||||
|
@ -2379,6 +2379,16 @@
|
|||
//
|
||||
//#define LONGER_LK_TFT28
|
||||
|
||||
//
|
||||
// 320x240, 2.8", FSMC Stock Display from ET4
|
||||
//
|
||||
#define ANET_ET4_TFT28
|
||||
|
||||
//
|
||||
// 480x320, 3.5", FSMC Stock Display from ET5
|
||||
//
|
||||
//#define ANET_ET5_TFT35
|
||||
|
||||
//
|
||||
// Generic TFT with detailed options
|
||||
//
|
||||
|
@ -2408,9 +2418,40 @@
|
|||
* root of your SD card, together with the compiled firmware.
|
||||
*/
|
||||
//#define TFT_CLASSIC_UI
|
||||
//#define TFT_COLOR_UI
|
||||
#define TFT_COLOR_UI
|
||||
//#define TFT_LVGL_UI
|
||||
|
||||
/* ET4/ET5 Black Theme */
|
||||
|
||||
#define COLOR_RED2 0xF003 // #F70019
|
||||
#define COLOR_ORANGE2 0xFDE0 // #FFBE00
|
||||
#define COLOR_LIME2 0xA7E0 // #A5FF00
|
||||
#define COLOR_BLACK2 0x2124 // #212421
|
||||
|
||||
#define COLOR_BACKGROUND COLOR_BLACK2
|
||||
#define COLOR_SELECTION_BG COLOR_ORANGE2
|
||||
#define COLOR_COLD COLOR_WHITE
|
||||
#define COLOR_HOTEND COLOR_RED2
|
||||
#define COLOR_HEATED_BED COLOR_RED2
|
||||
#define COLOR_CHAMBER COLOR_WHITE
|
||||
#define COLOR_FAN COLOR_WHITE
|
||||
#define COLOR_AXIS_FRAME COLOR_WHITE
|
||||
#define COLOR_AXIS_HOMED COLOR_ORANGE2
|
||||
#define COLOR_AXIS_NOT_HOMED COLOR_ORANGE2
|
||||
#define COLOR_RATE_100 COLOR_LIME2
|
||||
#define COLOR_RATE_ALTERED COLOR_ORANGE2
|
||||
#define COLOR_PRINT_TIME COLOR_WHITE
|
||||
#define COLOR_PROGRESS_BAR COLOR_ORANGE2
|
||||
#define COLOR_STATUS_MESSAGE COLOR_ORANGE2
|
||||
#define COLOR_SD_ENABLED COLOR_CONTROL_ENABLED
|
||||
#define COLOR_SD_DISABLED COLOR_CONTROL_DISABLED
|
||||
#define COLOR_MENU_TEXT COLOR_WHITE
|
||||
#define COLOR_MENU_VALUE_FONT COLOR_ORANGE2
|
||||
#define COLOR_SLIDER COLOR_ORANGE2
|
||||
#define COLOR_INCREASE COLOR_WHITE
|
||||
#define COLOR_DECREASE COLOR_WHITE
|
||||
#define COLOR_TICK COLOR_VIVID_GREEN
|
||||
|
||||
/**
|
||||
* TFT Rotation. Set to one of the following values:
|
||||
*
|
||||
|
@ -2433,17 +2474,17 @@
|
|||
//
|
||||
// ADS7843/XPT2046 ADC Touchscreen such as ILI9341 2.8
|
||||
//
|
||||
//#define TOUCH_SCREEN
|
||||
#define TOUCH_SCREEN
|
||||
#if ENABLED(TOUCH_SCREEN)
|
||||
#define BUTTON_DELAY_EDIT 50 // (ms) Button repeat delay for edit screens
|
||||
#define BUTTON_DELAY_MENU 250 // (ms) Button repeat delay for menus
|
||||
|
||||
#define TOUCH_SCREEN_CALIBRATION
|
||||
//#define TOUCH_SCREEN_CALIBRATION
|
||||
|
||||
#define TOUCH_CALIBRATION_X -11838
|
||||
#define TOUCH_CALIBRATION_Y 8776
|
||||
#define TOUCH_OFFSET_X -43
|
||||
#define TOUCH_OFFSET_Y 257
|
||||
//#define TOUCH_CALIBRATION_X -11838
|
||||
//#define TOUCH_CALIBRATION_Y 8776
|
||||
//#define TOUCH_OFFSET_X -43
|
||||
//#define TOUCH_OFFSET_Y 257
|
||||
|
||||
#if ENABLED(TFT_COLOR_UI)
|
||||
//#define SINGLE_TOUCH_NAVIGATION
|
||||
|
|
46
config/examples/Anet/ET4-Pro/README.md
Normal file
46
config/examples/Anet/ET4-Pro/README.md
Normal file
|
@ -0,0 +1,46 @@
|
|||
# Marlin for Anet ET4/ET5 Series
|
||||
|
||||
A debugging/programming probe (_e.g._, ST-Link, J-Link, or Black Magic Probe) is required to flash the the [OpenBLT bootloader for Anet ET4/ET5 series printers](https://github.com/davidtgbe/openblt/releases) due to incompatibility with the stock bootloader. Once OpenBLT is flashed, Marlin can be updated by SD card just like the original firmware.
|
||||
|
||||
## Flashing OpenBLT Bootloader with an ST-Link V2
|
||||
|
||||
1. Using three female to female Dupont jumper cables, connect `GND`, `SWDIO`, and `SWCLK` pins from the ST-Link to the Serial Wire Debug (SWD) header on the motherboard. Pay close attention that the cables on SWD header side match the order below using the `U` and `G` letters printed on the motherboard as a reference:
|
||||
|
||||
```
|
||||
SWD Header on ET Series motherboard
|
||||
___
|
||||
U | o | (not connected)
|
||||
|---|
|
||||
| o | SWDIO
|
||||
|---|
|
||||
| o | SWCLCK
|
||||
|---|
|
||||
G | o | GND
|
||||
---
|
||||
```
|
||||
Photo reference:
|
||||
|
||||
<img src="https://i.imgur.com/IBqE0i0.jpeg" width="50%">
|
||||
|
||||
_`GND` is connected to `GND` (black wire), `SWDIO` to `SWDIO` (yellow wire), and `SWCLK` to `SWCLK` (green wire). Your ST-Link pinout may differ from the one pictured, so double-check pinout._
|
||||
2. Plug in the ST-Link to your computer's USB port & power on your printer.
|
||||
3. Download & install [STM32 ST-Link Utility](https://www.st.com/en/development-tools/stsw-link004.html).
|
||||
4. Launch STM32 ST-Link Utility & click `Target` then `Connect`.
|
||||
5. Backup the original motherboard firmware or, at the very least, back up the bootloader. This will allow you to recover the full stock firmware by flashing the original bootloader to the `0x08000000` - `0x8010000` address range, and flashing any of the available Anet firmware binaries (_e.g._, `et4.bin`, `et5.bin`, etc.) to address `0x08010000`. _Note:_ You can restore your motherboard to stock by downloading printer-specific firmware from [Anet's Download section](https://www.anet3d.com/download/) and flashing the included hex (_e.g._, `et4p20191211V1.0.2.hex`, `et520200612V1.1.7.hex`, etc.) to address `0x08000000`.
|
||||
6. Download & extract [OpenBLT bootloader for Anet ET4/ET5 series printers](https://github.com/davidtgbe/openblt/releases).
|
||||
7. Click on `Target` then `Program...`
|
||||
8. Set the `Start Address` to `0x08000000`.
|
||||
9. Under `File Path`, click `Browse` and select `openblt_et4.bin` extracted in Step 6.
|
||||
10. Click `Start` to initiate the flashing process.
|
||||
11. OpenBLT for Anet ET4/ET5 series printers is now be installed on your motherboard.
|
||||
|
||||
## Installing Marlin
|
||||
|
||||
1. Once Marlin is compiled, copy `Marlin/.pio/build/Anet_ET4_OpenBLT/firmware.srec` to a blank SD card and insert it into your printer.
|
||||
2. Power cycle your printer to start the update process.
|
||||
|
||||
## Acknowledgements
|
||||
- [@davidtgbe](https://github.com/davidtgbe) for porting Marlin to the ET4/ET5 series.
|
||||
- [Telegram Anet ET4 spanish group](https://t.me/anetet4esp), especially [@olidnon](https://github.com/olidnon), who lent his motherboard for testing.
|
||||
- [@uwe](https://github.com/uwe) and [@mubes](https://github.com/mubes) from Black Magic Probe team, and to [@Ebiroll](https://github.com/Ebiroll) (BMP/ESP32).
|
||||
- All contributors and testers.
|
|
@ -2385,20 +2385,30 @@
|
|||
//
|
||||
//#define LONGER_LK_TFT28
|
||||
|
||||
//
|
||||
// 320x240, 2.8", FSMC Stock Display from ET4
|
||||
//
|
||||
#define ANET_ET4_TFT28
|
||||
|
||||
//
|
||||
// 480x320, 3.5", FSMC Stock Display from ET5
|
||||
//
|
||||
//#define ANET_ET5_TFT35
|
||||
|
||||
//
|
||||
// Generic TFT with detailed options
|
||||
//
|
||||
#define TFT_GENERIC
|
||||
//#define TFT_GENERIC
|
||||
#if ENABLED(TFT_GENERIC)
|
||||
// :[ 'AUTO', 'ST7735', 'ST7789', 'ST7796', 'R61505', 'ILI9328', 'ILI9341', 'ILI9488' ]
|
||||
#define TFT_DRIVER AUTO
|
||||
|
||||
// Interface. Enable one of the following options:
|
||||
//#define TFT_INTERFACE_FSMC
|
||||
#define TFT_INTERFACE_SPI
|
||||
//#define TFT_INTERFACE_SPI
|
||||
|
||||
// TFT Resolution. Enable one of the following options:
|
||||
#define TFT_RES_320x240
|
||||
//#define TFT_RES_320x240
|
||||
//#define TFT_RES_480x272
|
||||
//#define TFT_RES_480x320
|
||||
#endif
|
||||
|
@ -2413,10 +2423,41 @@
|
|||
* For LVGL_UI also copy the 'assets' folder from the build directory to the
|
||||
* root of your SD card, together with the compiled firmware.
|
||||
*/
|
||||
#define TFT_CLASSIC_UI
|
||||
//#define TFT_COLOR_UI
|
||||
//#define TFT_CLASSIC_UI
|
||||
#define TFT_COLOR_UI
|
||||
//#define TFT_LVGL_UI
|
||||
|
||||
/* ET4/ET5 Black Theme */
|
||||
|
||||
#define COLOR_RED2 0xF003 // #F70019
|
||||
#define COLOR_ORANGE2 0xFDE0 // #FFBE00
|
||||
#define COLOR_LIME2 0xA7E0 // #A5FF00
|
||||
#define COLOR_BLACK2 0x2124 // #212421
|
||||
|
||||
#define COLOR_BACKGROUND COLOR_BLACK2
|
||||
#define COLOR_SELECTION_BG COLOR_ORANGE2
|
||||
#define COLOR_COLD COLOR_WHITE
|
||||
#define COLOR_HOTEND COLOR_RED2
|
||||
#define COLOR_HEATED_BED COLOR_RED2
|
||||
#define COLOR_CHAMBER COLOR_WHITE
|
||||
#define COLOR_FAN COLOR_WHITE
|
||||
#define COLOR_AXIS_FRAME COLOR_WHITE
|
||||
#define COLOR_AXIS_HOMED COLOR_ORANGE2
|
||||
#define COLOR_AXIS_NOT_HOMED COLOR_ORANGE2
|
||||
#define COLOR_RATE_100 COLOR_LIME2
|
||||
#define COLOR_RATE_ALTERED COLOR_ORANGE2
|
||||
#define COLOR_PRINT_TIME COLOR_WHITE
|
||||
#define COLOR_PROGRESS_BAR COLOR_ORANGE2
|
||||
#define COLOR_STATUS_MESSAGE COLOR_ORANGE2
|
||||
#define COLOR_SD_ENABLED COLOR_CONTROL_ENABLED
|
||||
#define COLOR_SD_DISABLED COLOR_CONTROL_DISABLED
|
||||
#define COLOR_MENU_TEXT COLOR_WHITE
|
||||
#define COLOR_MENU_VALUE_FONT COLOR_ORANGE2
|
||||
#define COLOR_SLIDER COLOR_ORANGE2
|
||||
#define COLOR_INCREASE COLOR_WHITE
|
||||
#define COLOR_DECREASE COLOR_WHITE
|
||||
#define COLOR_TICK COLOR_VIVID_GREEN
|
||||
|
||||
/**
|
||||
* TFT Rotation. Set to one of the following values:
|
||||
*
|
||||
|
@ -2444,13 +2485,13 @@
|
|||
#define BUTTON_DELAY_EDIT 50 // (ms) Button repeat delay for edit screens
|
||||
#define BUTTON_DELAY_MENU 250 // (ms) Button repeat delay for menus
|
||||
|
||||
#define TOUCH_SCREEN_CALIBRATION
|
||||
//#define TOUCH_SCREEN_CALIBRATION
|
||||
|
||||
#define TOUCH_CALIBRATION_X -11838
|
||||
#define TOUCH_CALIBRATION_Y 8776
|
||||
#define TOUCH_OFFSET_X 333
|
||||
#define TOUCH_OFFSET_Y -17
|
||||
#define TOUCH_ORIENTATION TOUCH_PORTRAIT
|
||||
//#define TOUCH_CALIBRATION_X -11838
|
||||
//#define TOUCH_CALIBRATION_Y 8776
|
||||
//#define TOUCH_OFFSET_X 333
|
||||
//#define TOUCH_OFFSET_Y -17
|
||||
//#define TOUCH_ORIENTATION TOUCH_PORTRAIT
|
||||
|
||||
#if ENABLED(TFT_COLOR_UI)
|
||||
//#define SINGLE_TOUCH_NAVIGATION
|
||||
|
|
|
@ -1,167 +1,46 @@
|
|||
# Marlin for ET4
|
||||
# Marlin for Anet ET4/ET5 Series
|
||||
|
||||
The Marlin for ET4 project is an effort to try to adapt the Anet ET4 motherboard and display for use with Marlin.
|
||||
Anyone can contribute to completing this project. Feedback is also welcome.
|
||||
A debugging/programming probe (_e.g._, ST-Link, J-Link, or Black Magic Probe) is required to flash the the [OpenBLT bootloader for Anet ET4/ET5 series printers](https://github.com/davidtgbe/openblt/releases) due to incompatibility with the stock bootloader. Once OpenBLT is flashed, Marlin can be updated by SD card just like the original firmware.
|
||||
|
||||
## Build / Installation
|
||||
## Flashing OpenBLT Bootloader with an ST-Link V2
|
||||
|
||||
DISCLAIMER: Not for production use. This is an unfinished project under development. I (@davidtgbe) am not responsible for what may happen to the motherboard or printer. Use at your own risk.
|
||||
1. Using three female to female Dupont jumper cables, connect `GND`, `SWDIO`, and `SWCLK` pins from the ST-Link to the Serial Wire Debug (SWD) header on the motherboard. Pay close attention that the cables on SWD header side match the order below using the `U` and `G` letters printed on the motherboard as a reference:
|
||||
|
||||
A flasher (stlink, jlink, bmp etc) is required to flash Marlin onto the board because it has a closed custom bootloader.
|
||||
```
|
||||
SWD Header on ET Series motherboard
|
||||
___
|
||||
U | o | (not connected)
|
||||
|---|
|
||||
| o | SWDIO
|
||||
|---|
|
||||
| o | SWCLCK
|
||||
|---|
|
||||
G | o | GND
|
||||
---
|
||||
```
|
||||
Photo reference:
|
||||
|
||||
### Before flashing (recommended):
|
||||
<img src="https://i.imgur.com/IBqE0i0.jpeg" width="50%">
|
||||
|
||||
Make a backup of the firmware on the board first. At least back up the bootloader (0x08000000 - 0x08010000). That will allow you to recover the full stock firmware by:
|
||||
1. flashing the backed-up bootloader to the same address range (0x08000000 - 0x8010000), and
|
||||
2. flashing any of the available Anet binary firmwares (_i.e._, `et4.bin`) at address 0x08010000.
|
||||
_`GND` is connected to `GND` (black wire), `SWDIO` to `SWDIO` (yellow wire), and `SWCLK` to `SWCLK` (green wire). Your ST-Link pinout may differ from the one pictured, so double-check pinout._
|
||||
2. Plug in the ST-Link to your computer's USB port & power on your printer.
|
||||
3. Download & install [STM32 ST-Link Utility](https://www.st.com/en/development-tools/stsw-link004.html).
|
||||
4. Launch STM32 ST-Link Utility & click `Target` then `Connect`.
|
||||
5. Backup the original motherboard firmware or, at the very least, back up the bootloader. This will allow you to recover the full stock firmware by flashing the original bootloader to the `0x08000000` - `0x8010000` address range, and flashing any of the available Anet firmware binaries (_e.g._, `et4.bin`, `et5.bin`, etc.) to address `0x08010000`. _Note:_ You can restore your motherboard to stock by downloading printer-specific firmware from [Anet's Download section](https://www.anet3d.com/download/) and flashing the included hex (_e.g._, `et4p20191211V1.0.2.hex`, `et520200612V1.1.7.hex`, etc.) to address `0x08000000`.
|
||||
6. Download & extract [OpenBLT bootloader for Anet ET4/ET5 series printers](https://github.com/davidtgbe/openblt/releases).
|
||||
7. Click on `Target` then `Program...`
|
||||
8. Set the `Start Address` to `0x08000000`.
|
||||
9. Under `File Path`, click `Browse` and select `openblt_et4.bin` extracted in Step 6.
|
||||
10. Click `Start` to initiate the flashing process.
|
||||
11. OpenBLT for Anet ET4/ET5 series printers is now be installed on your motherboard.
|
||||
|
||||
If you don't perform this step and end up "bricking" your board, you can get the stock ET4 firmware and bootloader linked in the Resources section below.
|
||||
## Installing Marlin
|
||||
|
||||
### Flashing the firmware:
|
||||
|
||||
There are several tutorials available for [stlink](https://www.cnx-software.com/2020/02/04/how-to-recover-from-a-bad-firmware-upgrade-on-anet-et4-3d-printer/)/[j-link](https://danielabalo.wordpress.com/flasear-anet-et4/) flashers.
|
||||
|
||||
There's no need to keep the stock bootloader on the board, so you can flash Marlin starting at address 0x8000000.
|
||||
1. Download the latest Marlin firmware. (Version 2.0.6.2 or newer.)
|
||||
2. Use the appropriate configuration files for your ET4 model (ET4, ET4 Pro, ET4+, ...). The affected settings include:
|
||||
- Driver model (A4988 vs. TMC2208)
|
||||
- Z endstop position (MIN vs. MAX)
|
||||
- Bed size
|
||||
- Bed leveling sensor
|
||||
3. For best results download the free "_Visual Studio Code_" and use the "_Auto Build Marlin_" extension with "_PlatformIO IDE_".
|
||||
4. Use your flasher to burn the firmware (`.elf` or `.bin` file) starting from address 0x08000000.
|
||||
|
||||
Connect your favorite serial host to the printer's serial port at 115200 baud to test it out!
|
||||
|
||||
## Resources
|
||||
|
||||
- Video: [Flash Marlin on ET4x with ST-Link](https://youtu.be/LUQe3hQBz2Q)
|
||||
- Video: [Marlin on ET4 Demo](https://youtu.be/9ZN-0AMJHk0)
|
||||
- [ET4 Telegram Spanish Group Resources](https://drive.google.com/drive/folders/1bVusF9dMh1H7c2JM5ZWlbn2tWRGKsHre)
|
||||
- [ET4 Board and specs](https://es.aliexpress.com/item/4000571722465.html?spm=a2g0o.productlist.0.0.5c647634dDFWSV&algo_pvid=9a06cdcd-c1f2-45a0-adcf-36da50fefff7&algo_expid=9a06cdcd-c1f2-45a0-adcf-36da50fefff7-2&btsid=0ab6f83115911132482433653e39a1&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_)
|
||||
|
||||
## Marlin for Anet ET Project status
|
||||
|
||||
### Working:
|
||||
- XYZ Steppers
|
||||
- Extruder
|
||||
- SD Card
|
||||
- USB comunication / pronterface
|
||||
- TFT
|
||||
- Filament runout detector.
|
||||
- EEPROM
|
||||
- Powerloss. See issues tab.
|
||||
|
||||
### In-progress
|
||||
- PC/SD firmware load/update: There is no bootloader currently. Best option would be use stock ET4 bootloader.
|
||||
|
||||
### Needs a look
|
||||
- All files at "Marlin/buildroot/share/PlatformIO/variants/ET4" should be adapted to ET4 Board. Especially `peripheralPins.c`, `variant.cpp`, `variant.h`, etc.
|
||||
|
||||
### Reporting bugs
|
||||
Report bugs to the [Issues section of my Marlin fork](https://github.com/davidtgbe/Marlin/issues). Please be detailed regarding use-cases and other useful information like hardware and software context. For help with creating issues see [this](https://docs.github.com/en/enterprise/2.15/user/articles/creating-an-issue).
|
||||
1. Once Marlin is compiled, copy `Marlin/.pio/build/Anet_ET4_OpenBLT/firmware.srec` to a blank SD card and insert it into your printer.
|
||||
2. Power cycle your printer to start the update process.
|
||||
|
||||
## Acknowledgements
|
||||
- To the mates of the [Telegram Anet ET4 spanish group](https://t.me/anetet4esp), specially to @Solidnon, who lent his board for testing when the project was not even started.
|
||||
- To @uwe and @mubes from Black Magic Probe team, and to Ebiroll (BMP/ESP32).
|
||||
- To all contributors and testers of this branch and, specially, of Marlin master branch.
|
||||
|
||||
## Hardware
|
||||
- [MCU: STM32F407VGT6 ARM CORTEX M4](https://www.st.com/resource/en/datasheet/dm00037051.pdf)
|
||||
- DRIVERS: TMC2208 (silent) / A4988 (noisy)
|
||||
- USB TO SERIAL CONVERTER: [CH340G](https://www.mpja.com/download/35227cpdata.pdf)
|
||||
- FLASH: [WINBOND W25Q128JVSQ](https://www.winbond.com/resource-files/w25q128jv%20revf%2003272018%20plus.pdf) (128M-bit) Serial Flash memory
|
||||
- EEPROM: [AT24C04C](https://datasheet.lcsc.com/szlcsc/1809192313_Microchip-Tech-AT24C04C-SSHM-T_C6205.pdf) (ATMLH744 04CM) 4 Kb
|
||||
- LCD: [ST7789V](https://www.crystalfontz.com/controllers/- Sitronix/ST7789V/470/) | [STP320240_0280E2T](https://a.aliexpress.com/_dV4Bghv) (40P/1,5): ST7789 (YT280S008)
|
||||
- TOUCH: [XPT2046](https://ldm-systems.ru/f/doc/catalog/HY-TFT-2,8/XPT2046.pdf)
|
||||
- MOSFETS (BED/HOTEND): G90N04
|
||||
- CLK: JF8.000 (8MHZ MCU EXT CLK)
|
||||
- CLK: JF12.000 (12 MHZ USB-UART CLK)
|
||||
- SS56: SCHOTTKY DIODE
|
||||
- AMS1117 3.3 DN811: REGULATOR
|
||||
- 030N06: MOSFETs
|
||||
- A19T: TRANSISTOR
|
||||
- XL2596S -5.0E1 83296: STEP DOWN DC CONVERTER 3A/150KHZ
|
||||
- 293 [STG9834 / LM293DT](https://www.st.com/resource/en/datasheet/lm193.pdf): 2x Voltage comparators
|
||||
|
||||
## Pin Mapping
|
||||
```
|
||||
PB9 : E-STEP
|
||||
PB8 : E-DIR
|
||||
PE0 : E-ENABLE
|
||||
|
||||
PB6 : X-STEP
|
||||
PB5 : X-DIR
|
||||
PB7 : X-ENABLE
|
||||
|
||||
PB3 : Y-STEP
|
||||
PD6 : Y-DIR
|
||||
PB4 : Y-ENABLE
|
||||
|
||||
PA12 : Z-STEP
|
||||
PA11 : Z-DIR
|
||||
PA15 : Z-ENABLE
|
||||
|
||||
PE12 : Y-LIMIT
|
||||
PC13 : X-LIMIT
|
||||
PE11 : Z-LIMIT
|
||||
|
||||
PA4 : TEMP_BED
|
||||
PA1 : TEMP_EXB1
|
||||
|
||||
PE1 : END_FAN
|
||||
PE3 : LAY_FAN
|
||||
|
||||
PA0 : END_CONTROL
|
||||
PE2 : BED_CONTROL
|
||||
|
||||
PC3 : LV_DET
|
||||
PA2 : MAT_DET1
|
||||
PA8 (provided by ANET) : POWER_LOSS_DET
|
||||
|
||||
PC10 : SDIO_D2
|
||||
PC11 : SDIO_D3
|
||||
PD2 : SDIO_CMD
|
||||
PC12 : SDIO_CLK
|
||||
PC8 : SDIO_D0
|
||||
PC9 : SDIO_D1
|
||||
PD3 : TF_DET
|
||||
|
||||
PA9 : USB_USART1_TX
|
||||
PA10 : USB_USART1_RX
|
||||
|
||||
NRST (14) : RESET_BTN
|
||||
PD12 : LED_D2
|
||||
|
||||
PB12 : WINBOND_CS
|
||||
PB14 : WINBOND_DO
|
||||
PB15 : WINBOND_DI
|
||||
PB13 : WINBOND_CLK
|
||||
|
||||
GND : EEPROM_A1
|
||||
GND : EEPROM_A2
|
||||
PB11 : EEPROM_SDA
|
||||
PB10 : EEPROM_SCL
|
||||
|
||||
PD7 : P1_1_LCD_9_CSX
|
||||
PD5 : P1_2_LCD_11_WRX
|
||||
PB2 : P1_3_TOUC_/CS
|
||||
PE5 : P1_4_TOUCH_14_DIN
|
||||
PE4 : P1_5_TOUCH_12_DOUT
|
||||
PB0 : P1_6_TOUCH_16_DCLK
|
||||
PB1 : P1_7_TOUC_/PENIRQ
|
||||
PD4 : P1_8_LCD_12_RDX
|
||||
GND : P1_9
|
||||
3.3V : P1_10
|
||||
|
||||
PE6 : P2_1_LCD_15_RESX
|
||||
PD13 : P2_2_LCD_10_DCX
|
||||
PD15 : P2_3_LCD_26_DB9
|
||||
PD14 : P2_4_LCD_25_DB8
|
||||
PD1 : P2_5_LCD_28_DB11
|
||||
PD0 : P2_6_LCD_27_DB10
|
||||
PE8 : P2_7_LCD_30_DB13
|
||||
PE7 : P2_8_LCD_29_DB12
|
||||
PE10 : P2_9_LCD_32_DB15
|
||||
PE9 : P2_10_LCD_31_DB14
|
||||
```
|
||||
- [@davidtgbe](https://github.com/davidtgbe) for porting Marlin to the ET4/ET5 series.
|
||||
- [Telegram Anet ET4 spanish group](https://t.me/anetet4esp), especially [@olidnon](https://github.com/olidnon), who lent his motherboard for testing.
|
||||
- [@uwe](https://github.com/uwe) and [@mubes](https://github.com/mubes) from Black Magic Probe team, and to [@Ebiroll](https://github.com/Ebiroll) (BMP/ESP32).
|
||||
- All contributors and testers.
|
||||
|
|
|
@ -997,7 +997,7 @@
|
|||
* | [-] |
|
||||
* O-- FRONT --+
|
||||
*/
|
||||
#define NOZZLE_TO_PROBE_OFFSET { -26, -9, -1.72 }
|
||||
#define NOZZLE_TO_PROBE_OFFSET { -25, -8.5, 0 }
|
||||
|
||||
// Most probes should stay away from the edges of the bed, but
|
||||
// with NOZZLE_AS_PROBE this can be negative for a wider probing area.
|
||||
|
@ -2379,6 +2379,16 @@
|
|||
//
|
||||
//#define LONGER_LK_TFT28
|
||||
|
||||
//
|
||||
// 320x240, 2.8", FSMC Stock Display from ET4
|
||||
//
|
||||
#define ANET_ET4_TFT28
|
||||
|
||||
//
|
||||
// 480x320, 3.5", FSMC Stock Display from ET5
|
||||
//
|
||||
//#define ANET_ET5_TFT35
|
||||
|
||||
//
|
||||
// Generic TFT with detailed options
|
||||
//
|
||||
|
@ -2408,9 +2418,40 @@
|
|||
* root of your SD card, together with the compiled firmware.
|
||||
*/
|
||||
//#define TFT_CLASSIC_UI
|
||||
//#define TFT_COLOR_UI
|
||||
#define TFT_COLOR_UI
|
||||
//#define TFT_LVGL_UI
|
||||
|
||||
/* ET4/ET5 Black Theme */
|
||||
|
||||
#define COLOR_RED2 0xF003 // #F70019
|
||||
#define COLOR_ORANGE2 0xFDE0 // #FFBE00
|
||||
#define COLOR_LIME2 0xA7E0 // #A5FF00
|
||||
#define COLOR_BLACK2 0x2124 // #212421
|
||||
|
||||
#define COLOR_BACKGROUND COLOR_BLACK2
|
||||
#define COLOR_SELECTION_BG COLOR_ORANGE2
|
||||
#define COLOR_COLD COLOR_WHITE
|
||||
#define COLOR_HOTEND COLOR_RED2
|
||||
#define COLOR_HEATED_BED COLOR_RED2
|
||||
#define COLOR_CHAMBER COLOR_WHITE
|
||||
#define COLOR_FAN COLOR_WHITE
|
||||
#define COLOR_AXIS_FRAME COLOR_WHITE
|
||||
#define COLOR_AXIS_HOMED COLOR_ORANGE2
|
||||
#define COLOR_AXIS_NOT_HOMED COLOR_ORANGE2
|
||||
#define COLOR_RATE_100 COLOR_LIME2
|
||||
#define COLOR_RATE_ALTERED COLOR_ORANGE2
|
||||
#define COLOR_PRINT_TIME COLOR_WHITE
|
||||
#define COLOR_PROGRESS_BAR COLOR_ORANGE2
|
||||
#define COLOR_STATUS_MESSAGE COLOR_ORANGE2
|
||||
#define COLOR_SD_ENABLED COLOR_CONTROL_ENABLED
|
||||
#define COLOR_SD_DISABLED COLOR_CONTROL_DISABLED
|
||||
#define COLOR_MENU_TEXT COLOR_WHITE
|
||||
#define COLOR_MENU_VALUE_FONT COLOR_ORANGE2
|
||||
#define COLOR_SLIDER COLOR_ORANGE2
|
||||
#define COLOR_INCREASE COLOR_WHITE
|
||||
#define COLOR_DECREASE COLOR_WHITE
|
||||
#define COLOR_TICK COLOR_VIVID_GREEN
|
||||
|
||||
/**
|
||||
* TFT Rotation. Set to one of the following values:
|
||||
*
|
||||
|
@ -2433,18 +2474,18 @@
|
|||
//
|
||||
// ADS7843/XPT2046 ADC Touchscreen such as ILI9341 2.8
|
||||
//
|
||||
//#define TOUCH_SCREEN
|
||||
#define TOUCH_SCREEN
|
||||
#if ENABLED(TOUCH_SCREEN)
|
||||
#define BUTTON_DELAY_EDIT 50 // (ms) Button repeat delay for edit screens
|
||||
#define BUTTON_DELAY_MENU 250 // (ms) Button repeat delay for menus
|
||||
|
||||
#define TOUCH_SCREEN_CALIBRATION
|
||||
//#define TOUCH_SCREEN_CALIBRATION
|
||||
|
||||
#define TOUCH_CALIBRATION_X -11838
|
||||
#define TOUCH_CALIBRATION_Y 8776
|
||||
#define TOUCH_OFFSET_X 333
|
||||
#define TOUCH_OFFSET_Y -17
|
||||
#define TOUCH_ORIENTATION TOUCH_PORTRAIT
|
||||
//#define TOUCH_CALIBRATION_X -11838
|
||||
//#define TOUCH_CALIBRATION_Y 8776
|
||||
//#define TOUCH_OFFSET_X 333
|
||||
//#define TOUCH_OFFSET_Y -17
|
||||
//#define TOUCH_ORIENTATION TOUCH_PORTRAIT
|
||||
|
||||
#if ENABLED(TFT_COLOR_UI)
|
||||
//#define SINGLE_TOUCH_NAVIGATION
|
||||
|
|
46
config/examples/Anet/ET4X/README.md
Normal file
46
config/examples/Anet/ET4X/README.md
Normal file
|
@ -0,0 +1,46 @@
|
|||
# Marlin for Anet ET4/ET5 Series
|
||||
|
||||
A debugging/programming probe (_e.g._, ST-Link, J-Link, or Black Magic Probe) is required to flash the the [OpenBLT bootloader for Anet ET4/ET5 series printers](https://github.com/davidtgbe/openblt/releases) due to incompatibility with the stock bootloader. Once OpenBLT is flashed, Marlin can be updated by SD card just like the original firmware.
|
||||
|
||||
## Flashing OpenBLT Bootloader with an ST-Link V2
|
||||
|
||||
1. Using three female to female Dupont jumper cables, connect `GND`, `SWDIO`, and `SWCLK` pins from the ST-Link to the Serial Wire Debug (SWD) header on the motherboard. Pay close attention that the cables on SWD header side match the order below using the `U` and `G` letters printed on the motherboard as a reference:
|
||||
|
||||
```
|
||||
SWD Header on ET Series motherboard
|
||||
___
|
||||
U | o | (not connected)
|
||||
|---|
|
||||
| o | SWDIO
|
||||
|---|
|
||||
| o | SWCLCK
|
||||
|---|
|
||||
G | o | GND
|
||||
---
|
||||
```
|
||||
Photo reference:
|
||||
|
||||
<img src="https://i.imgur.com/IBqE0i0.jpeg" width="50%">
|
||||
|
||||
_`GND` is connected to `GND` (black wire), `SWDIO` to `SWDIO` (yellow wire), and `SWCLK` to `SWCLK` (green wire). Your ST-Link pinout may differ from the one pictured, so double-check pinout._
|
||||
2. Plug in the ST-Link to your computer's USB port & power on your printer.
|
||||
3. Download & install [STM32 ST-Link Utility](https://www.st.com/en/development-tools/stsw-link004.html).
|
||||
4. Launch STM32 ST-Link Utility & click `Target` then `Connect`.
|
||||
5. Backup the original motherboard firmware or, at the very least, back up the bootloader. This will allow you to recover the full stock firmware by flashing the original bootloader to the `0x08000000` - `0x8010000` address range, and flashing any of the available Anet firmware binaries (_e.g._, `et4.bin`, `et5.bin`, etc.) to address `0x08010000`. _Note:_ You can restore your motherboard to stock by downloading printer-specific firmware from [Anet's Download section](https://www.anet3d.com/download/) and flashing the included hex (_e.g._, `et4p20191211V1.0.2.hex`, `et520200612V1.1.7.hex`, etc.) to address `0x08000000`.
|
||||
6. Download & extract [OpenBLT bootloader for Anet ET4/ET5 series printers](https://github.com/davidtgbe/openblt/releases).
|
||||
7. Click on `Target` then `Program...`
|
||||
8. Set the `Start Address` to `0x08000000`.
|
||||
9. Under `File Path`, click `Browse` and select `openblt_et4.bin` extracted in Step 6.
|
||||
10. Click `Start` to initiate the flashing process.
|
||||
11. OpenBLT for Anet ET4/ET5 series printers is now be installed on your motherboard.
|
||||
|
||||
## Installing Marlin
|
||||
|
||||
1. Once Marlin is compiled, copy `Marlin/.pio/build/Anet_ET4_OpenBLT/firmware.srec` to a blank SD card and insert it into your printer.
|
||||
2. Power cycle your printer to start the update process.
|
||||
|
||||
## Acknowledgements
|
||||
- [@davidtgbe](https://github.com/davidtgbe) for porting Marlin to the ET4/ET5 series.
|
||||
- [Telegram Anet ET4 spanish group](https://t.me/anetet4esp), especially [@olidnon](https://github.com/olidnon), who lent his motherboard for testing.
|
||||
- [@uwe](https://github.com/uwe) and [@mubes](https://github.com/mubes) from Black Magic Probe team, and to [@Ebiroll](https://github.com/Ebiroll) (BMP/ESP32).
|
||||
- All contributors and testers.
|
Loading…
Add table
Add a link
Reference in a new issue