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

SPI's problem with extern flash W25Q64 about read?

Hi, When I test the SPI with extern flash W25Q64. I found that receive data from W25Q64 is all Zero.

The "blue line" is MISO. The "yellow line" is CLOCK.

According to the picture, the received data is not Zero.

static void spi_event_handler(nrf_drv_spi_evt_t const * p_event)
{
    spi_xfer_done = true;
}

uint32_t read_w25q64(uint8_t *txdata,uint8_t *rxdata int writen_length,int read_length)
{
    spi_xfer_done = false;
    nrf_drv_spi_transfer(&spi,txdata,writen_length,rxdata,read_length);
    while(!spi_xfer_done) {
			nrf_delay_ms(1);
    }
    return 0;
}

Parents Reply Children
No Data
Related