TG9541/stm8ef

ES7P003FGTF support

rtek1000 opened this issue · 10 comments

Hello,

Do you know how to program the ES7P003? Tools and IDE? I received a W1209 board with this microcontroller.

Maybe you can add the ES7P003FGTF on this page:

https://github.com/TG9541/stm8ef/wiki/W1209-Identifying-'compliant'-boards

ES7P003 (The board does not have Vcap)
ES7P003

STM8S003
STM8S003F3P6

Datasheet (Automatically translated):
https://github.com/rtek1000/W1209-firmware-modified/blob/master/Doc/ES7P003FGTF_EN.pdf

Datasheet original:
https://github.com/rtek1000/W1209-firmware-modified/blob/master/Doc/ES7P003FGTF_CN_622163.pdf

Oh, I forgot to comment, the W3230 board also has an STM8S003F3P6.

Thanks.

I found the manufacturer's website, it seems that everything is available for download, from the compiler to the programmer (ES-Link 😂) and via the serial port.

https://www.essemi.com/index/product/detail?id=39

VK6TT commented
TG9541 commented

Interesting, that's the 3rd µC in a STM8S103 TSSOP20 form factor I get to know about (the others being N76E003AT20 - MCS-51 and CH32V003F4P6 - RISC-V).

This one appears to have a very basic proprietary 8 bit core with (fixed?) 16bit instruction width:

image

At least part of the instruction set is memory access controlled (e.g, multiplication, division):
image

I doubt that this chip is more than a stop-gap to serve the domestic market. I would rather not try mastering this one.

A complete datasheet is here:
https://datasheet.lcsc.com/szlcsc/1912111437_Qingdao-Eastsoft-Communication-Tech-ES7P003FGTF_C394846.pdf

I didn't expect to be able to use the same firmware, but the logic can be reused.

I am interested in using the W1209 board with DS18B20 sensors, I currently use Attiny85 with this configuration, but I have to assemble the board manually.

Incredibly ES7P003 has support in VScode (Extension Essemi), I'm trying if I can make it work, the documents are in Chinese. I am using translator to read and access the website. 😅

But I'm a little wary of VScode, because Platformio generated a lot more code in VScode with SDCC than STVD with Cosmic, commented here.

TG9541 commented

I guess it would be worth thinking about producing an open-source STM8 board that can be ordered, e.g., from JLCPCB at a budget:

  • a form factor that fits in a standard enclosure
  • through-hole assembly options, e.g., for headers, relays and a LED display
  • e.g., STM8SxxxKyT6C µC (e.g., STM8S103K3, STM8S903K3, STMS105K6...), OR maybe the TSSOP20 form factor so that optionally any of the other chips can be used (the CH32V003F4P6 RISC-V sure looks interesting).

Yes, I've already ordered from JLCPCB, it's a very good option.

What about the noise immunity of the STM8? Atmel's original ATmega chips were much better than Microchip's PICs.

VK6TT commented