-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Data Access Violation when LOG_* is called on ISR context #29162
Comments
should consider increasing the interrupt handler stack maybe?
|
Nope, same with |
I might be having the same issue on a custom board, but I'm blocked from investigating by issue #30074, since the noise from spurious spinlock validation errors is deafening. In my case, I get undefined instruction errors when execution is taken out of the RAM and into MMIO areas. I have OpenOCD running and the issue, if indeed this is the same one, reliably reproducible. While this is a port to ARMv7-A with NEON, things are very stable and I will be glad to take a look once spinlock validation stops failing. |
@sdalu I'm trying to narrow this down now that the spinlock issue is resolved for me. This is a pretty slippery one, however. I am trying to look for common things while I ponder a more useful approach. I have a suspicion about the uart_poll functions. What is your UART driver? Can you tell me what code does the LR register point to when you have a backtrace? (You can use addr2line, the list file or the list commmand in a debugger, if you have one.) |
I have my problem fixed and it turns out it was unrelated. |
Can you try to increase |
@sdalu closing this for now, since this has seen no feedback from you for a while. If this is still an issue on the latest Zephyr master, please reopen it. |
Data Access Violation when LOG_* is called on ISR context
To Reproduce
On Zephyr 2.4, using the
samples/basic/button
example.Add to
prj.conf
(I didn't manage to get it shorter):In
main.c
add:and for
button_pressed
I'm using the decawave board (nrf52 based).
Logs and console output
If I'm removing stack canaries, I got instead:
The text was updated successfully, but these errors were encountered: