You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
#0 arch_system_halt (reason=25)
at zephyr/kernel/fatal.c:30
#1 0x00047e38 in k_sys_fatal_error_handler (reason=<optimized out>,
esf=<optimized out>)
at zephyr/kernel/fatal.c:44
#2 0x00038310 in z_fatal_error (reason=<optimized out>, esf=<optimized out>)
at zephyr/kernel/fatal.c:119
#3 0x00040a0c in z_arm_fatal_error (reason=<optimized out>,
esf=esf@entry=0x1001d940 <z_interrupt_stacks+2048>)
at zephyr/arch/arm/core/fatal.c:86
#4 0x00028912 in z_arm_fault (msp=<optimized out>, psp=<optimized out>,
exc_return=<optimized out>, callee_regs=<optimized out>)
at zephyr/arch/arm/core/cortex_m/fault.c:1107
#5 0x000289dc in z_arm_usage_fault ()
at zephyr/arch/arm/core/cortex_m/fault_s.S:102
#6 <signal handler called>
#7 pl011_disable (dev=0x48f80 <__device_dts_ord_58>)
at zephyr/drivers/serial/uart_pl011_registers.h:42
#8 pl011_runtime_configure_internal (dev=0x48f80 <__device_dts_ord_58>,
cfg=0x1001ed48 <z_main_stack+3976>, disable=<optimized out>)
at zephyr/drivers/serial/uart_pl011.c:217
#9 0x00022ae8 in z_impl_uart_configure (cfg=0x1001ed48 <z_main_stack+3976>,
dev=0x48f80 <__device_dts_ord_58>)
at zephyr/include/zephyr/drivers/uart.h:648
#10 uart_configure (cfg=0x1001ed48 <z_main_stack+3976>,
dev=0x48f80 <__device_dts_ord_58>)
at build/zephyr/include/generated/zephyr/syscalls/uart.h:157
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.
mkdir build; cd build
cmake -DBOARD=board\apollo3
make
See error
Expected behavior
uart is working
Impact
showstopper obviously
Logs and console output
*** Using Zephyr OS build v4.0.0-2-gad0afbde8448 ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=bad, swap_type=0x0, copy_done=0x0, image_ok=0x0
I: Boot source: none
I: Secondary image of image pair (0.) is unreachable. Treat it as empty
I: Image index: 0, Swap type: none
I: Bootloader chainload address offset: 0xc000
I: Image version: v1.3.0
I: Jumping to the first image slot
*** Booting Zephyr OS build v4.0.0-2-gad0afbde8448 ***
Environment (please complete the following information):
Linux
zephyr 4.0.0
Additional context
This is the resulting dts of this build (from zephyr.dts)
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.
Reading 76 bytes @ address 0x4001C000
WARNING: Failed to read memory @ address 0x4001C000
Cannot access memory at address 0x4001c000
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: