cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H747 QSPI Flash Dual mode wrong R/W data

AlexVetoshko
Associate II

I am using QUAD SPI in STM32H747 in dual mode. 2 x W25N01GV flash memory chips are connected. The problem is that the odd data (bank 1, flash 1) is written / read normally, and the data of the second bank (flash2) is shifted by 4 bytes (in the first four bytes the data is incorrect, then the data is normal). I used CS1 for both chips

What could be the problem?

Example :

Write :

FlashTestBuffer1[16] = {1 2 3 4 5 6 7 8 9 0 0 0 0 0 0};

m_Flash-> memWrite(0, FlashTestBuffer1, 10);

Read:

m_Flash->memRead(0, FlashreadBuffer, 10);

result:

1 231 3 231 5 231 7 231 9 2

Basic functions and configuration of QSPI in attached files

P.S. Just for more information, I am writing array from 32 bytes with values 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15, 16, 17, 18,19,20,21,22,23,24,25,26,27,28,29,30,31,32

But when read, I have the next result (As I wrote, it has a shift on 4 bytes in the second bank )

1 REPLY 1
AShel.1
Associate III

Would you please share how you've resolved the issue? I'm facing same problem with bank 2