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

nRF5430 SPI sample code

Hi, 

I tried to run the code which was used by another forum user: 

https://devzone.nordicsemi.com/f/nordic-q-a/63149/nrf5340---p0-10-not-working-as-spim-miso-on-non-secure-build/257673#257673

I used zip file "spi-rallare-secure-working.zip". 

The first issue that occurred was that some of the variables were not user-configurable (CONFIG_UART_0_NRF_UARTE,CONFIG_SPI_1_NRF_SPIM,CONFIG_SPI_2_NRF_SPIM) 

After commenting those variables (and changing k_sleep(1000) to k_sleep(K_SECONDS(1)); - I also tried k_sleep(K_SECONDS(1));)

I got this:

My board is not able to initialize SPI_1. 

When it comes to wiring I just connect MISO(P0.10) and MOSI(P0.4). 

What can be wrong with my sample code?

Thanks, 

Marta

Related