|
|
(8 intermediate revisions by the same user not shown) |
Line 8: |
Line 8: |
|
| |
|
| Check out the difference between the [[Ninebot Max ESC Generations]] and use the steps below depending on which one you have. | | Check out the difference between the [[Ninebot Max ESC Generations]] and use the steps below depending on which one you have. |
| | |
| | There are 3 different board layouts. |
|
| |
|
| <div><ul> | | <div><ul> |
| <li style="display: inline-block;">[[File:NinebotMaxGen1ESC.jpg|thumb|center|400px|A Gen 1 ESC has bullet connectors and a silver metallic housing. Newer units may have writing as shown in this image.]]</li> | | <li style="display: inline-block;">[[File:NinebotMaxGen1ESC.jpg|link=STLink Ninebot Max Gen 1 ESC|thumb|center|400px|A Gen 1 ESC has bullet connectors and a silver metallic housing. Newer units may have writing as shown in this image.]]</li> |
| <li style="display: inline-block;">[[File:NinebotMaxGen2ESC.jpg|thumb|center|400px|A Gen 2 ESC has screw terminals and a black plastic housing.]]</li> | | <li style="display: inline-block;">[[File:NinebotMaxGen1G30DESC.jpg|link=STLink Ninebot Max Gen 1 G30D ESC|thumb|center|400px|A Gen 1 ESC has bullet connectors and a silver metallic housing. The G30D has 3 capacitors and a different location for the debug pins.]]</li> |
| | <li style="display: inline-block;">[[File:NinebotMaxGen2ESC.jpg|link=STLink Ninebot Max Gen 2 ESC|thumb|center|400px|A Gen 2 ESC has screw terminals and a black plastic housing. These versions are based on the AT32 MCU rather than the STM32.]]</li> |
| </ul></div> | | </ul></div> |
|
| |
|
| ==Gen 1==
| | Click the image above to go to the guide that corresponds to your model. |
| | |
| ===Accessing the Debug Pins===
| |
| | |
| ====Accessing the ESC====
| |
| | |
| Start by removing the 18 Security Torx T-15 screws on the bottom.
| |
| | |
| [[File: NinebotMaxBottomScrewLocations.jpg|thumb|center|400px|The locations of the 18 screws.]]
| |
| | |
| Using an M4 Allen/Hex wrench or bit, remove the two screws holding the ESC in place.
| |
| | |
| [[File: NinebotMaxESCLocations.jpg|thumb|center|400px|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.
| |
| | |
| [[File: NinebotMaxDebugPins.jpg|thumb|center|400px|Be very careful not to damage any of the smaller SMD components.]]
| |
| | |
| ===Software===
| |
| | |
| {{ Install STM32 STLink Utility }}
| |
| | |
| ===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.
| |
| | |
| [[File:NinebotMaxESCSTLinkPinout.jpg|center|thumb|400px]]
| |
| | |
| *Open STM32 ST-Link utility and connect to the ESC using the plug at the top
| |
| | |
| *Press Target->Connect from the top menu
| |
| | |
| [[File:StLinkUtilityNinebotMax.png|thumb|center|400px|No error messages about "Unable to connect to target" should display.]]
| |
| | |
| *Press "Open File" and open esc126_fulldump.bin, you can get it from [https://files.scooterhacking.org/firmware/max/DRV/esc126_fulldump.bin ScooterHacking].
| |
| | |
| [[File:StLinkUtilityNinebotMaxESCProgram.png|thumb|center|400px|At this point a red LED should light up on the board.]]
| |
| | |
| *From the top menu, press Target->Program & verify or ctrl+p.
| |
| | |
| ===Testing===
| |
| | |
| Remove the STLink and plug back in the ESC and use [[ScooterHacking Utility]] to check that your version number is now 1.2.6.
| |
| | |
| ==Gen 2==
| |
| | |
| As of yet, I have not been able to get ahold of one of these so I do not yet have instructions for it.
| |
| | |
| Check back in a bit to see if things have changed.
| |
|
| |
|
| [[Category: Scooters]][[Category: Ninebot]][[Category: Max]][[Category: STLink]] | | [[Category: Scooters]][[Category: Ninebot]][[Category: Max]][[Category: STLink]] |