Skip to content

在M0+移植中QueueWrite时,不对齐访问导致的hardfault问题 #2

Description

@ianhom

在M0+移植中,
LOS_QueueCreate时的参数usMaxMsgSize如果不是4的整数倍,将会造成向队列第二次写入时,有不对齐的内存写入操作,造成hardfault错误.
针对M0+这样需要对齐操作的MCU,参数usMaxMsgSize在函数内是否需要增加对齐处理?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions