Skip to content
emmebrusa edited this page May 4, 2020 · 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. Install it directly to C:\ , not to the default folder. The file STVP_CmdLine.exe must be located in C:\STMicroelectronics\st_toolset\stvp. Alternatively you can set the correct 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. 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.

  7. to edit the advanced settings click on the advanced settings button, do the necessary changes in notepad, save your changes by closing notepad or pressing ctrl-s, then click Compile & Flash to bring the changes to your bike. Hopefully someone adds the advanced settings to the GUI, some day ;-)

  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 manuals in the manuals folder.

Forum discussions:
German
English
Italian
Spanish

GUI Screenshot

Clone this wiki locally