jmaselbas / wch-isp

mirror of https://sr.ht/~jmaselbas/wch-isp/
https://sr.ht/~jmaselbas/wch-isp/
GNU General Public License v2.0
21 stars 8 forks source link

Patch flash sector size #7

Closed GSunwinder closed 8 months ago

GSunwinder commented 8 months ago

After some number success of writes in flash MCU another download fails with error. But, if execute download with flash sector size = 1024 bytes recording capability is restored. Possibly an error in reference manual (flash sector size) or bug of bootloader.

jmaselbas commented 8 months ago

The flash sector size is 1024 all the other MCU I tested, I think there is a difference between the sector size used by the bootloader to erase flash and the actual MCU capacity (flash controller supports different erase size).

jmaselbas commented 8 months ago

applied thanks