AnsweredAssumed Answered

STM32F767ZI QUAD SPI

Question asked by Daniil Lukashevich on Aug 15, 2017
Latest reply on Aug 16, 2017 by Daniil Lukashevich

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_NCS

All 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 http://www.st.com/content/ccc/resource/technical/document/errata_sheet/group0/23/a6/11/0b/30/24/46/a5/DM00257543/files/D… (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 nothing happens, i attach new image, because something change on BK1_IO3.

And i attached code where i use HAL to access QUAD SPI.

Outcomes