Administrators, Swags, Bureaucrats, Administrators
2,822
edits
No edit summary |
|||
Line 66: | Line 66: | ||
==Flashing== | ==Flashing== | ||
===Connect the STLink to the Master Control Board=== | |||
Connect pins to 5v/VCC, GND, SWDIO, and SWCLK as shown below. | Connect pins to 5v/VCC, GND, SWDIO, and SWCLK as shown below. | ||
Line 76: | Line 78: | ||
Here I did a poor solder job but it still works. | Here I did a poor solder job but it still works. | ||
===STM32 STLink Utility=== | |||
Download the [https://github.com/scooterhacking/firmware/blob/e0b55b1ef90aebf44305ab679d2494ceece0ce62/Ninebot%20ESx%20and%20SNSC1.x/DRV/esc139_fulldump.bin 1.3.9 full dump .bin from ScooterHacking]. | Download the [https://github.com/scooterhacking/firmware/blob/e0b55b1ef90aebf44305ab679d2494ceece0ce62/Ninebot%20ESx%20and%20SNSC1.x/DRV/esc139_fulldump.bin 1.3.9 full dump .bin from ScooterHacking]. | ||
Line 83: | Line 87: | ||
Always check that you are downloading files from trusted sources(aka ScooterHacking) to avoid flashing malicious firmware. | Always check that you are downloading files from trusted sources(aka ScooterHacking) to avoid flashing malicious firmware. | ||
Open STM32 STLink Utility and | Open STM32 STLink Utility and attempt to connect to the esc with the button shown below. | ||
[[File: STM32STLinkUtilityConnect.png|thumb|center|400px|Click the button shown here to attempt to connect.]] | |||
You should be warned that readout protection is enabled if it is connected successfully. | |||
[[File: STM32STLinkUtilityReadoutProtectionWarning.png|thumb|center|400px|The warning will be fixed in the next steps.]] | |||
Next, press CTRL + B to open the chip settings. | |||
Select "Disabled" under "Read out protection". | |||
[[File: STM32STLinkUtilityChipSettings.png|thumb|center|400px|The warning will be fixed in the next steps.]] | |||
Next, click the open icon on the far right as shown. | |||
[[File:STM32STLinkUtilityOpenFile.png|thumb|center|400px|Click to open the file.]] | |||
Select the esc_fulldump139.bin file you downloaded earlier. | |||
[[File:STM32STLinkUtilityOpenFulldumpFile.png|thumb|center|400px|Click to open the esc_fulldump139.bin file you downloaded earlier.]] | |||
Click Target->Program & Verify or press CTRL + P. | |||
[[File:STM32STLinkUtilityProgramAndVerify.png|thumb|center|400px|Open the programming menu.]] | |||
Confirm one last time that the file you are flashing is the full dump and then press "Start". | |||
[[File:STM32STLinkUtilityStartProgramming139FullDump.png|thumb|center|400px|Match the settings and confirm the file before pressing start.]] | |||
The program will now program the chip with the full dump. | |||
Once it finishes check the console to make sure it was successful. | |||
[[File:STM32STLinkUtilitySuccessfulProgramming139FullDump.png|thumb|center|400px|Completely finished and successful programming.]] | |||
[[Category: Scooters]][[Category: Ninebot]][[Category: ESX]] | [[Category: Scooters]][[Category: Ninebot]][[Category: ESX]] |