Skip to main content
Associate III
June 11, 2024
Solved

How to enable QuadSPI on STM32MP131F?

  • June 11, 2024
  • 1 reply
  • 1056 views

Stnoobs_0-1718064431129.pngStnoobs_1-1718064625953.pngStnoobs_2-1718064722235.png

There's a problem enabling QuadSPI in CubeIDE. After enabling QSPI and generating the code, compile errors occur.

Here are the issues I've identified:

  1. XSPI_HandleTypeDef is not defined.
  2. There's no define related to QSPI (or XSPI) Enable in the stm32mp13xx_hal_conf.h file.
  3. Declarations for HAL_XSPI_MspInit and HAL_XSPI_MspDeInit functions' code are missing in the stm32mp13xx_hal_msp.c file.
  4. HAL_XSPI_MODULE_ENABLED is not present in stm32mp13xx_hal_conf.h.

 

Thank you for your help.

Best answer by DBELL.1

Hello @Stnoobs ,

 

1. right due to the absence of HAL_XSPI_MODULE_ENABLED
2. correct
3. I got these ones, but i don't have it while using USART1, and the MX_USART1_UART_Init() is empty
4. correct
 

So, for me, the main issue with QUADSPI is the missing of HAL_XSPI_MODULE_ENABLED in the conf.h (even commented)
And I have the same kind of issues as you with USART1, and furthermore the init is not done.
 

I will try to report the problem to the appropriate team
Thank you
regards,
David B.
 

1 reply

DBELL.1
DBELL.1Best answer
ST Employee
June 26, 2024

Hello @Stnoobs ,

 

1. right due to the absence of HAL_XSPI_MODULE_ENABLED
2. correct
3. I got these ones, but i don't have it while using USART1, and the MX_USART1_UART_Init() is empty
4. correct
 

So, for me, the main issue with QUADSPI is the missing of HAL_XSPI_MODULE_ENABLED in the conf.h (even commented)
And I have the same kind of issues as you with USART1, and furthermore the init is not done.
 

I will try to report the problem to the appropriate team
Thank you
regards,
David B.