cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to access QuadSPI Flash 2 with stm32h747i

ujwal_kumar_N_L
Associate II

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.

2 REPLIES 2
KDJEM.1
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

>>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?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..