RP ✔️ MiDu-Flasher 🔌 ST-Link Downgrade & Unbrick

Die DRV247 (von /pro2/DRV/) mittels SHU zu flashen geht nicht, da kommt die Meldung "Update failed! Reason: Couldn't write scooter memory"
Und mit downG kann ich das Zip nicht öffnen weil: "invalid ZIP"

Wie kann ich hier vorgehen?
Die Files sind im neuen "zip v3" Format gepackt, damit kommt DownG nicht klar. Du kannst die.bin entpacken und mit dem SH-Zipper im v2 Format neu packen

oder lädst dir die DRV247 hier nochmal runter, die sollte auch im v2 Format sein:

Wahrscheinlicher ist aber, dass du auch an den Controller mit St-Link ran musst und dem Reflasher:
 
  • Hilfreich!
Reaktionen: LittlePsycho
Vielen tausend Dank VooDooShamane VooDooShamane!!!!!
Das BLE funktioniert nach "Write Flash" wieder (oder es geht immerhin wieder an :). Dafür habe ich SWDIO und SWCLK vorne gelötet (hinten waren mir die Pads zu klein) und GND und 5V hinten, wie auf dem Bild, welches du gepostet hast.

Mein Ziel ist es, SHFW zu flashen. Ich glaube, hierfür habe ich aber noch die falsche DRV (223) darauf.
Der Scooter piepst und lässt sich nicht mehr abschalten. Also eigentlich wie bevor ich dummerweise versucht habe die DRV auf das BLE zu flashen...
Die beiden Apps SHU und downG können den Scooter maximal temporär aktivieren.
In der offiziellen Xiaomi Home App lässt sich der Scooter nicht mehr koppeln (um ihn zu aktivieren), da kommt nach "Erfolgreich verbunden" und "Kriterien erfolgreich authentifiziert" nur noch "Koppelung konnte nicht durchgeführt werden(104,did={length = 20, bytes = 0x..."

Die DRV247 (von /pro2/DRV/) mittels SHU zu flashen geht nicht, da kommt die Meldung "Update failed! Reason: Couldn't write scooter memory"
Und mit downG kann ich das Zip nicht öffnen weil: "invalid ZIP"

Wie kann ich hier vorgehen?

Schon im Voraus vielen Dank für jegliche Hilfe.
Und Olli_69 Olli_69 hat noch vergessen zu erwähnen 😁😉.
Schmeiß die kack mi home app runter...
 
  • Hilfreich!
Reaktionen: Olli_69
Geil! Eine sehr verständliche Anleitung... Doch der Prozess an sich ist zum Einschüchtern. Ich würde mich sofort dran machen um meinen Mi3 etwas zu Tunen... leider klappt das nicht mehr so einfach. Ich suche erstmal einen einfacheren Weg... wie ein altes Dashboard auszuwechseln, falls möglich... sollte jemand von euch ein tunebares Dashboard liegen, ich kaufs euch ab... sonnst bestelle ich gleich den Chip. Ohh... meinen PC muss ich auch noch richten oder die PCs meine Fam. Nutzen. 🙄 LG aus Kassel.
 
mit Chip hast Du bei weitem nicht die Möglichkeiten wie mit zB SHU/SHFW etc.
Und wenn Du Pech hast, flasht der Chip Dir unbewußt eine eigene Firmware und dann hast Du hinterher evtl ganz andere Probleme, wenn der mal Probleme macht oder wieder raus soll.

Wenn Du es Dir nicht selber zutraust, dann findest Du hier Hilfe
 
  • Hilfreich!
Reaktionen: VooDooShamane
Das was Roadcruiser sagt.
Hätte sogar noch ein Dashboard da wenn du eins brauchst Kain_78 Kain_78 .
 
  • Hilfreich!
Reaktionen: Rodcruiser
Hallo,

hatte gestern meinen Xiamo Pro2 mit deinen MIDuFlasher geflasht das ganze mit Erfolg.
Heute wollte ich das ganze nochmal durchführen ohne spoofing. Leider ist wurde der Flashvorgang nicht beendet, nach den 5 min schaltete sich der Scooter ab.
Dashboard war ohne Funktion jetzt hab ich mir 5V zum ST-Link gelegt und mit den MiDu-Flasher nochmals das Dashboard geflasht mit der WriteFlash Funktion - leider kamm wieder eine Fehlermeldung.

Log Datei liegt auch bei

Beste Grüße

Screenshot 2024-04-22 215432.webp




Code:
MIDUMAIN 22-04-2024_21-44-00 device=Dashboard  action=Write Flash scooter=Pro2 chip=N51822x
MIDUMAIN working dir=C:\Users\StefaN\Downloads\MiDu-Flasher_v1.0.50000\MiDu-Flasher_v1.0.5\Resource\
OCDINIT 22-04-2024_21-44-00
Open On-Chip Debugger 0.11.0+dev-00626-g92c4e634d (2022-03-19-11:44)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 1000 kHz
Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.246684
Error: init mode failed (unable to connect to the target)


