2021-11-16 02:39 PM
Hi,
Am trying to correctly connect to my external NOR flash memory using my STM32F446RE's DMA.
Am not sure how to go about this and the libraries I have tried are not working at all.
Here's a link to the library I tried to test the connectivity between my STM32 and my Flash Memory. I wasn't able to get it working.
https://github.com/nimaltd/w25qxx
Additionally, here's the link to the datasheet of the NOR flash memory am using:
https://datasheet.lcsc.com/szlcsc/Winbond-Elec-W25Q128JVFIQ_C111478.pdf
The connection scheme I have going on right now is using standard SPI
SPI1_SCK - CLK
SPI1_MISO - DO
SPI1_MISO - DI
(FLASH_CS is a GPIO Output)
FLASH_CS - CS
2021-11-16 06:26 PM
If you can't debug the code you have, or relate this and perhaps other examples to the intent conveyed in the data-sheet you're in trouble.
DMA isn't going to help here, only complicate things.
I don't think anyone's going to custom code a worked solution here.
So you probably need to start with getting some basic SPI code working, and then a relatively simple interaction with the READ ID type command. Then build upon that.