Skip to main content
Associate III
September 5, 2025
Solved

NOR Flash on OSPI bus with ST MX25UM51245G Library

  • September 5, 2025
  • 2 replies
  • 288 views

Hello, I am struggling to use the following ST library for a project I am working on, I am using an stm32u5 with an MX25UM51245G NOR chip connected to the OSPI1 bus.  The library provided is setup to use XSPI_HandleTypeDef, Can this library be used when using the OSPI bus?

ST MX25UM51245G Library on github 

Thank you

Best answer by KDJEM.1

Hello @brohr01 ,

 

Yes, you can use XSPI_HandleTypeDef with STM32U5.

I recommend you to look at the main.c for OSPI_NOR_MemoryMapped example and get inspired. This example use XSPI_HandleTypeDef with OCTOSPI interface:

XSPI_HandleTypeDef OSPIHandle;

 

I hope this answer you request.

Thank you.

Kaouthar

2 replies

KDJEM.1
KDJEM.1Best answer
Technical Moderator
September 8, 2025

Hello @brohr01 ,

 

Yes, you can use XSPI_HandleTypeDef with STM32U5.

I recommend you to look at the main.c for OSPI_NOR_MemoryMapped example and get inspired. This example use XSPI_HandleTypeDef with OCTOSPI interface:

XSPI_HandleTypeDef OSPIHandle;

 

I hope this answer you request.

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.
KDJEM.1
Technical Moderator
September 26, 2025

Hello @brohr01 ;

 

Is my reply answered your request? 

If yes, please click on Accept as Solution on the reply which answered your question.

 

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.