pav1388 / cxg-e60wt

CXG-E60WT Soldering Iron firmware (STM8S103K3)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CXG-E60WT (E90WT/E110WT) Soldering Iron custom firmware (STM8S103K3)

Discussion (russian) https://radiokot.ru/forum/viewtopic.php?f=2&t=159650

Video instruction https://youtu.be/t-WOZShN3Fs

Current text instruction in file README_USER GUIDE.txt and everything you need to flashing new version from 29.06.2021 for Windows (russian+english) https://drive.google.com/file/d/1woPhMVJ4nPCOI40yAg6-3DRHsWJrjqTA/view?usp=sharing

A firmware for new soldering irons with STM8S103K3 MCU onboard. Some missing features have been implemented, such as sleep/wake up modes, sounds, errors check, calibration, forced mode, etc.

Available modifications, except for main version:

  • Left-handed version.
  • No sleep mode version (without sleep sensor).
  • With reset calibration.

For those who wants to re-build the firmware: you'll need two essential pieces of software to work with the STM8:

  • stm8flash, a utility for interfacing your ST-Link dongle
  • SDCC, a compiler

On Windows:

To install SDCC and Make for Windows

http://sdcc.sourceforge.net/
http://gnuwin32.sourceforge.net/packages/make.htm
Add the path to the make.exe file to the user variable environment "Patch".
### To install stm8flash

Copy files to folder with firmware https://drive.google.com/file/d/12tj4L1AJY9x1EI8u-1UHeEIzcUCLhD5y/view?usp=sharing https://drive.google.com/file/d/1k8WoO28yTGMGS9JLYqdeLOCUWp-OMYd2/view?usp=sharing

To build and flashing the firmware

Run the !Make.cmd file to compile the firmware.
Run the !Flash.cmd file to flash the microcontroller via stlink v2.
Run the !Clean.cmd file to clean the project folder from all files except the original ones. 


## On Linux:

### To install SDCC

sudo add-apt-repository ppa:laczik/ppa sudo apt-get update sudo apt-get remove sdcc sdcc-libraries sudo apt-get install sdcc

### To install stm8flash

git clone https://github.com/vdudouyt/stm8flash.git cd stm8flash make sudo make install

### To build the firmware

git clone https://github.com/pav1388/cxg-e60wt.git cd cxg-e60wt make make flash


## Service Menu
You can enter the Service Menu pressing "+" key and Power ON.

Doble-click on any key will cyclically change the following menu items:
* SOU: enable/disable sound, values 0..1 (default 1)
* CAL: calibration value in degrees, range -95..95 (default 0)
* SL1: sleep value in minutes, range 1..250 (default 5)
* SL2: DEEP sleep value in minutes, range 1..250 (default 10)
* FRC: Forced temperature increase range 10..250 (default 40)
* HEA: The voltage of the heating element is 110 or 220 volts (default 110)
* SL*: Setting temperature in sleep mode SL1, range 5..470 (default 100)

To exit the Service Menu just switch OFF/ON the soldering iron

PLEASE NOTE: 
* when in SL1 mode, the soldering iron will keep 100°C (edit in menu SL*).
* to reset to DEFAULT values press "-" key and power ON the device. You must reset values after flashing new version.

To enter calibration mode pressing "+" and "-" key and Power ON.


## CXG-E60WT Schematic diagram

![CXG-E60WT Scheme](/images/scheme.gif)

## Additional hardware

The following additional hardware has been installed:
- Mercury Switch: https://www.aliexpress.com/item/32509962658.html?spm=a2g0s.9042311.0.0.274233edX3SZw4
- SMD Buzzer:   https://www.aliexpress.com/item/4000043864737.html?spm=a2g0s.9042311.0.0.274233ediyCCli


Please feel free to use, modify, add new cool features.  Good luck!

About

CXG-E60WT Soldering Iron firmware (STM8S103K3)


Languages

Language:C 100.0%Language:Makefile 0.0%