Port 1 Pins for SPI on Zephyr NCS 1.8?

Hi everyone,

I'm developing a program with the NCS 1.8 using NRF52840 and I want to use the SPI, the fact is that I've to connect my device to those pins

And as you can see, two of them are P1 (and I use them)

While defining and initializing SPI driver does not ask for PORT, so if I put 9 and 0 (for P1.09 & P1.00) It would take the P0.09 & P0.00. 

So, the question is, how do I tell the program or SPI driver, that the pins (CLK, MOSI, MISO, or CS, whatever it would be) that is PORT1 & PIN X not PORT0 & PIN X??

I'm using NRFX_SPI for initializing and transaction with SPI.


Thanks in advance,

MatiasP

Parents
  • Sorry to revive this thread, but I have the same problem on a custom 52840 board. Adding 32 to the port 1 pins doesn't seem to do the trick. In the .dts-file under &spi1 I want to use P1.09 as mosi, but <41> doesn't work. Same with uart1, i want to use P1.02 and P1.06 but 34 and 38 doesn't work. Has this behaviour been changed? I'm on 2.0.2.

    On a side note, will using pins from two different ports slow down SPI?

Reply
  • Sorry to revive this thread, but I have the same problem on a custom 52840 board. Adding 32 to the port 1 pins doesn't seem to do the trick. In the .dts-file under &spi1 I want to use P1.09 as mosi, but <41> doesn't work. Same with uart1, i want to use P1.02 and P1.06 but 34 and 38 doesn't work. Has this behaviour been changed? I'm on 2.0.2.

    On a side note, will using pins from two different ports slow down SPI?

Children
No Data
Related