Sorry, machine translation.
Programmer ST-Link V2.
We need the programmer itself. You can buy it on AliExpress. For example here:
To work with it you need the program STM32 ST-LINK Utility. We download it for free from the official website of the manufacturer’s company controller:
Link at the very bottom of the page. You will be asked to provide your first name, last name (any) and your email. A download link will be sent to the mail..
After downloading install the program. At the end of the installation, the program will ask you to install the driver. Be sure to allow the driver to install. Now, if you connect a programmer, Windows will detect it and sign “ST-Link”. This can be viewed by hovering over the USB connection icon next to the clock.
Also download the Speed2Increase application at the beginning of this topic. Thanks to GMOne for the work done.
Now you need to prepare a lot of space for disassembling your wheel.
We look at the online disassembly instructions.
Remove from both sides of the sidewall. I could not open them. I had to pry the corner with a thin screwdriver and pull it up. Then push the usual screwdriver into the slot and press upwards from the inside. The sides open with a bang, but everything remains intact.
Disconnect the battery. The manufacturer indicates - first disconnect the thin wires, then thick. When you connect the battery - on the contrary.
Disconnect the motor wires. Connections are packed with shrink tube, carefully cut it without damaging the wires, and disconnect.
Unscrew and remove the parts above the LEDs.
Now, on both sides, unscrew the screws connecting the two halves of the case. To remove one of the halves, it is necessary to remove one pedal. Remove the pedal from the side where there is no motor wires. Do not forget to unscrew the small locking screw at the bottom of the pedal in the middle. Unscrew the four screws near the pedal. Raise half of the case and disconnect the wires to the LED strip. Raise the top with a handle and disconnect the LED strip from the other half.
We unscrew the metal radiator of the controller on four screws. Raise it and disconnect the wire connectors.
Finally, we have a controller in our hands. When assembling, pay attention to the thick wires for the batteries. On the board indicated by arrows, where they should be sent.
Now you need to connect the programmer to the controller board.
There was no RESET on my programmer, so I connected four wires.
The RESET that is on ST-Link v2 is not suitable, it is for another microcontroller. The one that is needed on leg 18 inside ST-Link v2, it is not brought out.
The board is covered with a protective layer of lacquer, so before you solder the wires, apply tin to the soldering places, rubbing them slightly with the tip of a soldering iron. You will see when the contacts are cleared. Do not overheat the board, the tracks on it may come off. Do not use force to prevent damage to components.
Solder wires no more than 20 cm, otherwise the connection may not be.
When everything is connected. Run the program STM32 ST-LINK Utility.
Set the values in the circled fields as shown.
If you have soldered five wires with RESET, connect the programmer's USB cable to the computer and click the CONNECT icon indicated by the arrow ..
If four wires are soldered without RESET, like mine, hold the cable to the USB port of the computer, but do not plug in. Click the CONNECT icon, and immediately plug in the USB cable.
The program will display the firmware code of your controller.
Do not press the red icon of the eraser ERASE, otherwise you will erase the entire firmware of the controller.
Now that the program has read the code, click on the diskette icon and save the file with the name Firmware and the extension bin. Once again, save the file with the name original, in case you want to return the original firmware. Make sure that the path to the file contains only English names, or place it directly on the disk.
Do not close the program and do not disconnect the cable in order not to connect again.
Run as administrator of the application Speed2Increation, downloaded from this topic.
Specify the Firmware.bin file you created. Click Check, select S2 and set the speed. Click Patch. Now the firmware is changed. It remains to download it back to the controller.
Close the Speed2Increase application.
Return to the STM32 ST-LINK Utility application, which is still open.
Click the first open file icon. And specify the Firmware.bin file that you changed. After, click the Program icon, as in the picture.
In the window that appears, we change nothing and click Start.
We are waiting for the download to finish.
If you are connected without a RESET wire, it will give an error at the end. Do not pay attention to her.
Now the controller is reprogrammed. Unsolder the wires and collect your Ninebot. Reasonably tighten the screws.
Well, go ahead, experience new sensations of freedom!