logo elektroda
logo elektroda
X
logo elektroda

[Solved] [BK7238] How to fix FlashWrite4K bad value and sector 0x1000 failed?

sega66 222 2
ADVERTISEMENT
  • Need exact flashing steps and board markings

    #1 21924360
    sega66
    Level 2  
    Posts: 2
    Recently, ESPhome added support for BK7238 chips and I tried to flash the chip. The firmware failed and now with the native VK7238 firmware using BK7231GUIFlashTool, a message appears:
    0x00...CheckRespond_FlashWrite4K: bad value returned?
    0x1000... Writing sector 0x1000 failed!
    Writing file data to chip failed.
    Can this be fixed?
    What is the exact device brand/model and the exact chip/module marking on the board? Is it definitely BK7238 and not BK7231N/T or another variant?
    BK7238
    What exact flashing steps/settings did you use: BK7231GUIFlashTool version, firmware file/source, baud rate, UART adapter voltage, wiring, power supply method, and whether you made a full flash backup before flashing?
    Everything is standard, I've flashed it many times already.
  • ADVERTISEMENT
  • #2 21924541
    divadiow
    Level 38  
    Posts: 5174
    Help: 443
    Rate: 908
    kinda feels familiar this and I think the fix was using BKFIL to erase first. Give it a try?

    https://dl.bekencorp.com/tools/bkfil/v4

    maybe do a read of the whole chip first - does it succeed?
  • #3 21924946
    sega66
    Level 2  
    Posts: 2
    I closed CEN several times during booting, and everything worked out the third time. I used to turn off the power.
ADVERTISEMENT