Page 1 of 1

SPI port drive Windbond w25 q32

Posted: Thu May 27, 2021 9:11 am
by madhavan
hi ,

Trying to connect bluepill with 25q32 .

please suggest some good library with some example like a/d converter value into Flash Memory and Reading the same value since i am new .

Re: SPI port drive Windbond w25 q32

Posted: Fri May 28, 2021 10:20 am
by madhavan
Arduino Having Library :
You can open it with Arduino IDE by navigating the examples in the menu File -> Examples -> Examples for Generic STM32F103C series -> SPI -> using_spi_ports.

But there is no examples for simple 8 bit , 16 bit &32 bit read & write , since i am new i couldn't do better .
I have googled and Checked forum but nothing is useful .
requesting somebody help .If somebody help it will be very helpful .

Re: SPI port drive Windbond w25 q32

Posted: Fri May 28, 2021 12:52 pm
by stevestrong
Have a look into these files:
https://github.com/adafruit/Adafruit_SP ... er/src/spi
or here:
http://www.rinkydinkelectronics.com/dow ... Iflash.zip
or here:
https://github.com/nimaltd/w25qxx (in this case you have to replace the HAL function calls to corresponding libmaple functions)

Re: SPI port drive Windbond w25 q32

Posted: Mon May 31, 2021 7:57 am
by madhavan
thanks .... every link is beyond my level . For my understanding i am requesting that need the simple code like ad convertor value must be store in flash memory and need to read the same value .

Re: SPI port drive Windbond w25 q32

Posted: Mon May 31, 2021 1:26 pm
by stevestrong
Try this one:
STM32_SPIFlash.zip
(1.37 KiB) Downloaded 552 times
This is set to use SPI1 and chip select pin PA4.

Re: SPI port drive Windbond w25 q32

Posted: Tue Jun 01, 2021 5:02 am
by madhavan
i am sorry .. still attachment file is giving compile error but i don't want confuse myself with memory device . at this movement i put hold or pause for this spi flash memory and i will do further development later .