Associate III
June 21, 2023
Question
STM32H753XI MCU with W25Q512 in dual flash mode
- June 21, 2023
- 3 replies
- 2946 views
Hello,
I'm using STM32H753XI MCU with two W25Q512JV(its 64Mb) in dual mode, the nCS and data lines are separate, Clock line is same. I've configured the QUAD SPI in dual flash mode as mentioned in AN4760. I'm trying to read the sectors from first flash then I see that the alternate bytes are not read correctly.
hqspi.Instance = QUADSPI;
hqspi.Init.ClockPrescaler = 2;
hqspi.Init.FifoThreshold = 4;
hqspi.Init.SampleShifting = QSPI_SAMPLE_SHIFTING_HALFCYCLE;
hqspi.Init.FlashSize = 31;
hqspi.Init.ChipSelectHighTime = QSPI_CS_HIGH_TIME_1_CYCLE;
hqspi.Init.ClockMode = QSPI_CLOCK_MODE_0;
hqspi.Init.FlashID = QSPI_FLASH_ID_1;
hqspi.Init.DualFlash = QSPI_DUALFLASH_ENABLE;
if (HAL_QSPI_Init(&hqspi) != HAL_OK)
{
Error_Handler();
}Next, I've tried using single flash at a time with FSEL bit, I'm able to read the data from one flash only. second flash write/ read operation is not happening.
Am I missing some configuration part?
Thanks,
