Custom Firmware / Patches for clone iMax B6 charger (CMS32L051)
https://github.com/DSchndr/charge-me-up
In order to get SWD access, you have to dismantle the device.
To do that remove the 4 extremely short screws from one side, then pop the button extensions out with a flat head screwdriver.
Once you have the device in front of you, you will see a obvious unpopulated pinheader on top which has a box drawn around it.
The pinout is: 5v gnd clk dio gnd p51 p50
Connect an STLink 1:1 to it. Use 3.3V instead of 5V and DO NOT PLUG IN POWER
Get openocd and read the device memory with
.\openocd.exe -f OpenOCD-20231002-0.12.0\share\openocd\scripts\interface\stlink-dap.cfg -f openocd\dump_flash.cfg
The main flash contents and dataflash will be in their files respectively.
Check those files before continuing.
ACHTUNG, be sure as heck that you have a working dump.
.\openocd.exe -f OpenOCD-20231002-0.12.0\share\openocd\scripts\interface\stlink-dap.cfg -f openocd\erase_flash.cfg
Make sure you erased the flash, as to why: find it out and learn something :)
Writes flash_main.bin
.\openocd.exe -f OpenOCD-20231002-0.12.0\share\openocd\scripts\interface\stlink-dap.cfg -f openocd\write_flash.cfg
There is no calibration menu in the original firmware.
HeHa has already done that here https://www-user.tu-chemnitz.de/~heha/basteln/Konsumg%C3%BCter/Ladeger%C3%A4te/b6-cms.zip/Hauptplatine.wmf?as=SVG
--
You received this message because you are subscribed to the Google Groups "cheali-charger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cheali-charge...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cheali-charger/8b2e1942-d3e6-4181-9920-c469ae97a677n%40googlegroups.com.
--
To view this discussion on the web visit https://groups.google.com/d/msgid/cheali-charger/28f54b44-e0d0-4084-acd0-c100238858ben%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cheali-charger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cheali-charge...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cheali-charger/15d5044e-da82-4390-95b7-d1df6c7217f1n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "cheali-charger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cheali-charge...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cheali-charger/d350897a-cc9c-4583-85c2-73854be15dcbn%40googlegroups.com.