Page 1 of 1

How to fix Error 22 and 23

Posted: Sun Oct 27, 2019 5:52 pm
by romano
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

Re: How to fix Error 22 and 23

Posted: Sun Oct 27, 2019 5:56 pm
by Lothean
Pinned!

Re: How to fix Error 22 and 23

Posted: Tue Dec 28, 2021 3:38 am
by patriciabrown
So great! I have fixed this, thank you. minecraft classic