zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.12k stars 6.21k forks source link

STM32 QSPI/OSPI XiP support #47670

Open msasdk opened 2 years ago

msasdk commented 2 years ago

Is your enhancement proposal related to a problem? Please describe. Currently, Excute in Place/memory mapped mode on QSPI/OSPI flash does not seem to be implemented on STM32. STM32H750VB comes with 128K of internal flash which makes its use with Zephyr limited.

Describe the solution you'd like Implement XIP for STM32 on external QSPI/OSPI NOR flash. Would be handy if it's selected per default where implemented by CONFIG_SOC_STM32x just like for instance with CONFIG_SOC_SERIES_NRF52X.

Describe alternatives you've considered N/A

Additional context N/A

FRASTM commented 1 year ago

See helpful Application Notes AN4760: Quad-SPI interface on STM32 microcontrollers and microprocessors and AN5050: Octo-SPI interface on STM32 microcontrollers

joelguittet commented 1 year ago

@FRASTM you recently modified the milestone here. Is it a feature that you are working on ? I'm also interested by this for the STM32F746 Discovery, with the proper openocd config to flash the QSPI memory. Thanks for the update!

FRASTM commented 1 year ago

STM32F746

Yes, Actually, as a very first target we will have stm32U5 for OSPI and probably stm32l475 for QSPI, the stm32CubeProgrammer as their runner.

MaheshaHManchegowda-eaton commented 1 year ago

Is STM32 QSPI/OSPI XiP support available now??

erwango commented 1 year ago

Is STM32 QSPI/OSPI XiP support available now??

This is not available for now. This is in the plans but not for current release and next one at risk.

MaheshaHManchegowda-eaton commented 12 months ago

@erwango product designed with STM32H730 and it needs XIP. When can we expect XIP support for STM32 in Zephyr?? Are there any alternatives at present?? If possible share work in progress code.

erwango commented 12 months ago

@MaheshaHManchegowda-eaton Sorry, we don't have any workeable solution available for sharing right now. Please contact ST official support channel for more information.

FRASTM commented 5 months ago

In between you can see my branch https://github.com/FRASTM/zephyr/tree/memmap_xip