sample code nrfx_spim_spis code question

Hi supporter

                Iuse two DK boards for nRF7002-DK & nRF5340-DK, SDK version is V2.5.2, sample code nrfx_spim_spis_nonblocking in C:\ncs\v2.5.2\modules\hal\nordic\nrfx\samples\src\nrfx_spim_spis\non_blocking. 

I want to connect this two DK borads as spim and spis send message.nRF7002-DK spi4 master(as below overlay setting picture) and nRF5340-DK spi2 slave(as below overlay setting picture), I build two boards verion and download the image for each board.connect the two boards as below, It's only print "[00:00:00.250,579] <inf> NRFX_EXAMPLE: Starting nrfx_spim_spis basic non-blocking example." on nRF7002-DK .after that no any information or result.what setting I miss or how to try it wrok?

For this I want to use high speed spi(frequency :32MHz) on each board, try to send big message on next state. can I use high speed spi resource on nRF7002-DK(SPIM) and nRF5340-DK(SPIS)?

Best Regards

     Tina

  • Hi,

    Due to the Easter holidays in Norway, we are less staffed than usual. You can expect an answer sometime next week,

    Sorry for the inconvenience and thanks for your patience. 

    Regards, 
    Amanda

  • Hi Tina,

    I want to connect this two DK borads as spim and spis send message.nRF7002-DK spi4 master(as below overlay setting picture) and nRF5340-DK spi2 slave(as below overlay setting picture), I build two boards verion and download the image for each board.connect the two boards as below, It's only print "[00:00:00.250,579] <inf> NRFX_EXAMPLE: Starting nrfx_spim_spis basic non-blocking example." on nRF7002-DK .after that no any information or result.what setting I miss or how to try it wrok?

    By default, the P0.08-P0.11 pins on nRF7002-DK is connected to onboard External memory. The pins are not connected to the pin headers by default, to do this, you need to short SB10-SB14 as described in Solder bridge configuration. If you have not modified the board, there is no clock connection between the boards, and thus, no SPI operations on the SPI slave side.

    You can also assign other pins to the SPI instance, to avoid modifying the DK. Most of the pre-occupied GPIOs are described on the back of the DK.

    For this I want to use high speed spi(frequency :32MHz) on each board, try to send big message on next state. can I use high speed spi resource on nRF7002-DK(SPIM) and nRF5340-DK(SPIS)?

    The SPIS peripheral on nRF5340 only supports maximum frequency of 8MHz. 32MHz is only supported for SPI Master and only on SPIM4 instance.

    Best regards,
    Jørgen

  • Hi Jorgen Holmefjord                     

    By default, the P0.08-P0.11 pins on nRF7002-DK is connected to onboard External memory. The pins are not connected to the pin headers by default, to do this, you need to short SB10-SB14 as described in Solder bridge configuration. If you have not modified the board, there is no clock connection between the boards, and thus, no SPI operations on the SPI slave side.

    You can also assign other pins to the SPI instance, to avoid modifying the DK. Most of the pre-occupied GPIOs are described on the back of the DK.

          I know P0.08-P0.11 pins on nRF7002-DK is connected to onboard External memory, so I short for (SB11-SB14)on nRF7002-DK board,as attach picture.For my project, I need to assign the SPI4 (P0.08-P0.11 pins) for master SPI.after I short (SB11-SB14), slave for nRF5340 is no any respone and log.

    The SPIS peripheral on nRF5340 only supports maximum frequency of 8MHz. 32MHz is only supported for SPI Master and only on SPIM4 instance.

      OK, I will use nRF5340 as salve spi and use frequency 8MHZ  as transmit/reciecve test. 

    Best  Regards

         Tina

  • yithwe said:
          I know P0.08-P0.11 pins on nRF7002-DK is connected to onboard External memory, so I short for (SB11-SB14)on nRF7002-DK board,as attach picture.For my project, I need to assign the SPI4 (P0.08-P0.11 pins) for master SPI.after I short (SB11-SB14), slave for nRF5340 is no any respone and log.

    Is there nothing at the log at all? Have you checked if the application crashes or if any error codes are reported? Please reference the Debugging and troubleshooting lesson in nRF Connect Intermediate course in DevAcademy.

  • Hi Jorgeb Holmefjord

                                    Is there nothing at the log at all? 

                                    Yes, no any log and no any action on slave side.

    Best Regards

        Tina

Related