Some rather pragmatic changes

A project log for eForth for cheap STM8S gadgets

Turn cheap modules from AliExpress into interactive development kits!

ThomasThomas 03/05/2020 at 06:590 Comments

Some of the changes for moving variant code (e.g. UART initialization, background task, global variables) out of the main STM8 eForth file (forth.asm) are still ongoing, others have been merged into master recently.

For STM8S903-like Low Density devices (e.g. STM8S001J3M3, STM8AF6226) a new UART configuration in is now supported that initializes UART pull-up correctly if it's remapped from PD5 to PA3 in half-duplex mode. This is a small change but using the STM8S001J3M3 is much more enjoyable this way, and the STM8S903K3T6C provides 24 GPIOs on 3 sides of the package (as long as you take care not to bring PD1/SWIM into a permanent output mode AND kill the Forth core at the same time ;-) ).