Hello,
I'm encountering an issue while configuring the SPI bus to communicate with a LIS3DH sensor using nrf52832. I'm working with Visual Studio Code using nrfConnect SDK (Zephyr).
Here's the Device Tree Source (DTS):
The spi_file is :
And the main calls spi_init()
and test_spi()
.
I'm encountering this error during spi_transceive() function :
Bluetooth initialized
Advertising successfully started
BEACON START
[00:00:01.005,676] <err> os: ***** Reserved Exception ( -16) *****
[00:00:01.005,706] <err> os: r0/a1: 0x20006f00 r1/a2: 0x00016a0d r2/a3: 0x0002e2bf
[00:00:01.005,706] <err> os: r3/a4: 0x000169f9 r12/ip: 0x000169f9 r14/lr: 0x000169f9
[00:00:01.005,737] <err> os: xpsr: 0x00000000
[00:00:01.005,737] <err> os: s[ 0]: 0x00000000 s[ 1]: 0x00000000 s[ 2]: 0x00000000 s[ 3]: 0x00016c09
[00:00:01.005,767] <err> os: s[ 4]: 0x000169f9 s[ 5]: 0x00000000 s[ 6]: 0x00016b69 s[ 7]: 0x000169f9
[00:00:01.005,767] <err> os: s[ 8]: 0x00016f15 s[ 9]: 0x00031ed3 s[10]: 0x00016f15 s[11]: 0x00016f15
[00:00:01.005,798] <err> os: s[12]: 0x00016f15 s[13]: 0x00016f15 s[14]: 0x00016f15 s[15]: 0x00016f15
[00:00:01.005,798] <err> os: fpscr: 0x00031e89
[00:00:01.005,798] <err> os: Faulting instruction address (r15/pc): 0x000169f9
[00:00:01.005,859] <err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
[00:00:01.005,889] <err> os: Current thread: 0x20003030 (unknown)
[00:00:01.391,052] <err> fatal_error: Resetting system
Thank for you help