Yesterday, after 3 pre-releases, I finally decided to released a STM8 eForth 2.2.20. The main reason was the release of the W1209 data logging thermostat, which required some minor fixes (especially one that was a workaround for a uCsim bug).
This said, the W1209 project showed that STM8 eForth is now very usable
With 482 SLOC (i.e. including library, without empty or comment lines) the thermostat code is a good deal more complex than my previous demo programs:
- sensor filtering and linearization
- a 2 level menu with editor, plausibility checks, and defaults
- a (simple) temperature controller, and
- a data logger for 4 controller signals with text output
The program fits in 2840 bytes which indicates that the code is rather dense (about 6 bytes/SLOC).
What's more, the Continuous Integration chain produces µC firmware binary files from the same Forth source code that can be written, and tested interactively. In my view, STM8 eForth is now ready for practical applications.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.