ERROR :OCDINIT 22-04-2024_21-44-00 no Connection, errors=1 speed=1000
 
OCDINIT 22-04-2024_21-44-05
Open On-Chip Debugger 0.11.0+dev-00626-g92c4e634d (2022-03-19-11:44)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 1000 kHz
Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.245093
Error: init mode failed (unable to connect to the target)


ERROR :OCDINIT 22-04-2024_21-44-06 no Connection, errors=2 speed=1000
 
OCDINIT 22-04-2024_21-44-11
Open On-Chip Debugger 0.11.0+dev-00626-g92c4e634d (2022-03-19-11:44)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 1000 kHz
Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.241910
Error: init mode failed (unable to connect to the target)


ERROR :OCDINIT 22-04-2024_21-44-11 no Connection, errors=3 speed=1000
 
OCDINIT 22-04-2024_21-44-16
Open On-Chip Debugger 0.11.0+dev-00626-g92c4e634d (2022-03-19-11:44)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 1000 kHz
Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.241910
Error: init mode failed (unable to connect to the target)


ERROR :OCDINIT 22-04-2024_21-44-16 no Connection, errors=4 speed=1000
 
OCDINIT 22-04-2024_21-44-21
Open On-Chip Debugger 0.11.0+dev-00626-g92c4e634d (2022-03-19-11:44)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 1000 kHz
Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.245093
Error: init mode failed (unable to connect to the target)


ERROR :OCDINIT 22-04-2024_21-44-22 no Connection, errors=5 speed=1000
 
