-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
uart_configure crash with ambiq apollo3 #84136
Comments
From what I see, it crashes in pl011_disable()... What I do not understand is that the call get_uart(dev) is returning address 0x4001C000 which is good and access is working fine before.... I see that the reason of the crash is read memory access at same address that worked before.
maybe some Power management disabled the uart? |
I confirm, the issue happens after the call to Disabling CONFIG_PM_DEVICE_RUNTIME makes it run... |
@fariouche I tried hello world sample with PM_DEVICE_RUNTIME enabled, and did not reproduce your issue. |
this is strange. I remember that I had to comment line that calls am_hal_cachectrl_control in apollo3/hal/am_hal_pwrctrl.c as to was crashing when booting. |
I got some time to debug a bit more.
I tried to push the main stack to 5K, but still the same issue. I suppose I have an issue with the low power mode that is also making the uart crash if I comment this function. What could be the issue? |
Any idea on why I get this crash? |
Describe the bug
I'm getting an crash in uart_configure with the apollo3 board.
I've enabled mcuboot, and I can see mcuboot debug traces over the uart.... then when it is executing the zephyr app, I see the zephyr boot header and then when it reaches my call to uart_configure it crashes.
I haven't tested without mcuboot yet.
The debugger shows the following stack trace:
So it is getting a fault when calling pl011_disable... I verified and dts_ord_58 is the uart0 in the dts.
I'm getting the same crash with all calls to uart_irq_xxx functions too.
The exact same code works with other zephyr boards...
Hope this will ring a bell to someone here! Meanwhile I will try to reproduce the issue with a zephyr sample app
To Reproduce
I haven't tested with hello world sample app yet.
Expected behavior
uart is working
Impact
showstopper obviously
Logs and console output
Environment (please complete the following information):
Additional context
This is the resulting dts of this build (from zephyr.dts)
The text was updated successfully, but these errors were encountered: