STM32F767ZI QUAD SPI
- August 15, 2017
- 2 replies
- 3507 views
Hello. I work with stm32f767ZI nucleo-144, and try use QUAD SPI bank1 to access W25Q128BV. All OK when i use 1 wire or 2 wire(dual mode), but when i use quad mode(4-wire), something went wrong.
SPI Pins:
PE2 ------> QUADSPI_BK1_IO2
PB2 ------> QUADSPI_CLK PD11 ------> QUADSPI_BK1_IO0 PD12 ------> QUADSPI_BK1_IO1 PD13 ------> QUADSPI_BK1_IO3 and i checked PF6 PB6 ------> QUADSPI_BK1_NCSAll wires work except PD13(PF6).
I Use Instruction - 1 Wire(0x94)
Address - 4 wire(24 bit all zeros)
Alt Bytes - 4 wire (8 bit 0xFF)
Dummy Cycle - 4 times
Data - 4 wire(wait for 2 byte)
Maybe I missed something.
I will be grateful for the ideas.
Sorry for English
.>:(
-------------------------------------------------------------------------------------------------------------------------
OK, i check errata sheet
(2.12.1 ), then i replaced dummy phase by alt bytes:Instruction - 1 Wire(0x94)
Address - 4 wire(24 bit all zeros)
Alt Bytes - 4 wire (24 bit 0xFF0000)
Data - 4 wire(wait for 2 byte)
But n
othing happens
, i attach new image, because something change on BK1_IO3.And i attached code where i use HAL to access QUAD SPI.
#stm32f767zi #quad-spi #w25q #bk1_io3