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

SPI4 (High-Speed SPI) Bring Up on nRF5340

Hello!

We have a new board design we are working on that uses the new nRF5340 chip, revision Engineering A.

However, we are having difficulty getting the SPIM4 (High-Speed SPI) peripheral working. We are using NCS v1.2.0.

I've tested everything out using SPIM1, but when I change our device tree to use SPIM4... everything stops working and we no longer get any output.

We are using TWI/SPI/UART0 and trying to free up TWI/SPI/UART1 for another peripheral since TWI/SPI/UART2 and TWI/SPI/UART3 are not functional on this version of silicon and we have to switch these around to test various components/functionality.

We are using the same settings/code, just moving &spi1 to &spi4.

This works:

&spi1 {
    compatible = "nordic,nrf-spim";
    status = "okay";
    sck-pin = <8>;
    mosi-pin = <9>;
    miso-pin = <10>;
};

This does not work:

&spi4 {
    compatible = "nordic,nrf-spim";
    status = "okay";
    sck-pin = <8>;
    mosi-pin = <9>;
    miso-pin = <10>;
};

Everything compiles correctly in both cases and we have an alias set-up that we swapped as well so that there were no changes to the code ran.

Our SPIM configuration is using 1MHz.

Are there problems with the SPIM4 peripheral that we are unaware of, or is there something else we have to do specifically for this peripheral?

Parents Reply Children
Related