https://github.com/greatcattw/linkit7688_spi_nor
linkit7688 / mt7688 spi#1 with nor flash at45db041d
https://github.com/greatcattw/linkit7688_spi_nor
at45db041 linkit7688 mt7688 openwrt
Last synced: 4 months ago
JSON representation
linkit7688 / mt7688 spi#1 with nor flash at45db041d
- Host: GitHub
- URL: https://github.com/greatcattw/linkit7688_spi_nor
- Owner: greatcattw
- Created: 2023-01-05T02:37:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-05T03:35:36.000Z (over 2 years ago)
- Last Synced: 2024-12-29T08:12:47.222Z (6 months ago)
- Topics: at45db041, linkit7688, mt7688, openwrt
- Language: C
- Homepage:
- Size: 896 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Linkit7688 / mt7688 SPI interface with NOR flash at45db041d test
Connecting as below picture

Test environment
Test, 32 byte output and 32 byte input, it is OK.
Linkit7688 linux 3.18.109 ,There is a SPI node of /dev/spidev32766.1
Read/write this node and access the SPI peripheral.
Half duplex mode, The max r/w is 32 byte input and 32 byte output,
In a word, it takes the time of 64 byte. It is not able to run loopback in the mode.
Test, 33 byte output and 33 byte input, it is NG.
Read AT45 busy flag,
bit#7 = 1 = ready
bit#7 = 0 = busy
Read chip ID = 1F 24 00 00
Erase full NOR chip, it takes some time.
Check busy flag = 0 = busy
Ask AT45 copy date from NOR page#0 to AT45 buffer, and read AT45 buffer to linkit7688.
Because of operation of chip erase, 256 bytes of data are 0xFF.
Write AT45 buffer with 00 – FF, and ask AT45 write date from buffer to AT45 NOR page#0
Power off system and Power on again.
Ask AT45 copy data from NOR page#0 to AT45 buffer,and read data from AT45 buffer to linkit7688,
All of data is kept.