Skip to content
stancecoke edited this page Aug 5, 2019 · 17 revisions

Welcome to the LishuiFOC wiki!

Here are the necessary steps to flash the firmware to your controller.

  1. Make sure, that your controller uses the STM32FEB KC6T6 processor

  2. Make sure, the you can find the three shunts and the OP on the PCB. Your PCB can look completely different, it's only important, that you can find the components.

Photo of PCB 3. Wire the STLink-V2 to the white connector, or directly to the PCB.

STLink-V2 white connector

  1. Download and install the Java Runtime Environment (if not already installed)

  2. Download and install the System Workbench for STM32

  3. Import the repo in Eclipse by file --> import --> git --> Projects from git --> clone URL. Copy the adress https://github.com/stancecoke/LishuiFOC to the dialog window and choose an empty folder.

  4. You have to disable the write protection of the controller once, this will delete the original firmware and can't be undone. You can use the ST-Link utility, see figure 19 of the manual

  5. Edit the settings in the config.h according to your needs and then press the "Run" button to compile and flash the firmware. In the recent master, you need to adjust the phase current offset values manually.

Caution: all of this project is highly experimental and all you are doing is on your own risk!

https://www.youtube.com/embed/iYRHn77PX7U?wmode=opaque&start=0