An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Linkit7688 / mt7688 SPI interface with NOR flash at45db041d test

Connecting as below picture

![pic](pic/P_20230103_145531_1.jpg)

Test environment
![pic](pic/000.png)


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.

![pic](pic/00.png)




Test, 33 byte output and 33 byte input, it is NG.

![pic](pic/01.png)




Read AT45 busy flag,
bit#7 = 1 = ready
bit#7 = 0 = busy

![pic](pic/02.png)




Read chip ID = 1F 24 00 00

![pic](pic/03.png)




Erase full NOR chip, it takes some time.
Check busy flag = 0 = busy

![pic](pic/04.png)




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.

![pic](pic/10.png)




Write AT45 buffer with 00 – FF, and ask AT45 write date from buffer to AT45 NOR page#0

![pic](pic/12.png)




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.

![pic](pic/16.png)