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

Unaligned hardfault on STM32H7S7L8 #186

Open
meowcakes opened this issue Dec 27, 2024 · 5 comments
Open

Unaligned hardfault on STM32H7S7L8 #186

meowcakes opened this issue Dec 27, 2024 · 5 comments

Comments

@meowcakes
Copy link

I am trying to get lv_binding_rust set up on an STM32H7S7L8. I am at the point where I am working on touch input, however I am getting an unaligned store hardfault, specifically at this point:

(*data).continue_reading = match info {

@C47D
Copy link
Collaborator

C47D commented Dec 31, 2024

Hi @meowcakes , can you paste the error output in here? We're working on getting this repo in shape

@meowcakes
Copy link
Author

I believe I found the issue; the compiler for my target is arm-none-eabi-gcc which enables -fshort-enums by default, so I need to pass that flag to bindgen

@C47D
Copy link
Collaborator

C47D commented Jan 7, 2025

I see, if possible confirm that's the fix and let us know so we can document that.

@meowcakes
Copy link
Author

Yes that's the fix

@C47D
Copy link
Collaborator

C47D commented Jan 8, 2025

Thanks for the update @meowcakes , may I ask how you cross-compiled the lib?

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

2 participants