Template:Ninebot Max STLink BMS Flash Procedure: Difference between revisions

From Joey's Wiki
Jump to navigation Jump to search
(Created page with "===Finding the Debug points=== The top of the battery is covered in gray silicon. The area around the debug pins must be removed to access the pins as shown below. It is just below the BMS 4 pin JST data cable. thumb|center|400px|The debug pins on a normal bms Some boards have slightly different layout. thumb|center|400px|The alternate debug points ====Flashing Stock BMS Firmware=...")
 
No edit summary
Line 14: Line 14:
The debug pins must be connected to the STLink as shown. This can be done by manually holding jumpers to the debug points or by soldering wires to connect to the jumpers.
The debug pins must be connected to the STLink as shown. This can be done by manually holding jumpers to the debug points or by soldering wires to connect to the jumpers.


Download the hex file from [[Lyft Ninebot Max BMS Files]], and open it in STVP.
Download the hex file from ScooterHacking, and open it in STVP.


[[File:NinebotMaxBMSSTLinkPinout.jpg|center|thumb|400px]]
To flash, a separate software must be used instead of the normal openOCD/STM32 STLink Utility method.


To flash, a separate software must be used instead of the normal openOCD method.
To flash it, different software is needed, in this case, [https://www.st.com/en/development-tools/stvp-stm32.html STVP].
 
[[File:LyftBMSFullDump134.hex]]
 
To flash it, different software is needed, in this case, [[File:SVTP.zip]].


1. Connect ST-Link to BMS through STVP
1. Connect ST-Link to BMS through STVP
Line 34: Line 30:
4. Select the bottom tab labeled "PROGRAM MEMORY"
4. Select the bottom tab labeled "PROGRAM MEMORY"


5. Open [[File:LyftBMSFullDump134.hex]]
5. Open the fulldump file


6. In the top menu select Program -> All Tabs
6. In the top menu select Program -> All Tabs

Revision as of 05:22, 20 April 2023

Finding the Debug points

The top of the battery is covered in gray silicon. The area around the debug pins must be removed to access the pins as shown below.

It is just below the BMS 4 pin JST data cable.

The debug pins on a normal bms

Some boards have slightly different layout.

The alternate debug points

Flashing Stock BMS Firmware

The debug pins must be connected to the STLink as shown. This can be done by manually holding jumpers to the debug points or by soldering wires to connect to the jumpers.

Download the hex file from ScooterHacking, and open it in STVP.

To flash, a separate software must be used instead of the normal openOCD/STM32 STLink Utility method.

To flash it, different software is needed, in this case, STVP.

1. Connect ST-Link to BMS through STVP

2. STM8L15xK6 for the chip

3. In the top menu select Read -> All Tabs

4. Select the bottom tab labeled "PROGRAM MEMORY"

5. Open the fulldump file

6. In the top menu select Program -> All Tabs

Verify Successful Flash

Connect the White of the battery data line to TX and yellow to RX and black to ground in order to check the version. It should read 1.3.4 or 5.3.4, and not 4.4.8 or anything else.

A successful flash will have either version 1.3.4 or version 5.3.4.
An unsuccessful flash will have either version 4.4.8 or something else.

Alternatively, connect the battery to a scooter or skeleton setup and check the version there.