请教一下大家,怎么接这个 外部 spi flash , 怎么实现存取数据。 有什么可以参考的资料吗?
在sdk中,spi_demo 是通过spi 进行通信。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
看Datasheet上的SPI Flash说明如下:
The CC3200 device supports JEDEC specification SFDP (serial flash device parameters). The following
SFLASH devices are verified for functionality with the CC3200 device in addition to the ones in the
reference design:
• Micron (N25Q128-A13BSE40): 128Mb
• Spansion (S25FL208K): 8Mb
• Winbond (W25Q16V): 16Mb
• Adesto (AT25DF081A): 8Mb
• Macronix (MX25L12835F-M2): 128Mb
For compatibility with the CC3200 device, the SFLASH device must support the following commands:
• Command 0x9F (read the device ID [JEDEC]). Procedure: SEND 0x9F, READ 3 bytes.
• Command 0x05 (read the status of the SFLASH). Procedure: SEND 0x05, READ 1 byte. Assume bit 0
is busy and bit 1 is write enable.
• Command 0x06 (set write enable). Procedure: SEND 0x06, read status until write-enable bit is set.
• Command 0xC7 (chip erase). Procedure: SEND 0xC7, read status until busy bit is cleared.
• Command 0x03 (read data). Procedure: SEND 0x03, SEND 24-bit address, read n bytes.
• Command 0x02 (write page). Procedure: SEND 0x02, SEND 24-bit address, write n bytes (0<n<256).
• Command 0x20 (sector erase). Procedure: SEND 0x20, SEND 24-bit address, read status until busy
bit is cleared. Sector size is assumed to be always 4K.