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

52840 SPI MISO Buffer empty

Hallo,

I'm using a 52840dongle.

Uart ( PC-Terminal Debugging)

Radio ( reading 51822)

I2C Display

is working well

 No i need to write and read data to/from a spi eeprom.

I am able to write data to the EEprom and read these data from the EEprom ( I can see the correct read out data on the oscilloscope). 

But the receive Buffer m_rx_buf[0],  m_rx_buf[1],  m_rx_buf[2],  m_rx_buf[3],  m_rx_buf[4],  m_rx_buf[5],  m_rx_buf[6],  m_rx_buf[7],  m_rx_buf[8] ... is always 0.

The spim_event_handler  is working well.

maybe the mosi gpi port is not properly set to input ?

I assume that  nrf_gpio_cfg_input(miso_pin, (nrf_gpio_pin_pull_t)NRFX_SPIM_MISO_PULL_CFG); is correct too.

Do you have any idea ?

Best regards Wenne

  

Parents
  • Good Morning,

    I moved miso from 9 to 17.

    But unfortunately nothinge has changed - the  m_rx_buf buffer is always "0" too. But I can see the outputdata of the eeprom on my oscilloscope. 

    I only changed the #define within the "sdk_config.h" ...

    maybe another driver (i2C / Radio / Uart ) blocks thew SDI input ? ...

    so I will deactivate all other drivers except the SPI to see if SPI is working stand alone ...

Reply
  • Good Morning,

    I moved miso from 9 to 17.

    But unfortunately nothinge has changed - the  m_rx_buf buffer is always "0" too. But I can see the outputdata of the eeprom on my oscilloscope. 

    I only changed the #define within the "sdk_config.h" ...

    maybe another driver (i2C / Radio / Uart ) blocks thew SDI input ? ...

    so I will deactivate all other drivers except the SPI to see if SPI is working stand alone ...

Children
Related