OCDINIT 22-04-2024_21-44-27
Open On-Chip Debugger 0.11.0+dev-00626-g92c4e634d (2022-03-19-11:44)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 400 kHz
Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.245093
Info : [nrf51.cpu] Cortex-M0 r0p0 processor detected
Info : [nrf51.cpu] target has 4 breakpoints, 2 watchpoints
Info : starting gdb server for nrf51.cpu on 3333
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x000006d0 msp: 0x000007c0
OCDERASE 22-04-2024_21-44-28
Open On-Chip Debugger 0.11.0+dev-00626-g92c4e634d (2022-03-19-11:44)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 400 kHz
Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.249867
Info : [nrf51.cpu] Cortex-M0 r0p0 processor detected
Info : [nrf51.cpu] target has 4 breakpoints, 2 watchpoints
Info : starting gdb server for nrf51.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : nRF51822-xxxx(build code: xx) 256kB Flash, 32kB RAM
Info : Mass erase completed.
Info : A reset or power cycle is required if the flash was protected before.
OCDINIT 22-04-2024_21-44-28
Open On-Chip Debugger 0.11.0+dev-00626-g92c4e634d (2022-03-19-11:44)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 400 kHz
Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.251459
Info : [nrf51.cpu] Cortex-M0 r0p0 processor detected
Info : [nrf51.cpu] target has 4 breakpoints, 2 watchpoints
Info : starting gdb server for nrf51.cpu on 3333
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0xfffffffe msp: 0xfffffffc
OCDWRITE 22-04-2024_21-44-29
Open On-Chip Debugger 0.11.0+dev-00626-g92c4e634d (2022-03-19-11:44)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 400 kHz
Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.251459
Info : [nrf51.cpu] Cortex-M0 r0p0 processor detected
Info : [nrf51.cpu] target has 4 breakpoints, 2 watchpoints
Info : starting gdb server for nrf51.cpu on 3333
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0xfffffffe msp: 0xfffffffc
** Programming Started **
Info : nRF51822-xxxx(build code: xx) 256kB Flash, 32kB RAM
Info : Flash write discontinued at 0x000007c0, next section at 0x00001000
Warn : Adding extra erase range, 0x000007c0 .. 0x000007ff
Warn : Adding extra erase range, 0x0001afe0 .. 0x0001afff
** Programming Finished **
** Verify Started **
** Verified OK **
OCDINIT 22-04-2024_21-44-39
Open On-Chip Debugger 0.11.0+dev-00626-g92c4e634d (2022-03-19-11:44)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 400 kHz
Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.245093
Info : [nrf51.cpu] Cortex-M0 r0p0 processor detected
Info : [nrf51.cpu] target has 4 breakpoints, 2 watchpoints
Info : starting gdb server for nrf51.cpu on 3333
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x000006d0 msp: 0x000007c0
OCDWRITE 22-04-2024_21-44-40
Open On-Chip Debugger 0.11.0+dev-00626-g92c4e634d (2022-03-19-11:44)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 400 kHz
Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.246684
Info : [nrf51.cpu] Cortex-M0 r0p0 processor detected
Info : [nrf51.cpu] target has 4 breakpoints, 2 watchpoints
Info : starting gdb server for nrf51.cpu on 3333
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x000006d0 msp: 0x000007c0
** Programming Started **
Info : nRF51822-xxxx(build code: xx) 256kB Flash, 32kB RAM
Warn : Adding extra erase range, 0x00028ab0 .. 0x00028bff
** Programming Finished **
** Verify Started **
** Verified OK **
OCDINIT 22-04-2024_21-44-45
Open On-Chip Debugger 0.11.0+dev-00626-g92c4e634d (2022-03-19-11:44)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 400 kHz
Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.240318
Info : [nrf51.cpu] Cortex-M0 r0p0 processor detected
Info : [nrf51.cpu] target has 4 breakpoints, 2 watchpoints
Info : starting gdb server for nrf51.cpu on 3333
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x000006d0 msp: 0x000007c0
OCDWRITE 22-04-2024_21-44-46
Open On-Chip Debugger 0.11.0+dev-00626-g92c4e634d (2022-03-19-11:44)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 400 kHz
Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.249867
Info : [nrf51.cpu] Cortex-M0 r0p0 processor detected
Info : [nrf51.cpu] target has 4 breakpoints, 2 watchpoints
Info : starting gdb server for nrf51.cpu on 3333
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x000006d0 msp: 0x000007c0
** Programming Started **
Info : nRF51822-xxxx(build code: xx) 256kB Flash, 32kB RAM
** Programming Finished **
** Verify Started **
** Verified OK **
OCDINIT 22-04-2024_21-44-48
Open On-Chip Debugger 0.11.0+dev-00626-g92c4e634d (2022-03-19-11:44)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 400 kHz
Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.248276
Info : [nrf51.cpu] Cortex-M0 r0p0 processor detected
Info : [nrf51.cpu] target has 4 breakpoints, 2 watchpoints
Info : starting gdb server for nrf51.cpu on 3333
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x000006d0 msp: 0x000007c0
OCDWRITE 22-04-2024_21-44-48
Open On-Chip Debugger 0.11.0+dev-00626-g92c4e634d (2022-03-19-11:44)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 400 kHz
Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.251459
Info : [nrf51.cpu] Cortex-M0 r0p0 processor detected
Info : [nrf51.cpu] target has 4 breakpoints, 2 watchpoints
Info : starting gdb server for nrf51.cpu on 3333
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x000006d0 msp: 0x000007c0
** Programming Started **
Info : nRF51822-xxxx(build code: xx) 256kB Flash, 32kB RAM
Warn : Adding extra erase range, 0x10001020 .. 0x100013ff
** Programming Finished **
** Verify Started **
** Verified OK **
OCDRESET 22-04-2024_21-44-48
Open On-Chip Debugger 0.11.0+dev-00626-g92c4e634d (2022-03-19-11:44)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 400 kHz
Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.249867
Info : [nrf51.cpu] Cortex-M0 r0p0 processor detected
Info : [nrf51.cpu] target has 4 breakpoints, 2 watchpoints
Info : starting gdb server for nrf51.cpu on 3333
Info : Listening on port 3333 for gdb connections

ERROR :OCDRESET 22-04-2024_21-44-49 no Connection, errors=6 speed=400
 
OCDRESET 22-04-2024_21-44-54
Open On-Chip Debugger 0.11.0+dev-00626-g92c4e634d (2022-03-19-11:44)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : clock speed 400 kHz
Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.243501
Info : [nrf51.cpu] Cortex-M0 r0p0 processor detected
Info : [nrf51.cpu] target has 4 breakpoints, 2 watchpoints
Info : starting gdb server for nrf51.cpu on 3333
Info : Listening on port 3333 for gdb connections
"C:\Users\StefaN\Downloads\MiDu-Flasher_v1.0.50000\MiDu-Flasher_v1.0.5\Resource\MiDu-Flasher.bat" 22-04-2024_21-44-55
 
1713819683378.webp


Auf dem Screenshot sowie in der Log kann man sehen das es funktioniert hat.
MiDu-Flasher meldet das der Reset command nach dem ersten Fehlschlag erfolgreich erneut gesendet wurde.
Es ist also so wie es dort steht.
Wenn das Dashboard am Ende 1x gepiept hat, ist alles gut.
Einfach mal einbauen und testen.
 
  • Hilfreich!
Reaktionen: Stefan3022
Scooter lässt sich nicht einschalten nur mit der 5V Stromversorgung vom ST-Link. Rücklicht blinkt ausschalten des Scooters.
Verbindung über Bluetooth SHU kann auch nicht aufgebaut werden.


Beste Grüße
 
  • Hilfreich!
Reaktionen: Cyber_Wheels_Wro