Update Anet ET4 configs (#368)

This commit is contained in:
Keith Bennett 2020-12-18 19:50:16 -08:00 committed by GitHub
parent b4a62a7d7d
commit 5a25fd57e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 377 additions and 196 deletions

View file

@ -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

View 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.