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

Parents
  • 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

Reply
  • 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

Children
Related