-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
MPU fault with STM32L452 #30943
Comments
@qin-zou can you have a try to increase stack sizes ( |
@erwango I tried to increase those stack size, and it didn't seem to help. One more thing I noticed is that recently, I see this issue when I update the firmware using dfu-util with Do you think it has something to do with the way I update my image? |
@qin-zou Can you reproduce the issue with in tree webusb sample ? |
@erwango So far, I am not able to reproduce the issue with webusb sample. |
Also, with my own app, when I enable
This is using dfu-util to update with :leave option. |
In your app, are you doing some processing in a callback ?
So it's possible that you have excessive treatment done in interrupt context. |
To me this looks like a memory corruption (e.g. null pointer), rather than ISR Stack overflow. But sure, try with double-ing the ISR stack size. :) |
I tried increasing CONFIG_ISR_STACK_SIZE to 8192, it's still not working. I tried 3 different ways to update my image:
|
The difference I see is that "dfu bla :leave" may not perform a hardware reset and you might face an issue of a variable not correctly initialized. |
@erwango I believe I tried to initialized all of my heap variables, it didn't make a difference. I am also using stm32 HAL api to read differential adc (since it's not supported by zephyr) while using zephyr's adc initialization, I am wondering if this could also cause such issue. I am trying to move the adc init part to use HAL api and disable ADC from zephyr and see if that helps. |
@qin-zou Have you been able to make some progress on this ? |
@erwango Sorry, I don't have any progress on this issue. I still see it while using dfu-util with leave option to update my board. Right now, I am just resetting the board to work around it. |
@erwango I'll try it out in the next day or two and get back to you. |
@qin-zou If you cannot reproduce the issue. It would be nice to close. It's still possible to re-open later and it helps us to keep the database at a reasonable level. |
@erwango Sure I'll close it. Will open when I can reproduce the issue again. |
I have a customized application modified based on webusb (loopback) app.
I am seeing this MPU fault quite a lot.
Not sure what address 0xedf7ff20 is.
Here is the decode for the LR register:
Sometime, adding an extra log message could cause this fault to occur.
And adding a delay may also change the behavior.
Do you have any idea what could be causing this issue?
Thanks,
Qin
The text was updated successfully, but these errors were encountered: