OK, so next try will be to assume all controllers have 1KB sectors
*unless* they report 256K - 1M flash size (Assume it's genuine, follow datasheet values).
Anyone having a
hard fault / black screen / checksum error bootloop in older releases, please try this new version and report if working now.
AndyC your clone/fake should be working now?
Release v1.12.4-beta.
Once working, I'll proceed with further enhancements.
My next target is to isolate each profile tips in its own 2KB block, this will raise each profile tip limit to ~80 (Probably going to limit this to something lower like 50?), while reducing the storing function heap usage by 50%, as it'll only need to backup the block being modified.
The tip block will be isolated from the profile and system settings, so if these change and the system is restored to defaults, the tips should always remain, the tip structure has not changed for 2 years at least.
Also a write-protect bit to prevent tips from being wiped when performing a factory reset, or even setting the Options bits to protect the flash areas in hardware, not even the programmer should be able to erase these areas accidentally.
(But still could if going to Option bits and manually resetting the protected pages)
But this won't make any sense unless the flash issue is completely fixed.