It is the actual code mentioned in the article about STM8 hardware bug that cause EEPROM writing instability issue. Read the article for more info and workaround of the issue.
I found the bug on one of these STM8S development board. To test the code on an actual hardware, you also need a tact switch connecting between pin C3 and ground and a device to read the content of EEPROM.
Board specific code is in firmware.c
you can effortlessly port the software to different boards if you want.
- Git version >= 2.0
- Small Device C Compiler version >= 3.9.0
- GNU Make
- GNU Bash
Clone this repository with submodules and just make
$ git clone --recurse-submodules -b st-recommended-method https://github.com/midnight-wonderer/stm8-eeprom-bug.git
$ cd stm8-eeprom-bug
$ make
The code has been released under the MIT License.
The article was published under Creative Commons BY-SA 4.0