🛴Xiaomi M365🛴 DRV firmware repair using ST-Link
Вставка
- Опубліковано 28 кві 2020
- Support me making more videos. Any small amount makes a difference.
PayPal.me/UngureanuVictor
===========
As you may know, there are three electronic modules inside the Xiaomi M365 electric scooter: BLE (bluetooth - in the handlebars), DRV (motor controller or ESC, located inside the deck) and the BMS (battery management system, also inside the deck, part of the battery assembly).
Each of these modules have their own firmware. Usually, the firmware is flashed on the module using an app like Xiaomi Mi Home, M365 DownG or XiaoFlasher, but sometimes this is not possible and the only solution is to use an ST-Link programmer.
This video shows how to flash the DRV firmware, but I also have a video about the BLE module: • 🛴 Xiaomi M365 🛴 firmwa...
You will need:
-an ST-Link programmer: s.click.aliexpress.com/e/_dXm...
-a soldering iron: s.click.aliexpress.com/e/_dTI...
-pin header: s.click.aliexpress.com/e/_dZZ...
-jumper wire: s.click.aliexpress.com/e/_dVx...
Also, you need to download this software: 1drv.ms/u/s!Aqs8w_gChI2mif5el...
Here's the general process:
the firmware has knowledge of the scooter's serial number, so in order to fully restore it, you'll need it. It is made up of a 5-digit and 8-digit number separated by a slash (XXXXX/XXXXXXXX). Find it on a small label on the side under the footboard
locate holes for pins G, C, and D towards the middle of the mainboard. Solder a pin into each so that you can plug in the cables
look at your ST Link dongle. On it, you'll see a layout of what each pin does
With the Dupont cabling bundled with your ST Link, connect these ST Link pins to the pins on your ESC:
SWCLK to C
SWDIO to D
GND to G
5.0V to the pin labeled 5 on the 4-pin BLE header, in the corner of the mainboard
plug your ST Link into USB. You should see your board come to life, and probably start flashing a green light
launch m365rec.exe and step through the process, entering in your scooter's serial number. If it doesn't find your dongle, you may have to install the STM driver which is bundled in the .rar.
the restoration takes some time. Once complete, plug everything in before reassembling your scooter and turn it on. Verify it was successful by squeezing the brake lever, which should blink your tail light. If that works, you should be good to reassemble and ride.
THANK YOU!!
My first experience with installing a PRO panel ended up flashing the controller with basic firmware via ST-LINK)))))))
Thanks! :)
yes. good manual.
Great video! What version is the file you uploaded? I want to downgrade the firmware because updated it bricked it and apparently cruise control got removed. Thanks!
You have save me!!! Thank you for your work!!!
Great video Thank you! I've seen in other videos that this proces is done directly in the dashboard instead on in this motherboard. Will I still have to do it in the motherboard (like here) or it's also possible in the dashboard, I find it more accessible than in the motheboard.
I have a m365 model that was bricked installing the wrong firmware.
Thanks a lot 👌
Happy to help
impressive
Great tutorial. Also I have an advice before soldering - discharge capacitor first
how to do that?
@@BlizzJezz Unplug battery connector and short + and - on the disconnected board.
I need help with your huge knology 🙏🏾 I just got an new mi pro 2 (04/2023 Model with v3.3 controller drv252 ble158), tried flash with st link and all, but got bricked (error 35/27) 😪, so using the st link I restored the drv and s/n to the factory default, ok worked normally again. My doubt is, if I order a kit (Dashboard and controller v3.0 drv155 ble129) I will have to change the BMS controller as well? Or just install the new dash and mb?
Hi i have the exact same problem as you. Can it be fix if i change the whole controller board? Hoping for your help and reply tnx
Hi, i want to try to patch a custom Gonka 155 pro firmware with st-link to my M365 Pro. My question is can i patch any custome.bin file i like, even a custom that i will make, or only a specific rec.bin file that will only downgrade my actual firmware?
Will this work on a Xiaomi 1s as well? Same program? thanks for your help.
Hi, I appreciate your effort for making this tutorial, it's really useful. I have a question about the application. I have a M365 Pro and I screwed up the DRV, it's version became to 2.0.0 from 1.5.5, now I have the display with the percentage of the battery but the accelerator throttle doesn't work. I bought an ST-Link but I see that your shared application's name is M365 so I assume it's only for the normal M365 models, right? Where can I get the compatible app and *.bin file for the M365 Pro (Mi Scooter Pro - EU region)? Thank you in advance.
Hey did u find a solution for it? i have the same problem and dont know what the fuck to do
@@sanderroosimae5623 Hey did u find a solution for it? i have the same problem and dont know what the fuck to do
Hi I have a question. Will this procedure work with esc from xiaomi scooter pro 2 I did update drv(esc) to 2.5.2 and I can't change it via BLE. Will the rec.bin with the stlink connected to the esc change my soft to the older one (will it replace the 2.5.2 (st32) version for the older one?
I have the clone controller of m365 (red one) and I want to flash via St link. But it does not work?
Would this work on a clone board if I don't know what firmware is already on it?
It normal flashing fails and your bms version shows as 0.0.0. Is there no alternative fix for this?
Am și eu o problema similară am incercat update de firmware și am blocat scooterul, butonul de power nu mai răspunde la nicio comanda. Oare se poate reseta la un service?
Question: were you running a custom firmware before you tried the update with the latest one from Mihome app?
Yes, I was running a custom firmware.
@@nextor11 do you the firmware upgrade went wrong due to this or due to the m365 pro dashboard?
None of these. I think that the Mi Home app or my phone had a glitch.
Victor Ungureanu no the new firmware update bricks flashed firmware and if stock limits speed to less that 15mph
Victor Ungureanu great video tho
will this work on xiaomi eletric scooter 3? i have ble blocked since last xiaomi update...
Hello i have the same problem with my m365 did the same as shown in the video after that conected everything and its still the same
MY DRV is bricked. CanI also solder the pins to BLE, I have a spare BLE
Hi i have sco_driver_v3.0 and i dont know where Connect st-link can you help me please?? Thanks
when i connect the st-link to the pc i get only the red led from the esc and not the green. trying to flash i get a "target not found" error. any ideas? thank you
i've same problem.. I struggle with this and im still waiting my st-link and i will try to flash it. I cant connect anything and my power button is not working or any else control and only way to shutdown this is to unplug the battery. Any ideas how to solve target not found errror?
what to do if my scooter it's S1 / PRO1 / PRO2 ? how did you pick up the DRV for the controller ?
I don't know about the newer models, I don't have any experience with them.
Hello Victor, couldn't solve my issue via BT, so was forced to grow some balls and I will give it a go to this method! :)
Just before going ahead and order ST-link and etc, I want to ask you if you know if the DRV/ESC board is the same for the pro and the classic?
They are not exactly the same, but they are interchangeable.
Salut, dupa ce conectez totul imi da "bin not found"!. am incercat sa pun folderul in c sa fie path-ul mai scurt. Nimic.
Is it the same on the xioami pro 2
Hello, I did the instruction one by one on the site, as you said, I also installed the software, there was no problem so far. I waited for the serial number, I took care of everything and it's done. Then I plugged it into the scooter but the screen did not come on, I disconnected the connections again and connected the St-link again for a minute or two, the computer was idle and I was looking for the serial number of the scooter at that time, and the lights on the motherboard went out and the computer got an error saying power was loaded in the USB point. I disconnected it, but the problem continued, so I clicked on the alert and there was an option called reset, I clicked on it. I restarted the computer, I tried again, but the computer does not see St-link works fine, at the same time, there is no problem with the card. Whatever I need to do I would be glad if you could help.
When I plug in the C, D, G cables, the usb continues, but when the 5V cable is plugged in, the usb connection is broken.
I guess there is a short somewhere. I don't know how to help you.
Which file works with mi xiaomi essential scooter?
Buna seara! Si dashboardul original de pro e compatibil cu m365 clasic sau doar clona?
Și cel original e compatibil
Hello (salut) i havce a problkem where i find a pro version software?
salut! ma poti ajuta si pe mine te rog frumos. am incercat sa modific software ul (la un xiaomi pro 2), iar pe la 60% trotineta (dashboard ul) s a deconectat si incepuse sa bipaie pana s a facut 100%. acm dashboard ul arata numai ca e in drive si 0 hm/h (el numai primeste comanda de la nimic, adica acceleraite, frana, butonul de pe el, baterie, etc)
Hi, those 4 color kabels does they matter which one to put or just need replace them in right place?
The color of the wires doesn't matter. All that matters is to connect both ends of the wires to the right places.
@@nextor11 and work this methode whit PRO one? Because i see in the comments that methode it doesnt work whit m365 pro?
This method will write a classic drv firmware. You will then have to flash a Pro drv firmware through bluetooth, but I'm not sure if you can do that using the Pro dashboard.
@@nextor11 i think better bring the scooter some stepclub or a shop they will know it better how to make.. I dont wanna have trouble anymore
After starting m365rec.exe I got a 'bin not found' error. Both paths seem to be correct. The bin path was filled in by the program. When unchecking the checksum option, the 'bin not found' error no longer shows (?) but now I first get a 'target found' message, followed by 'flashing failed'. Any idea where to look next? Model is a standard M365.
Try to extract the utility and the bin to a shorter path, something like c:\temp, maybe this will work.
Yes, using a shorter path helped. I was able to reset the DRV module like I did with the BLE module previously. Firmware is now at DRV=138, BLE=072, BMS=115. Reason for resetting was that after replacing the BMS and upgrading to version 152, I got error 22 complaining about a bad BMS serial number. I was hoping that resetting the firmware would help, bur error 22 still remains.
program does not answer at the moment i press start? plz Help!!
Hi Mister
I have bricked my Xiaomi 1s meest model 2021 and followed your video but i don't have the tree c d g pins on the new motherbord...do you know a solution to connect the St link V2
Thanks alot
I don't know about 1S
Min doesn't have either
I’ve got a m365 w/m365 pro display when I turn it on it only stays on 5-10 seconds before turning off. Check version says only 10213 BMS & 10412 BLE. Any ideas?
The BMS firmware version is strange. Also strange is that it doesn't report any drv version. Does it show any error code on the dashboard? Does the rear light flashes in any particular pattern?
La fel am patit eu cu dashul acela de pro, nu mai afisa nimic, dar puteam sa opresc/pornesc trotineta.. insa nu mergea acceleratia, lumina, nimic. Am pus dashul clasic si ea merge, dar nu pot aprinde farul, nu afiseaza bateria si nu mai tiuie cand o opresc sau activez cruise controlul. Deci nu cred ca s-a ars dashul de pro. Am comandat st-linkul.. astept sa vina.
La mine nici nu pornește și știu sigur ca nu dashboardul e de vina. Dashboardul clasic la fel se comporta. Plus ca, după rescrierea firmwareului cu ST-Link, totul a revenit la normal.
hey, any advice how to get scooter back to factory reset? app does nothing. i want my original settings back as im having bad brake issue. flew my friend over the top. once reset then ill try another firmware maybe
To get back to factory firmware you only have to upgrade using the Xiaomi Mi Home app.
@@nextor11 yeah still no updates. has always said uptodate
Then you can flash a "custom" firmware with no parameters modified. This will give you default factory settings.
@@nextor11 ty just press default and save
Hi i hage brand new battery in acooter when i press power button there is no life no lights on dash or main board .. any ideas ?
Hard to say, but I would first check if there is 5 volts and battery voltage coming to those 4 solder points bellow the power button.
Hi. I have installed a new motherboard and the Batt is showing RED and only the D or Echo is available
Can you help me
There is a firmware mismatch. You probably have a Pro dashboard and the main board has a classic firmware. You would need to flash a Pro DRV firmware.
I have a basic Xiaomi M365 standard model which I had flashed with CFW200, 073, 126. It was working fine along with my four others when it suddenly stopped working, started beeping with brake light flashing and I cannot shut it off. I have disconnected all parts, changed main board, the control dashboard, discharged battery and recharged fully, and tried numerous times to reflash. I am stuck at the Check Version where it constantly tells me that the version is unknown. Once I got an error code 10, but I have no other info. at this point. I don't have an ST-link cable, and am next conosidering changing out the motor/front wheel. Please help me resolve this so that I may rejoin my family scootering. Mine is the only one not functioning at the present and I really have no idea what caused the malfunction or how to repair it. Thanks!
Todd
The best advice I can give you is to buy an ST-Link.
Hi sir i have m365 pro bricked scooter. Is that same process or do i need another program to download and run in my PC after installing the STlink in my board. Thanks
The steps would be the same for the Pro, but I don't have a suitable file and I don't know how to generate one.
Nextor yeah sir I saw someone here and tried ur method to his pro but he said it didn’t work that’s why im so desperate how this thing will work for Pro 🥺
You can use my method, but it will flash a classic drv firmware to your Pro drv. Then you would need a classic ble module to flash a Pro firmware using M365_downG.
Hello, I have followed your guide unfortunatelly even if i used ST Link it still seems to be bricked. Also I can se throttle error 14 in downG. Any ideas what might be wrong? Update of the scooter through m365rec seemed to go well.
That's a problem with the throttle. Maybe replacing it will fix the issue as I've replaced mine because of an error 14 code in the past, but it works sweet now
@@itzdeniedbeastmode9 I just sent it to the service last week. We will see what they say. Basically, it was bricked since then
@@pawelrybczynski1065 Hello, can you share diagnosis from service ?
@D. G. i picked it up last week, basically I bricked my "pro" motherboard on regulqr m365. What service did is replacing main board(the one with button) for standard one and installed new soft +10 km/h. Since then I rode it once, worked :D
Hello, can i enter random numbers for Model + Serial field? Does it works for non-original DRV from China?
No, you have to use the correct serial. Yes, it should work with most China clones
@@nextor11 thank you, what will happen if I enter serial number from different scooter? For example I have 10 DRV and I want to recover the firmware on them, can I enter on all 10 DRVs same serial number?
They will only work when paired with the order components having the same serial number
@@nextor11 when I replace damaged controller with new one - original or clone, it is working without to enter serial number anywhere, so what is the difference installing new controller or flash the old one?
Probably the new controller has a different firmware compared to the one that you are flashing using ST-LINK.
Hi , does this method work for xiaomi pro 2 with ESC252 installed on it by a update ?
I don't know
@@nextor11 ok i will try and awnser here
It works. But with scooterhacking reflasher 1.3
Hello Sir, can I use this process for Xiaomi M365 PRO2?? Thx, Marton
Sikerült esetleg választ kapnod a kérdésedre / megoldani a problémát? :D
Hi, congratulations for the video.
I have a problem: the m365rec file does not start?
What do you mean? Does it give an error?
@@nextor11 It seems to be a compatibility problem, because with other PCs it starts
@@nextor11 a question:
"LA PATH TO ST-LINK_CLI.EXE"
in the m365rec program where are you going to get it from?
That path is the path where you install the st-link utility
@@nextor11 Ok found the file path.
What exactly is the file to be inserted called?
I built my scooter out of seperate parts so now that it is bricked I cannot connect to the mi home app so I cannot find the boards serial number there for i canmot use this method. Can you please let me know if ypu know of any other way I can find my serial number to my board
Isn't it written on a sticker on the frame?
If not, I think you can just try to use one from a new scooter from a store :))
Salutare! Am aceeasi problema cu un Xiaomi M365 pro, ma poti ajuta cumva cu reparatia contra cost?
Salut. Nu te pot ajuta din lipsa de timp, dar găsești pe Olx baieti care repara trotinete si care te pot ajuta.
@@nextor11 Multumesc mult! Am gasit pe cineva pe Olx. Important este sa se rezolve. Foarte bun tutorialul!! 👍👍
Can i remove the pins at the end of the whole process?
Sure
Hallo Dear i try ti flash my m365pro ,but someting go wrong , it doesent work anymore same like your video , the questione its your method work for the m365pro? too ,please help me
This tutorial is not for the Pro scooter. In theory it should work for the Pro, but I don't have the right firmware file for the Pro.
Nextor do you know where I can find ?
No
Hello Victor do you know rks g48 scooter ?
Hi Zed. Never heard of this scooter. Is it similar to the Xiaomi M365?
@@nextor11 yes almost similar
Sir I flashed a xiaogen with different serial number and now it's not working can't downgrade from drv 200 pls help me
I have same problem, do you repaired it?
@Maine Forever18
I only saw your comment now. How can I help you more than the video does?
I had the same issue, you need to input the same serial number into Xiaogen and flash it twice again, I thought I was really stuck on this and took me so lone to realise it was the serial number that was a problem
is this solved?
will this work with version 3 board
I think it does, but I'm not sure.
Hi
I’ve just replaced both motherboard and battery on pro 2 . It’s now giving me error code 35.
How do I pair new motherboard
Thanks
Same process for the M365 Pro ?
Well, it would be the same if we would have the right firmware to flash for the Pro.
I guess you could flash a classic drv firmware and then try to flash the Pro firmware using M365_downG, but this might not work with the Pro dashboard.
Thank you very much for your answer. I will try and hope it will work. I’ve try the method on your video for the Pro but it didn’t work. The backlight is still flashing. When I’ve checked on DownG, the scooter is now firmware 1.3.4 and the name of the scooter is M365 instead of M365 Pro. I think I need to find the right rec.bin file to install the right one. What do you think ?
Have you tried to flash 1.5.5 using DownG?
Thats a good idea ! I will try and let you know if it’s working
heeeeeelp code error 35 im stcuk bro after installing cfw
Hello sir! So, i installed a new dashboard M365Pro, i added my scooter in Mi Home but is not possible to update firmware. Please help me? PS: SUNT ROMAN!
Pe un M365 clasic ai instalat dashboard de Pro?
Nextor Da. Lasa-mi in privat un mesaj cu pagina de FaceBook, Wapp eventual si iti explic exact ce si cum. Eventual contra-cost facem daca ma poti ajuta bineinteles si ai timp. Momentan sunt la munca!
Înainte de a pune dashboardul de Pro trebuie scris firmware de Pro pt drv.
Nextor Da dar nu imi da voie. Pentru ca inainte de a face acest lucru am bagat prin vechiul display tot de pro un firmware tot asa de la cine se pricepe si sa brick-uit. Nu mi-a scris tot firmware-ul si a blocat display-ul ala vechi. Cum e si la asta dar cu display-ul ala vechi tot de pro nu puteam sa o adaug in Mi Home ca imi cerea sa apas pe buton-ul display-ului. La asta nu cere sa apas. Am incercat sa intru cu M365 Tools cu DownG dar trebuie mai intai dupa conectatea trotinetei in DownG sa ii verific versiunea si nu merge. Nu imi apare nici-o versiune. Nici macar la Bluethoot nu imi apare. Totul e 0. Eu zic ca e din controller dar problema e ca nu am ST Link si toate celelalte unelte.
Nextor In Xiaomi se conecteaza dar altceva nu pot face cum ar fi sa vad cata baterie mai are trotineta, cati km am mers cu ea.. nu merge sa o opresc de la buton decat din borne.
Îmi dă target not found. Am pus firele ok. Am văzut că și altii au pățit asa
Eu am întâlnit problema asta la ble de M365 clasic, dar la drv nu am experienta decât cu al meu.
Ce pot sa sugerez este sa schimbi swclk și swdio între ele și sa încerci din nou.
Pot sa te intreb ce face acest ST Link reseteaza firmware la ce versine?
La 1.3.4. După care pui ce firmware vrei tu prin bluetooth.
@@nextor11 Mulțumesc
are you romanian?
Da
I ve got a pro and it bricked
Is my odometer after this on 0km??._.
Yes, if I remember correctly the odometer is reset to zero, but the number of battery charge cycles is not.
@@nextor11 ah oki Thank U😊
Salut, vezi ca sunt niste baieti ce iti folosesc videoul :) - ua-cam.com/video/-bZeOAou5w0/v-deo.html - macar daca ar fi pus sursa.
Merci ca mi-ai spus. Nu m-aș fi așteptat la asta.
Dă-le un report dacă vrei
@@nextor11 o sa le dau ... Macar daca te treceau ca și sursa. După voce mi-am dat seama.
Acel video nu mai este disponibil. L-am raportat celor de la UA-cam și l-au blocat.
tanks.send you little money to paypall
That's so kind of you, thanks!
You are the only one who did this :).
@@nextor11 it help me to unbrick my scooter.real mess whit deivers.one for bms,one for bt,one info is on bms,some info on controller..
@@nextor11 hi.after flasing firmware whit bin you provided my rear light is not working.i have m365 classic.do u have idea what it is?
Not working at all, not even when you apply the brake?
@@nextor11 yes.its happened after flashing.realy i don't care as long as my scooter works.im running esc138 ble73 bms 115
How to download m365rec.exe
Start by reading the video description
Nextor but itry to download but error
The link is good, I can download it. What error do you get?
Nextor i mean download the st-link utility then the m365rec.exe is here
I don't understand your last reply. There is only one download link in the video description and it is working fine.