Skip to main content
Explorer
December 26, 2023
Question

Unable to access QuadSPI Flash 2 with stm32h747i

  • December 26, 2023
  • 2 replies
  • 852 views

Hi im currently using STM32H747I EVK board and working on QSPI ,im able to perform all the QSPI operations in FLASH1 but when u configure it as the FLASH2 nothing works .

static void MX_QUADSPI_Init(void)
{

/* USER CODE BEGIN QUADSPI_Init 0 */

/* USER CODE END QUADSPI_Init 0 */

/* USER CODE BEGIN QUADSPI_Init 1 */

/* USER CODE END QUADSPI_Init 1 */
/* QUADSPI parameter configuration*/
hqspi.Instance = QUADSPI;
hqspi.Init.ClockPrescaler = 1;
hqspi.Init.FifoThreshold = 1;
hqspi.Init.SampleShifting = QSPI_SAMPLE_SHIFTING_HALFCYCLE;
hqspi.Init.FlashSize = 25;
hqspi.Init.ChipSelectHighTime = QSPI_CS_HIGH_TIME_8_CYCLE;
hqspi.Init.ClockMode = QSPI_CLOCK_MODE_0;
hqspi.Init.FlashID = QSPI_FLASH_ID_2;
hqspi.Init.DualFlash = QSPI_DUALFLASH_DISABLE;
if (HAL_QSPI_Init(&hqspi) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN QUADSPI_Init 2 */

/* USER CODE END QUADSPI_Init 2 */

}

System clock is 64MHz i have also configured the Pins.

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    January 2, 2024

    Hello @ujwal_kumar_N_L and welcome to STCommunity :),

    Could you please specify which STM32CubeMX version are you using? Please try with the latest version: STM32CubeMX 6.10.0

    Do you have the same issue when you using  QSPI_MemoryMappedDual example, without generating the code with STM32CubeMx? 

    Thank you.

    Kaouthar

    Graduate II
    January 2, 2024

    >>STM32H747I EVK board

    Do you mean the STM32H747I-EVAL board of the STM32H747I-DISCO board?

    What MICRON part is populated on the board? What pins are you using? Is SB6 open or closed?