How to reflash original firmware

342 views
Skip to first unread message

E M

unread,
Jul 30, 2019, 9:08:54 AM7/30/19
to cheali-charger
Hi

I have backuped my imax b6 original firmware with the command provided

avrdude.exe -patmega32 -cusbasp -Uflash:r:flash.bin:r -Ulfuse:r:lfuse.bin:r -Uhfuse:r:hfuse.bin:r -Ueeprom:r:eeprom.bin:r
avrdude.exe -patmega32 -cusbasp -Uflash:r:flash.hex:i -Ulfuse:r:lfuse.hex:i -Uhfuse:r:hfuse.hex:i -Ueeprom:r:eeprom.hex:i

i have these files available from above backup command.

eeprom.bin  
eeprom.hex
flash.bin
flash.hex
hfuse.bin
hfuse.hex
lfuse.bin
lfuse.hex

how can i restore these files back to the imax b6?

also how to get old caliberation values.


Regards 

diggit

unread,
Jul 30, 2019, 9:53:55 AM7/30/19
to cheali-charger
Hi,
just do:

avrdude.exe -patmega32 -cusbasp -Uflash:w:flash.hex -Ulfuse:w:lfuse.hex -Uhfuse:w:hfuse.hex -Ueeprom:w:eeprom.hex

ignore bin files.
This is gonna work only, if original FW was not locked. (flash.hex must not contain just increaing sequence of bytes)

All calibration data is tored in eeprom.hex, so it should be restores with command above. Again this only works if original FW was not locked...

Jst curious, Cheali FW did not work for you?

E M

unread,
Jul 30, 2019, 12:18:52 PM7/30/19
to cheali-charger
Thank you so much. first i have to find its locked or not right?

 Cheali firmware works really really fine but i have some doubt that my caliberation is not that good.

i'm checking some18650 batteries, i marked capacities with cheali firmware and now i want to go back to original fw + caberations came with to ccompare those numbers.

E M

unread,
Jul 30, 2019, 12:26:56 PM7/30/19
to cheali-charger

Capture.PNG


by looking at just this, how to find its locked or not?  


Regards

flash.hex

diggit

unread,
Jul 31, 2019, 12:51:14 PM7/31/19
to cheali-charger
Hi,
unfortunately flash was locked and your backup is useless. Calibration should be pretty easy. If you have any doubts or problems, just write here.

E M

unread,
Jul 31, 2019, 1:02:02 PM7/31/19
to cheali-charger
problem is that my multimeter's amp reading seems off, looks like first i should get a accurate multimeter.

E M

unread,
Jul 31, 2019, 1:06:12 PM7/31/19
to cheali-charger
also under load voltage reading seems off. multimeter shows 3.28V and when discharging imax b6 shows 3.09V

before start discharge voltage reading matches.

any idea why?


Regards

On Tuesday, July 30, 2019 at 6:38:54 PM UTC+5:30, E M wrote:
Reply all
Reply to author
Forward
0 new messages