Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Chunx1nZHENG opened this issue Sep 2, 2024 · 0 comments
Open

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

Chunx1nZHENG opened this issue Sep 2, 2024 · 0 comments

Comments

@Chunx1nZHENG
Copy link

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

@Chunx1nZHENG Chunx1nZHENG changed the title STM32H755 移植的问题 STM32H755 移植的问题 Problems when STM32H755 porting Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant