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

error while implementing SPI1 on Nrf5340pdk (on secure and non secure)

NCS 1.4.0 
SES 5.10D
Board nrf5340pdk 
Windows 10 Pro 64bit

1. Made a copy of hello world (hello_world_2) and made sure it builds and runs fine

2. Added SPI1 based loop back code from  here  based on this devzone ticket

if I use secure build I get the following error

[00:00:00.370,880] <err> soc: This device is affected by nRF53 Erratum 19,
[00:00:00.378,570] <err> soc: but workarounds have not been enabled.
[00:00:00.385,742] <err> soc: See CONFIG_NRF5340_CPUAPP_ERRATUM19.
[00:00:00.392,761] <err> os: r0/a1: 0x00000004 r1/a2: 0x00000000 r2/a3: 0x00000000
[00:00:00.401,611] <err> os: r3/a4: 0x20000310 r12/ip: 0x00000000 r14/lr: 0x00000aab
[00:00:00.410,491] <err> os: xpsr: 0x69000000
[00:00:00.415,863] <err> os: Faulting instruction address (r15/pc): 0x00000ab6
[00:00:00.423,919] <err> os: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
[00:00:00.431,793] <err> os: Current thread: 0x20000270 (unknown)
[00:00:00.438,720] <err> os: Halting system

if i use the ns build

system goes into a boot-reset loop with the error can not find SPI1 device

I have attached the entire project for your reference7587.hello_world2.zip

Related