logo elektroda
logo elektroda
X
logo elektroda

Beken BK7231/BK7252 SPI flashing and recovery - new flasher tool and protocol specs

p.kaczmarek2 8919 276
ADVERTISEMENT
📢 Listen (AI):
  • ADVERTISEMENT
  • #272 21855433
    divadiow
    Level 38  
    DeDaMrAz wrote:
    Can you see what you can find from this dump


    what beyond the usual boot log and kv extraction are you after?

    Code: Text
    Log in, to see the code


    Code: JSON
    Log in, to see the code


    Code: Text
    Log in, to see the code
  • ADVERTISEMENT
  • #273 21855435
    p.kaczmarek2
    Moderator Smart Home
    @divadiow nice, but is it really more stable? Futhermore, I remember i tried to add retry on beken, and bk7231 chips didn't cooperate. It's different on RTL?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #275 21855439
    DeDaMrAz
    Level 22  
    divadiow wrote:
    [01-01 00:00:00 ty N][43ed][device_config_load.c:1100] product have measure , chip is 3 vol is 2200  res is 0


    What is this related to?

    On this device ADC pin is connected, but will have to investigate more, looks like an NTC/PTC is attached there.
  • #276 21855494
    divadiow
    Level 38  
    divadiow wrote:
    more like PGTool for timings and connection

    but it goes way beyond what LT/PGTool does for retries, checks, resiliency

    Added after 9 [hours] 20 [minutes]:

    to illustrate with some extremes:

    20cm cables, 1.5m baud
    animated. some retries, recoveries, completion
    Screenshot of BK7231 Easy UART Flasher with COM52 selected and status “Doing nothing..”

    30cm cables with join at 20cm, 1.5m baud.
    took 19 mins so no gif, but resultant file was identical to one above. speed because baud was auto dropped to 115200 after failures
    Code: Text
    Log in, to see the code
  • #277 21856291
    divadiow
    Level 38  
    insmod wrote:
    Z2 flasher, use dump words instead of dump bytes for faster read times?


    switched

    DumpBytes - r24 - Read
    ~2min 26s - 921600
    ~1min 36s - 3000000

    DumpWords - r25 - Read
    ~2min 6s - 921600
    ~1min 19s - 3000000

    14%-18% speed improvement

    Added after 8 [minutes]:

    r26 - fixed a little bug

    2min 2s - 921600 - no retries
    1min 18s- 3000000 - 7 retries

    Added after 15 [minutes]:

    got a working TR6260 waiting in the wings too

    Screenshot of BK7231 Easy UART Flasher showing “Write done” and a TR6260 flashing log
📢 Listen (AI):

Topic summary

BK7231GUIFlashTool version 98 and later introduces a new SPI flashing method for Beken BK7231/BK7252 devices using only a CH341 SPI programmer. This method enables recovery of bricked devices with overwritten bootloaders and functions as a general-purpose SPI flasher supporting various memory chips. The approach builds on previous SPI programming techniques using Python and Banana Pi, adapting them for CH341 hardware and C# implementation. Required hardware includes a CH341 programmer and soldering tools for wire attachment. Recent user feedback on version 98 highlights issues such as the tool requiring a COM port selection in SPI mode, lack of CH341A detection warnings, and missing ch341dll.dll errors. The developer has addressed the COM port requirement and plans to add the missing DLL, requesting further debugging via Visual Studio to handle CH341 initialization exceptions.
Summary generated by the language model.
ADVERTISEMENT