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

Trajectories with unaligned offset hard faults #1283

Open
krichardsson opened this issue May 22, 2023 · 2 comments
Open

Trajectories with unaligned offset hard faults #1283

krichardsson opened this issue May 22, 2023 · 2 comments
Labels

Comments

@krichardsson
Copy link
Contributor

A trajectory can be uploaded and defined with an arbitrary offset in the trajectory memory. When the trajectory is executed, a pointer to the trajectory is cast to struct poly4d*. When one of the floats in the struct is accessed, we will get a hard fault If the trajectory is not properly aligned in the trajectory memory.

One solution could be to change the API to make sure the offset used in the trajectory memory is aligned on 4 byte boundaries, or perhaps it is possible to memcpy data to an aligned working memory during trajectory execution.

Related to #1282

@knmcguire
Copy link
Member

Is this fixed now with that PR?

@knmcguire
Copy link
Member

Apparently this is still an issue but since nobody has complained so far it has a low-priority to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants