- Please report the
result of the test below, also
specify whether your controller is working with the new firmware.
- If not working, please
specify if you're using any clone (Even CKS).
- If not working and apparently not a clone, please run
clone detection.
Please don't fill the forum with pictures, just do like:
CPUID: 411FC231 -> Some clones are copying this too! 412xxxxx would be a fake (Different ARM core revision)
SIZE: 128 KB -> If this shows 65535 or ???, it's 100% fake!
Theorical: 1024B -> Theorical page size based on the reported flash size
Detected: 1024B -> Detected page size
Clone test: 20036410 -> Some clones are copying this ID too!
Yesterday I spent a lot of time creating/changing/copying/deleting tips, switching profiles, everything worked flawlessly here.
What you're doing will cause unexpected behavior, letting the system run with bad settings, then anything can happen then.
This all started after the new temperature storage area was added.
I suspect there's some issue in the flash erasing, perhabs some STM32 are not 64/128K, but 256K or larger, so the sector size will be 2K instead 1k.
This code assumes all STM32s have 64/128KB (1KB sectors), so in larger devices it will erase twice the memory, destroying other areas and possibly causing the system bootloop you got while debugging.
(Bad data->Load defaults->Reboot, Bad data->Load defaults->Reboot...).
This would never be a problem before because the whole settings block was written in a single step.
But now we have sepparated writing areas, so one might be erasing the other!
I made a very simple test to show the reported flash size from the FLASH register.
Whatever the version you're running, this test won't touch the stored settings, so just flash it, show the result, flash the working version back and keep working (Keeping your settings)