rt-thread
rt-thread copied to clipboard
[Bug] components/fal/samples/porting /fal_flash_stm32f2_port.c erase
RT-Thread Version
head
Hardware Type/Architectures
stm32f2
Develop Toolchain
Other
Describe the bug
erase() { ... while (erased_size < size) ... } is incorrect. For example: offset is 16*1024 - 4, size is 8 In fact, sector 0 / 1 both need to be erased.
Other additional context
No response