Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 10 months ago.
w25q32b Flash memory
i have written the program for w25q32b Flash using SPI protocol but i am not getting the correct output. may somebuddy help me to do the same,please write the read and write function for w25q32b Flash using SPI protocol.
1 Answer
8 years, 10 months ago.
Hi Suraj. What is not working ? Can you post what you have tried with your code and the results ? When you post, please apply the <<code>> and <</code>> tags so that your post is properly formatted for a review. Are you able to reliably read back the IDs for this flash ? What is your setup with respect to hardware, that is, are you using long cables to / from the mbed board ? We have invested weeks in working with standard SPI and also QSPI flash devices but on a different platform. The length of the cables can impact the operation if you are operating at high speeds. We found that Spansion (now Cypress) devices had a better pin strength vs. Winbond and this was visible at high data rates and rather long but shielded cables on our logic analyzer setup. The Spansion brand would work fine but Winbond failed at high speed QSPI mode. Winbond now offers devices with a pin strength register in case you have longer cables (higher capacitive load). The standard SPI commands worked fine for both vendors. Highly recommend that you start with the very basic SPI commands to read out the IDs and compare against the SPI datasheet for the posted device. Also, what is the operating voltage of your SPI flash in your setup ?
Do you have a logic analyzer like Saleae to monitor the SPI lines ?
Also, have you seen this code which should be a great start for your project:
https://developer.mbed.org/cookbook/W25X40BV