MPU FAULT when connect to central

I am getting MPU FAULT when connecting central device.

In while(1) loop I am reading sensor data because of that MPU FAULT coming can you please help how to resolve this issue

[00:00:55.284,942] <err> os: ***** MPU FAULT *****
[00:00:55.284,942] <err> os: Stacking error (context area might be not valid)
[00:00:55.284,973] <err> os: r0/a1: 0x00000000 r1/a2: 0x00000001 r2/a3: 0x20005dbe
[00:00:55.285,003] <err> os: r3/a4: 0x000129e5 r12/ip: 0x00000000 r14/lr: 0x00023ef9
[00:00:55.285,003] <err> os: xpsr: 0x01000200
[00:00:55.285,034] <err> os: s[ 0]: 0x835ec580 s[ 1]: 0x00053444 s[ 2]: 0x00000000 s[ 3]: 0x000278af
[00:00:55.285,034] <err> os: s[ 4]: 0x000278c2 s[ 5]: 0x61000000 s[ 6]: 0x00000000 s[ 7]: 0x401e0000
[00:00:55.285,064] <err> os: s[ 8]: 0x00000000 s[ 9]: 0x00000000 s[10]: 0x00001d4c s[11]: 0x00000000
[00:00:55.285,064] <err> os: s[12]: 0xcccccccd s[13]: 0x200066b0 s[14]: 0xfc87d253 s[15]: 0x00022d65
[00:00:55.285,095] <err> os: fpscr: 0x0000004b
[00:00:55.285,095] <err> os: Faulting instruction address (r15/pc): 0x0002799c
[00:00:55.285,125] <err> os: >>> ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0
[00:00:55.285,186] <err> os: Current thread: 0x200017c8 (logging)
[00:00:55.429,565] <err> os: Halting system

thank you in advance.

Parents
  • Hi, 

    The log indicated that the logging thread causing the fault.

    Generally, you can use arm-none-eabi-addr2line -e build-folder/zephyr/zephyr.elf 0xFAULTINGADDR to resolve the address to a source file and line number. In this case, I suspect the logging thread is running out of memory.

    Could you try adjusting the logging thread stack via this config CONFIG_LOG_PROCESS_THREAD_STACK_SIZE? Could you try to check the value in the .config under build/zephyr and then increase this and see if this removes the error?

    Regards,
    Amanda H.

  • again this issue came (send_data_thread_id) is a id of thread function please help on reolving this 

    [00:00:41.072,998] <err> os: ***** BUS FAULT *****
    [00:00:41.073,028] <err> os: Precise data bus error
    [00:00:41.073,059] <err> os: BFAR Address: 0x20040000
    [00:00:41.073,059] <err> os: r0/a1: 0x2000481a r1/a2: 0x20040000 r2/a3: 0x2004001e
    [00:00:41.073,089] <err> os: r3/a4: 0x200048ec r12/ip: 0x00000001 r14/lr: 0x00010fb7
    [00:00:41.073,089] <err> os: xpsr: 0x81000000
    [00:00:41.073,120] <err> os: s[ 0]: 0x2003ff2d s[ 1]: 0x00010fb7 s[ 2]: 0x20008334 s[ 3]: 0x00010f9d
    [00:00:41.073,120] <err> os: s[ 4]: 0x00000000 s[ 5]: 0x00011c83 s[ 6]: 0x00000000 s[ 7]: 0x00011c8f
    [00:00:41.073,150] <err> os: s[ 8]: 0xc821f81e s[ 9]: 0x99bc8e20 s[10]: 0xc383b44f s[11]: 0x200017c8
    [00:00:41.073,150] <err> os: s[12]: 0x43bb8c10 s[13]: 0x74890b80 s[14]: 0x246f4feb s[15]: 0xc359a24a
    [00:00:41.073,181] <err> os: fpscr: 0xc98cb4cc
    [00:00:41.073,181] <err> os: Faulting instruction address (r15/pc): 0x00027adc
    [00:00:41.073,211] <err> os: >>> ZEPHYR FATAL ERROR 25: Unknown error on CPU 0
    [00:00:41.073,272] <err> os: Current thread: 0x200017c8 (send_data_thread_id)
    [00:00:41.243,591] <err> os: Halting system

    thank ypou in advance

Reply
  • again this issue came (send_data_thread_id) is a id of thread function please help on reolving this 

    [00:00:41.072,998] <err> os: ***** BUS FAULT *****
    [00:00:41.073,028] <err> os: Precise data bus error
    [00:00:41.073,059] <err> os: BFAR Address: 0x20040000
    [00:00:41.073,059] <err> os: r0/a1: 0x2000481a r1/a2: 0x20040000 r2/a3: 0x2004001e
    [00:00:41.073,089] <err> os: r3/a4: 0x200048ec r12/ip: 0x00000001 r14/lr: 0x00010fb7
    [00:00:41.073,089] <err> os: xpsr: 0x81000000
    [00:00:41.073,120] <err> os: s[ 0]: 0x2003ff2d s[ 1]: 0x00010fb7 s[ 2]: 0x20008334 s[ 3]: 0x00010f9d
    [00:00:41.073,120] <err> os: s[ 4]: 0x00000000 s[ 5]: 0x00011c83 s[ 6]: 0x00000000 s[ 7]: 0x00011c8f
    [00:00:41.073,150] <err> os: s[ 8]: 0xc821f81e s[ 9]: 0x99bc8e20 s[10]: 0xc383b44f s[11]: 0x200017c8
    [00:00:41.073,150] <err> os: s[12]: 0x43bb8c10 s[13]: 0x74890b80 s[14]: 0x246f4feb s[15]: 0xc359a24a
    [00:00:41.073,181] <err> os: fpscr: 0xc98cb4cc
    [00:00:41.073,181] <err> os: Faulting instruction address (r15/pc): 0x00027adc
    [00:00:41.073,211] <err> os: >>> ZEPHYR FATAL ERROR 25: Unknown error on CPU 0
    [00:00:41.073,272] <err> os: Current thread: 0x200017c8 (send_data_thread_id)
    [00:00:41.243,591] <err> os: Halting system

    thank ypou in advance

Children
Related