@teastain
Thank you for your help.
But I doubt that the Bala2 source code (Bala2.ino) in the Github does not equal to preloaded software in Bala2fire product.
So first of all I need to extract the current binary content from Flash and EEPROM of Bala2fire, and save it to Windows file in case it will be necessary to restore the initial state in the future.
I investigated furthermore and I studied "esptool" can extract binary content from Flash memory (maybe also EEPROM) of M5Stack fire to Windows file, but I would like to know that the following process is correct or not for savIng and restoration full of binary content.
To read from 0x00000 to x400000 Flash memory content and
save it to Windows file (e.g. file name image4M.bin) by using
"esptool"
To write from 0x00000 to x400000 Flash memory content with
image4M.bin
Regarding 4M, I think initial Bala2fire uses at most 4M byte Flash for preloaded software.
Thank you in advance.
RuriObb