emmebrusa / TSDZ2-Smart-EBike-1

TSDZ2 Open Source Firmware adapted to VLCD5-VLCD6-XH18 displays
GNU General Public License v3.0
131 stars 35 forks source link

Build Action

This repository is updated by mbrusa.

This fork is based on the TSDZ2-v0.20beta1 adapted for Tongsheng protocol displays, like stock VLCD5, VLCD6, XH18 or other displays with the same protocol and 6-pin Tonsheng connector, SW102, DZ41, 850C or 860C for TSDZ2. With these last displays, the visualization of data and errors must be checked..

Endless Sphere forum reference thread: endless-sphere.com..

See the wiki for instructions

This ebike motor controller firmware project is to be used with the Tongsheng TSDZ2 mid drive motor. Note: firmware can't be written to Enerdan sold TSDZ2 motors and controllers because they are equipped with V2 controller and XMC1300 microprocessor instead of STM8.

It has the following benefits compared to the stock firmware:

This project is being developed and maintained for free by a community of users. Some of them are developers who work professionally developing this type of technology for very well known companies.

Building and flashing with Java tool

Windows

Linux and MacOS

For more information, go to the wiki instructions.

Development / contributing

Setup

  1. Clone this repository
  2. Install the SDCC compiler

Debugging

Compile the firmware manually

Flashing the firmware manually

Editing environment

  1. VScode can be used for the development. a) open project top folder as workspace b) install extensions from recommended popup c) configure Intellisense by going to Settings ctrl+, and specifying @id:C_Cpp.default.systemIncludePath according to SDCC installation folder, e.g: C:\\Program Files\\SDCC\\include d) Ctrl+Shift+b to build the firmware

IMPORTANT NOTES