lv_binding_rust icon indicating copy to clipboard operation
lv_binding_rust copied to clipboard

Unaligned hardfault on STM32H7S7L8

Open meowcakes opened this issue 1 year ago • 5 comments

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: https://github.com/lvgl/lv_binding_rust/blob/80fd2a7756479b83d8504a2132f565dfc82511c4/lvgl/src/input_device/pointer.rs#L117

meowcakes avatar Dec 27 '24 00:12 meowcakes

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

C47D avatar Dec 31 '24 21:12 C47D

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

meowcakes avatar Jan 06 '25 07:01 meowcakes

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

C47D avatar Jan 07 '25 01:01 C47D

Yes that's the fix

meowcakes avatar Jan 08 '25 03:01 meowcakes

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

C47D avatar Jan 08 '25 05:01 C47D