See here tecnhical notes about TSDZ2: https://opensourceebikefirmware.bitbucket.io/development_tsdz2
- Install SDCC (https://sourceforge.net/projects/sdcc/files/snapshot_builds/x86_64-w64-mingw32-setup) version 3.7 or 3.8 (NOTE: 3.9 has a bug which causes it to crash while building LCD3). Make sure to add it to your PATH (option in one of the last screens of the installer... )
- Git clone the project or download zip file: https://github.com/OpenSource-EBike-firmware/TSDZ2-Smart-EBike (make sure to get the master branch)
- Use any text editor to make the desired firmware changes.
- Double-click Start_Compiling.bat to compile the firmware. The resulting main.ihx can be programmed in the controller.
The stm8 eforth project is developed on linux.