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

  

Related