Skip to content

Problem writing EEPROM part of STC15W204S flash #115

@poli9208-cell

Description

@poli9208-cell

Hello,
When writing eeprom part of flash of STC15W204S at 90% it says "error bad magic"

I figured the problem is that STCGAL doesn't fully erase all EEPROM sectors,
so I share my (adhoc) solution to this:

Change line 1742 of protocols.py, the part where it says

packet += bytes([0x01])

change it to:

packet += bytes([0x02])

so it forces erasure of all EEPROM sectors.

That's it!

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions