How to fix Error 22 and 23

User avatar
romano
Posts: 3
Joined: Thu Oct 03, 2019 10:59 am

How to fix Error 22 and 23

Postby romano Sun Oct 27, 2019 5:52 pm

Recently I erased the EEPROM of a BMS by mistake and then I was faced to a series of errors starting by Error 22.

Here is a quick "how to" in order to fix these errors. To be honest I simply applied a method suggest by Conejo on https://electro.club/forum/razborka_pro ... iaomi_M365

What you need :
- ST Link
- STVP only for Windows https://www.st.com/en/development-tools/stvp-stm32.html eventually you can try to use https://github.com/vdudouyt/stm8flash but beware of encrypted bin.
- Your serial (written on the battery cover)

Image

Step 1 :
  • Remove the BMS from the battery
  • Solder your ST-Link to the BMS. From Top to down : RESET, GND, SWIM and 3.3V
  • Plug you USB St-Link and open STVP using the following parameters:
    Hardware : ST-LINK, Port: USB, Programme mode: SWIM, Device: STM8L15xK6
  • Click on read all tabs
  • Go the DATA Memory TAB
  • At address 00001000, write AA AA for the 2 first columns and then click on Program Current Tab
That's it for now, unplug the st-link and put the BMS back on the battery, you can unplug Dupont wires from the ST-link
Power on the Ninebot ES. Now you should get an error 23. Here we start the 2nd step:

Step 2 :
  • Remove the BMS from the battery
  • Plug you USB St-Link and go back to STVP
  • Click on read Data Memory Tab, now you should see 5A 5A instead of AA AA
  • At address 00001020, input the serial number of the battery in hexa
  • At address 00001030, input 50 14 50 14. Actually it's the value of the capacity of the battery in Ah. Because Ninebot ES battery capacity is 5200 mAh, 5200 => 14 50 in Hexadecimal. As it follows LSB (least significant bit) we should input 50 14.
  • At address 00001060, we input 01 00 (which represents the status of the BMS at the current moment, valid config is 01 00
  • Click on program current tab.
Go back to the battery plug the BMS and power on the escooter. Everything should be fine now, you can go to the Battery menu in Ninebot app.

Image
Last edited by romano on Thu Dec 05, 2019 8:55 pm, edited 4 times in total.
Big things have small beginnings.
User avatar
Lothean
Site Admin
Posts: 142
Joined: Fri Mar 15, 2019 2:40 am
Location: France
Contact:

Re: How to fix Error 22 and 23

Postby Lothean Sun Oct 27, 2019 5:56 pm

Pinned!

Return to “Ninebot ES and E-series”

Who is online

Users browsing this forum: Bing [Bot] and 3 guests