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

hardfault occur M0(+) Core #6

Closed
aroerina opened this issue Jul 18, 2020 · 2 comments
Closed

hardfault occur M0(+) Core #6

aroerina opened this issue Jul 18, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@aroerina
Copy link

usbd_dfu.c
784: and 792:
itf->Address = (uint8_t*)(*(__packed uint32_t *)data);

This code is unaligned access; in the MCU with an M0(+) core, it is Fires a hardfault.

@benedekkupper benedekkupper added the bug Something isn't working label Jul 19, 2020
@benedekkupper
Copy link
Member

Thanks for reporting this, can you check with the latest master again?

@aroerina
Copy link
Author

Thanks for fixing the code.
I compiled it and tried it on an STM32F072CB and DfuSe.
It worked perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants