Administrators, Swags, Bureaucrats, Administrators
3,841
edits
No edit summary |
|||
| (4 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
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. | 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. | It is just below the BMS 4-pin JST data cable. | ||
[[File:NinebotMaxBatteryDebugPins.jpg|thumb|center|400px|The debug pins on a normal | [[File:NinebotMaxBatteryDebugPins.jpg|thumb|center|400px|The debug pins on a normal BMS.]] | ||
Some boards have slightly different layout. | Some boards have a slightly different layout. | ||
[[File:NinebotMaxBatteryDebugPinsLayout2.jpg|thumb|center|400px|The alternate debug points]] | [[File:NinebotMaxBatteryDebugPinsLayout2.jpg|thumb|center|400px|The alternate debug points]] | ||
Once you have these pins exposed, either solder jumper cables on or hold them for the next step according to the diagram below: | |||
[[File:NinebotMaxBatteryDebugPinsPinout.jpg|thumb|center|400px|The pinout on a normal bms]] | |||
Some boards have a slightly different layout. | |||
[[File:NinebotMaxBatteryDebugPinsLayout2Pinout.jpg|thumb|center|400px|The alternate debug pinout]] | |||
====Flashing Stock BMS Firmware==== | ====Flashing Stock BMS Firmware==== | ||
| Line 14: | Line 22: | ||
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 ScooterHacking, and open it in STVP. | Download the hex file [https://files.scooterhacking.org/firmware/max/BMS/bms134_fulldump.hex 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, a separate software must be used instead of the normal openOCD/STM32 STLink Utility method. | ||
| Line 22: | Line 30: | ||
1. Connect ST-Link to BMS through STVP | 1. Connect ST-Link to BMS through STVP | ||
2. STM8L15xK6 for the chip | 2. '''STM8L15xK6''' for the chip | ||
[[File:NinebotMaxSTLinkBatteryScreen.jpg|thumb|center|400px]] | [[File:NinebotMaxSTLinkBatteryScreen.jpg|thumb|center|400px]] | ||
| Line 30: | Line 38: | ||
4. Select the bottom tab labeled "PROGRAM MEMORY" | 4. Select the bottom tab labeled "PROGRAM MEMORY" | ||
5. Open the | 5. Open the full dump file, you can find the full dump file here: [[Ninebot Max BMS 1.3.4]]. | ||
6. In the top menu select Program -> All Tabs | 6. In the top menu select Program -> All Tabs | ||