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

How to read and write the data to the external flash

Hi... 

How to read and write to the external flash 

I am using sdk 15.2 version, interfacing the  development kit nRF52832  with w25q64 external flash via spi. I have read the datasheet of external flash using the address I am trying to read the data from flash but I couldn't able to read. I am not getting anydata on the terminal  . I am using spi example. Which function I should use to read the data from external flash, where I should I pass the address too. I don't know where to pass the address, m_tx_buffer[] ="0x03h" ;  Is it correct or wrong?? Suggest me please. This is the first time I am working on spi 

Parents Reply
  • Hi,

    You're getting noise only? Not event SCLK is produced or the CS pin set low? Why is rx buffer length 0 in the first transfer at code line 503? Can you check what this function returns.

    I suggest that you start with an easier example such as the SPI example from the SDK. That way, you can get familiar with the API and how the peripheral and protocol works. Debugging your application with the debugger and checking if asserts somewhere is also strongly recommended. I see that some of your function calls doesn't check what it returns. This is strongly recommended to do. You can check by adding APP_ERROR_CHECK() after the function call. That way you can see if returns or not. 

    regards

    Jared

Children
No Data
Related