I got SPI working without using ASF now. I did upload my basic code used to the github repository also, if you interested. Now I will look how the SPI will work together with DMA. My goal is to connect some SPI flash. to store some logged data.
small Update: I can read at least the ID of a SPI flash (MX25L1005) I found on some trash PCB now. Sadly I found only this one SPI flash. Need to order some new ones in china... or desolder them from ESP modules
more Update: I did add some code line to the repository how to use my Spi libary. There is something to do in user code. For example all SS line handling must be done in user software.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
Are you planning on using a file system (eventually) with the SPI FLASH or just writing to raw sectors?
I am interested in seeing a FLASH translation layer to be used with a file system.
Are you sure? yes | no
Fist I just want to write raw data into the flash. So far i do have only one data stream I want to log, so a file system is not needed.
Are you sure? yes | no
well done! I'm still bashing on i2c.
Are you sure? yes | no