-
Notifications
You must be signed in to change notification settings - Fork 34
Home
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 :-).
-
download and install Java Runtime Environment
-
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.
-
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
-
download or clone the Github repository and unpack in directly to C:\
-
Start the Java GUI by double-click on JavaConfigurator.jar in the extracted folder.
-
See the parameter configuration guide in the manuals folder. The red texts refer to the use of the GUI configurator.
-
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.
-
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