Replies: 1 comment 1 reply
-
Hi @pavelrydl . Thanks for opening this thread. Please let us know which commit of Zephyr you're using. Thanks |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The problem:
After calling uart_rx_enable, it calls the callback with BUFFER_REQUESTED. I Supply the second buffer and it crashes.
(Inside, it crashes on
This is a problem only with LPUART14 on DMAMUX1. LPUART0 on DMAMUX0 is not crashing and it's working.
It's interesting to see "BFAR Address: 0x40254000" as this address points to "SDA-AP". It's perhaps security problem, but I have no experience with that. Also I think all security are disabled by default...
Thank you!
Error:
[00:00:00.010,000] os: ***** BUS FAULT *****
[00:00:00.010,000] os: Precise data bus error
[00:00:00.010,000] os: BFAR Address: 0x40254000
[00:00:00.010,000] os: r0/a1: 0x4020c000 r1/a2: 0x00048000 r2/a3: 0x0000001a
[00:00:00.010,000] os: r3/a4: 0x0041126c r12/ip: 0x20402888 r14/lr: 0x00404393
[00:00:00.010,000] os: xpsr: 0x01000000
[00:00:00.010,000] os: s[ 0]: 0x0041126c s[ 1]: 0x00404393 s[ 2]: 0x00000010 s[ 3]: 0x00410250
[00:00:00.010,000] os: s[ 4]: 0x00000000 s[ 5]: 0x21000440 s[ 6]: 0x00000000 s[ 7]: 0x20000460
[00:00:00.010,000] os: s[ 8]: 0x00000004 s[ 9]: 0x00000010 s[10]: 0x00000020 s[11]: 0x204094c0
[00:00:00.010,000] os: s[12]: 0x204094c0 s[13]: 0x0040fa28 s[14]: 0x204094c0 s[15]: 0x404a4000
[00:00:00.010,000] os: fpscr: 0x00000000
[00:00:00.010,000] os: r4/v1: 0x20402888 r5/v2: 0x0040fa08 r6/v3: 0x00000011[0m
[00:00:00.010,000] os: r7/v4: 0x20000440 r8/v5: 0x404a401c r9/v6: 0x204021d0
[00:00:00.010,000] os: r10/v7: 0x0000061c r11/v8: 0x00000020 psp: 0x20409418
[00:00:00.010,000] os: EXC_RETURN: 0xfffffffd
[00:00:00.010,000] os: Faulting instruction address (r15/pc): 0x0040dc2c
[00:00:00.010,000] os: >>> ZEPHYR FATAL ERROR 25: Unknown error on CPU 0
[00:00:00.010,000] os: Current thread: 0x20401e18 (main)
[00:00:00.618,000] os: Halting system
DTS:
&lpuart14 {
pinctrl-0 = <&lpuart14_default>;
pinctrl-names = "default";
dmas = <&edma0 17 46>, <&edma0 18 47>;
dma-names = "tx", "rx";
current-speed = <1000000>;
data-bits = <8>;
parity = "none";
stop-bits = "1";
status = "okay";
};
&edma0 {
status = "okay";
};
PIN CRTL:
lpuart14_default: lpuart14_default {
group1 {
pinmux = <PTB20_LPUART14_TX_O>;
output-enable;
};
group2 {
pinmux = <PTB21_LPUART14_RX>;
input-enable;
};
};
Sample code:
main.txt
Beta Was this translation helpful? Give feedback.
All reactions