This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC1352P: raspberry pi 4 SPI1 with SPI_POL0_PHA1

Part Number: CC1352P
Other Parts Discussed in Thread: CC1312R

hi ,

I'm trying to use the SPI1 interface of RPI-4 (not SPI0) to the cc1352p-4 where as the cc serves as slave and the rpi-4 as master.

sadly the SPI1  of rpi-4 does not support SPI_POL0_PHA1 (unlike SPI0 which does and workd well with the cc),

 so I tried using or SPI_POL1_PHA0 with the CC and changed the sdk 6.30 example 'spislave_CC1352P_4_LAUNCHXL_tirtos7_ticlang' accordingly , but still the bytes that were sent didn't received well on the cc.

meaning I tried to change the frameFormat field of the spi handle:

spiParams.frameFormat         =SPI_POL1_PHA0;// SPI_POL0_PHA1;

does this CC even support SPI_POL0_PHA0  or SPI_POL1_PHA0 ?

if not, does  CC1312R support it?

  • Hi Michael, 

    I tested the spimaster and spislave example with the SPI_POL1_PHA0 frame format and it seems to work.

    The CC1312R and CC1352P4 have the same SPI driver and will support the frame format. 

    Please check the settings on your RPI. 

    Regards,

    Sid