Skip to content

STM32H755 移植的问题 Problems when STM32H755 porting #166

@Chunx1nZHENG

Description

@Chunx1nZHENG

错误情况:
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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions