logo elektroda
logo elektroda
X
logo elektroda

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

sega66 81 1
ADVERTISEMENT
  • #1 21924360
    sega66
    Level 1  
    Posts: 1
    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: 5055
    Help: 438
    Rate: 893
    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?
ADVERTISEMENT