TG9541 / stm8ef

STM8 eForth - a user friendly Forth for simple µCs with docs
https://github.com/TG9541/stm8ef/wiki
Other
311 stars 66 forks source link

Add support for STM8L101 and STM8L001 #349

Closed TG9541 closed 3 years ago

TG9541 commented 3 years ago

Yes, really. There will be some editing to do in the docs because I frequently stated that it's not possible.

What changed: with the help of OpenOCD (0.10.0+dev-01404-g3934483-dirty), an upgraded cheapo STLINK "V2J35S7 (API v2)" and STM8-GDB (8.1 with stm8-binutils patches)and a recent SDCC (4.0.3) I wasn't only able to flash a device (it never worked for me with stm8flash on Linux) but also to debug it step by step. Findings about the required OpenOCD configuration are here and here.

The new port shall support the following features:

Bonus:

TG9541 commented 3 years ago

Some STM8L001J3M3 test results:

Since the STM8L USART doesn't support half-duplex mode or GPIO remapping (both are STM8S Low Density features) practical application of this SOP-8 device with 6 GPIOs probably benefit from using some sort of bidirectional UART implementation on pin1.