-
Notifications
You must be signed in to change notification settings - Fork 798
Open
Description
错误情况:
STM32H755 移植的时候,由于这个芯片最小的写入大小是256bit。
如果强行修改EF_WRITE_GRAN 为256。并不能正常使用。
原因:sector_hdr_data 这个结构体并没有做到256bit的字节对齐。会造成写过的flash的写入错误。
解决方法: 在sector_hdr_data 中添加额外的uint32_t reserved 用于字节对齐。
Issues:
When porting the STM32H755, the chip's minimum write size is 256 bits. If EF_WRITE_GRAN is changed to 256, it does not work properly.
Reason:
The structure sector_hdr_data is not 256bit byte-aligned. This may cause a write error on the written flash.
Solution:
Add some extra uint32_t reserved variables into sector_hdr_data for byte alignment.
Metadata
Metadata
Assignees
Labels
No labels