rt-thread icon indicating copy to clipboard operation
rt-thread copied to clipboard

[Bug] components/fal/samples/porting /fal_flash_stm32f2_port.c erase

Open hiiizxf opened this issue 1 year ago • 0 comments

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

hiiizxf avatar Jul 17 '24 06:07 hiiizxf