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

spis 数据发送不正常

用nRF5SDK160098a08e2里面的spis工程在52832开发板上跑,但数据发送不正常

untitled.logicdata

1,从逻辑分析仪图上看,spi主的时序没问题,发送的数据内容也没问题,但MISO这跟线的数据经常发不完整

Parents
  • Hi, 

    Do you mean nRF52832DK MISO sent incomplete data while executing the SDK 16/spis example? If so, which pin are you using for MISO on Slave and Master boards?

    -Amanda H.

Reply
  • Hi, 

    Do you mean nRF52832DK MISO sent incomplete data while executing the SDK 16/spis example? If so, which pin are you using for MISO on Slave and Master boards?

    -Amanda H.

Children
  • Yes, in the example, the MISO pin is p0.30, but  i use the silicon's efm32zgf32 to work as the Master spi。  

  • Hi, 

    Did you modify the spis example code? If so, what is that? Could you share with us?

    I tested two nRF52832DKs with SPI Master Example and SPI Slave Example, and I could not reproduce the problem.  

    -Amanda H.

  • I also test other three situations(nRF52832DK as SPIM with nRF52832DK as SPIS,nRF52832DK as SPIM with efm32 as SPIS, efm32 as SPIM with efm32 as SPIS), they all work well, only use efm32 as SPIM with nRF52832DK as SPIS, it make mistake。
    efm32 means efm32zg210f32

    my nRF52832DK code file and efm32zg210f32 code file。

  • when i set the spi mode to mode1, mode2, it works。

    when i set the spi mode to mode0, mode3, the error occurs。

    I donot known why

  • Did you set the same SPI mode on both sides?

    -Amanda H.