we use the S25HL512T with QUAD-SPI interface and find some issue about QPI read.
some test pattern as follow:
Does somebody encounter the same problem?
Are you performing the program operation across page boundaries? I would like to inform you that the default size of the program buffer is set to 256, means page boundaries occur at every 256th memory location. If the page boundary is crossed during the page program operation, the address gets wrapped and programming starts from the starting of that particular page. Can you confirm that your program operation is not crossing page boundaries?
We tested these addresses
I would like to point out that there is difference between Quad SPI mode and QPI mode.
Quad mode is enabled by the below configuration register bit
QPI mode is enabled by the below configuration register bit
Could you please confirm which mode are you using?
We set the output drive impedance register to 001 (120 ohms), which is normal.
Who can help explain the details about the settings?
Why does it cause it to read the failed value (read a byte is 0x0F or 0xF0)?
IOIMPD[2:0] bits are required to select the IO driver output impedance. It is used to adjust the drive strength to meet the systems signal integrity requirements.
3. I can provide the sequence, if we don't configure the 120 ohm impedance.
The reading process became abnormal, even read ID command, because it has an 0x0F value.
Data = S25HS_Read_Reg(REG_ADDR_CONG4);
Data |= (1 << 5); //used 120 ohm
//Set QPI mode and 4 bytes addressing for 512M bit = 64 MB
Data = S25HS_Read_Reg(REG_ADDR_CONG2);
Data = (Data | 0xC0); // 4 bytes
//Data = (Data | 0x40); // 3 bytes
printf(" Erase \r\n");
printf("D %08X D\r\n", S25HS_QuadSPI_Read_Test256());
printf(" Read \r\n");
TIM10->CNT = 0;
TS = TIM10->CNT;
printf("~~~~ TS :%d us\r\n", TS);
Apologies for the delay in responding.
We would need some more information.