STLink Ninebot Max ESC

From Joey's Wiki
Revision as of 21:06, 23 February 2022 by Joeybab3 (talk | contribs) (→‎Flashing)
Jump to navigation Jump to search

In the case of a bricked ESC/Controller/Control Board, STLinking can save the controller from needing to be replaced in some instances.

For this process you will need:

  • Windows computer
  • STLink (Decent quality clones will work)
  • Tools to disassemble the scooter and access the ESC
  • Dupont male/female jumper cables

This process can be dangerous if done incorrectly so take caution when performing these steps and make sure you use a computer you are comfortable possibly destroying.

If you short a battery line you could end up blowing up your STLink, Computer, and more or even causing a fire.

Accessing the Debug Pins

Accessing the ESC

Start by removing the 18 Security Torx T-15 screws on the bottom.

The locations of the 18 screws.

Using an M4 Allen/Hex wrench or bit, remove the two screws holding the ESC in place.

The ESC after being removed.

Carefully unplug each of the connectors.

You may need to scrape more rubber potting compound away from some of the connectors in order to unplug them.

Accessing The Pins

Carefully scrape away the potting compound, making sure not to remove any of the small surface mount components.

Be very careful not to damage any of the smaller SMD components.

Software

Download STM32 STLink Utility from the ST website.

Scroll down and click "Get Software" and enter your email to receive a download link.

Install it and open it.

Flashing

Connect the STLink to the ESC according to the diagram below.

The BMS port red and black wires can also be connected to provide power instead of using the BMS connector and ground point.

  • Open STM32 ST-Link utility and connect to the ESC using the plug at the top
  • Press Target->Connect from the top menu
No error messages about "Unable to connect to target" should display.
At this point a red LED should light up on the board.
  • From the top menu, press Target->Program & verify or ctrl+p.