blflash icon indicating copy to clipboard operation
blflash copied to clipboard

Question: Existing firmware

Open OevreFlataeker opened this issue 4 years ago • 4 comments

Does anyone have a copy of the Magichome Wifi LED controller's firmware based on BL602? I dumped mine using blflash but didn't notice that by default it is only dumping the 1st MB of memory and as far as I know that particular board has 2 MB... Appreciate a copy of the original firmware. Already investigated if it is somewhere available for download officially by the manufacturer but didn't find anything. Thank you!

OevreFlataeker avatar Jul 10 '21 11:07 OevreFlataeker

You can provide the dump range in the command line argument:

> blflash dump -h
Dump the whole flash to a file

USAGE:
    blflash.exe dump [OPTIONS] <output> --port <port> [ARGS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -b, --baud-rate <baud-rate>                    Flash baud rate [default: 1000000]
        --initial-baud-rate <initial-baud-rate>    Initial baud rate [default: 115200]
    -p, --port <port>                              Serial port

ARGS:
    <output>    Output file
    <start>     start address [default: 0]
    <end>       end address [default: 0x100000]

blflash dump -p COM1 dump.bin 0 0x200000

spacemeowx2 avatar Jul 10 '21 13:07 spacemeowx2

Thanks, I know this now, but I still need the original firmware :-( I might have forgot to say that after dumping I reflashed the device...

OevreFlataeker avatar Jul 10 '21 13:07 OevreFlataeker

Here is the original firmware dump.zip

I have more gray hair thanks to something that should be simple.

  1. Raspberry Pi can not do 2 000 000 baud by default, you need to switch uarts else you get garbage when opening a console. screen /dev/ttyAMA0 2000000

  2. Boot pin needs to be held onto V33 when the device boots to enable programming. (Not V+ else dead device)

  3. For some reason -flashing happens at a different baud ./blflash dump -b 230400 -p /dev/ttyAMA0 dump.bin 0 0x200000

ccoetzer avatar Sep 11 '21 15:09 ccoetzer

Thanks for the firmware! Yes, I realized that too, that CP2102 isn't capable of doing 2M, the FT232R dongles work well! Now I still have the problem, that when reflashing the ble_wifi_demo the board reset-loops as soon as Wifi is enabled... I can't get Wifi to work anymore with any of the examples. As if something got overwritten/erased that is needed for them...

OevreFlataeker avatar Sep 11 '21 19:09 OevreFlataeker