Skip to content
fusenuk edited this page Oct 5, 2023 · 9 revisions

stancecoke edited this page on 21 Mar · 27 revisions

You have to buy a STLink-V2 or clone, to flash the firmware to the motor. See the main wiki page how to wire the STLink to the motor connector. Keep the wires as short as possible.

A few steps are required to set up the software on a Windows computer. But they should also be feasible for inexperienced computer users :-).

  1. download and install Java Runtime Environment

  2. download SDCC and install either the "full version" or at least the version with the "include" and "stm8 libraries" (they are required to compile all ".c" files from the "src/controller" directory and to link the output ".rel" files into a "main.ihx" file). Make sure, that the checkbox for setting the path is activated.

  3. download and install ST Visual Development. It is recommended to install it directly to C:\ but you can also let it use the default install path if that shows as C:\Program Files (x86). The file STVP_CmdLine.exe must be located in one of these paths. Alternatively, you can add a different path in the file _TSDZ2-Smart-EBike/src/controller/flash.bat

  4. download or clone the Github repository and unpack in directly to C:\

  5. Start the Java GUI by double-click on JavaConfigurator.jar in the extracted folder.

  6. See the parameter configuration guide in the manuals folder. The red texts refer to the use of the GUI configurator.

  7. adjust your personal settings in the GUI and click the Compile & Flash button. You can simply click on the list items on the right to restore former settings.

  8. optional for brave people who want to add more features themselves: Download Eclipse for C++ Developers and unzip it to the desired location. There is no installer here, just double-click on eclipse.exe and import the repo as new C project.

For detailed information read the operation manuals in the manuals folder.

Forum discussions:
German
English
Italian
Spanish

GUI Basic Settings GUI Assistance Settings GUI Advanced Settings

Clone this wiki locally