Skip to main content
Associate
May 15, 2026
Solved

STM32MP257 M33 with Freertos & OpenAmp

  • May 15, 2026
  • 3 replies
  • 122 views

Hi everyone,

I am working on the STM32MP257-EVAL board, where my Cortex-M33 application requires both FreeRTOS and OpenAMP middleware to run together.

After referring to the STM32CubeMPU packages, I found separate example projects:

  • One for FreeRTOS

  • One for OpenAMP (running in bare-metal environment)

I tried combining both examples into a single application. The FreeRTOS part is working correctly, but OpenAMP hangs during initialization.

After debugging, I noticed that libmetal is getting compiled for the generic platform instead of the FreeRTOS platform. To address this, I changed the toolchain configuration from:

-DCMAKE_TOOLCHAIN_FILE=cmake/platforms/stm32mp-generic-gcc.cmake

to:

-DCMAKE_TOOLCHAIN_FILE=cmake/platforms/stm32mp-freertos-gcc.cmake

However, this results in multiple compilation errors. It seems the provided libmetal port may not be fully compatible with the FreeRTOS platform setup.

Has anyone successfully integrated FreeRTOS + OpenAMP together on STM32MP257 (M33 core)?
Are there any reference projects, application notes, or examples available for this combined use case?

Any guidance would be greatly appreciated.

Thanks.

Best answer by Hs26

if anybody facing a same problem, they can use this example  

STM32CubeMP2/Projects/STM32MP257F-EV1/Applications/USBPD/USBPD_DRP_UCSI at main · STMicroelectronics/STM32CubeMP2 · GitHub

 

apparently, it contains Openamp (libmetal) package in RTOS flavour. 

3 replies

Hs26AuthorBest answer
Associate
July 29, 2026

if anybody facing a same problem, they can use this example  

STM32CubeMP2/Projects/STM32MP257F-EV1/Applications/USBPD/USBPD_DRP_UCSI at main · STMicroelectronics/STM32CubeMP2 · GitHub

 

apparently, it contains Openamp (libmetal) package in RTOS flavour. 

Visitor
August 10, 2026

Hi ​@Hs26 ,

Were you able to debug the Cortex-M33 core independently?

If yes, could you please share the steps or procedure you followed to debug the M33 in bare-metal/standalone mode, without booting the Cortex-A35/Linux?

Your guidance would be greatly appreciated.

Thank you!

Visitor
August 10, 2026

Hi ​@Hs26 ,

Were you able to debug the Cortex-M33 core independently?

If yes, could you please share the steps or procedure you followed to debug the M33 in bare-metal/standalone mode, without booting the Cortex-A35/Linux?
When I try to debug the Cortex-M33 independently, I get the error shown in the attached screenshot.

Your guidance would be greatly appreciated.

Thank you!