Skip to content

hal_stm32: stm32h5: Add XSPI1 compatibility macros#328

Open
Ayushkothari96 wants to merge 1 commit intozephyrproject-rtos:mainfrom
Ayushkothari96:fix-stm32h5-xspi-compatibility
Open

hal_stm32: stm32h5: Add XSPI1 compatibility macros#328
Ayushkothari96 wants to merge 1 commit intozephyrproject-rtos:mainfrom
Ayushkothari96:fix-stm32h5-xspi-compatibility

Conversation

@Ayushkothari96
Copy link

@Ayushkothari96 Ayushkothari96 commented Nov 15, 2025

Note: This PR is part 1 of 2 for fixing issue #99191.

Related PR:

Fixes zephyrproject-rtos/zephyr#99191

STM32H5 series uses OCTOSPI naming instead of XSPI for the peripheral instances. Add compatibility macros to alias XSPI1 to OCTOSPI1 to maintain driver compatibility across STM32 series.

This resolves compilation errors when using the XSPI PSRAM driver on STM32H573 and other STM32H5 devices.

Changes:

  • Added XSPI1, XSPI1_NS, XSPI1_S compatibility macros for STM32H5
  • Follows existing HAL legacy pattern for backward compatibility
Fixes zephyrproject-rtos/zephyr#99191

STM32H5 series uses OCTOSPI naming instead of XSPI for the
peripheral instances. Add compatibility macros to alias XSPI1
to OCTOSPI1 to maintain driver compatibility across STM32 series.

This resolves compilation errors when using the XSPI PSRAM driver
on STM32H573 and other STM32H5 devices.

Signed-off-by: Ayush Kothari <ayushkot96@gmail.com>
Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed this should be first integrated to H5 official Cube delivery, or at least acknowledged by the team in charge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants