This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

using SPI0 and LTE together throws a fault

Was wondering if anyone knew why this fault might be triggered?

It triggers when I try to use SPI0 and LTE together.

AT host is disabled.

The code stops here during debugging and then on resume it restarts the application.

fault_s.S line 90


#if defined(CONFIG_ARMV6_M_ARMV8_M_BASELINE) || \
    defined(CONFIG_ARMV7_M_ARMV8_M_MAINLINE)
    mrs r0, MSP
    mrs r1, PSP
    mov r2, lr /* EXC_RETURN */

Parents
  • Hi.

    SPI0 is using the same hardware as UART0, so you can not use those two at the same time.

    Are you using logging in your application?

    Are you disabling the serial drivers (CONFIG_SERIAL=n)?

    Have you configured the SPM to set up SPI0 as non-secure?

    Is there a reason why you are using SPI0 instead of SPI2 which is configured by the SPM by default?

    Do you know what the last thing that happens before you enter the fault handler is?

    Could you share your <your build folder>/zephyr/.config and <your build folder>/zephyr/zephyr.dts files?

    Best regards,

    Didrik

  • Logging has been disabled, we are using custom logging which does not go to the UART.

    did not disable the serial driver, will try that.

    Yes, we are using a custom board package so SPM in configured to do that.

    We require a lot of ports and are using SPI as a dedicated one for memory.

    I'll share the files soon.

Reply Children
No Data
Related