This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SPI Controller initialization error in Zephyr

Description:

I try to initialize a SPI device in my nRF52DK through the Zephyr‘s driver(drivers/spi.h).

Code seems correct when compile and I got no error when build the whole project.

But when turn to debug, SPI can not initialize as expection.I have tried several initializations in my project.

Situation 1: spi1 compatible = "nordic,nrf-spi"; - when debug, the code will stuck at Exception Stack Frame (ESF)

Situation 2: spi1 compatible = "nordic,nrf-spim"; - when debug, the initialization seem to be fail.

Development environments:

1.OS : Ubuntu 20.04

2.NCS in VsCode (sdk:1.7.1)

3.HW:nRF52DK

Attachments(key code):

main.c:

dts file:

Parents Reply Children
No Data
Related