Skip to main content
Dub Bartolec
Associate III
April 2, 2025
Solved

STM32MP Linux user state task development on Win11

  • April 2, 2025
  • 2 replies
  • 686 views

Hi All,
Is there any way to cross compile STM32MP linux user state tasks on STM32CubeIDE on Win11.


Best answer by Erwan SZYMANSKI

Hello @tdecker2 ,

In the same wiki article mentioned above, you have a dedicated chapter for WSL, with some limitations mentioned.

Link of the chapter : https://wiki.st.com/stm32mpu/wiki/PC_prerequisites#WSL2_-28experimental-29

[Edit: the mention of WSL in this article is old, maybe some improvements have been done between]

Kind regards,
Erwan.

2 replies

Erwan SZYMANSKI
Technical Moderator
April 3, 2025

Hello @Dub Bartolec ,
Unfortunately, as mention in PC prerequisites article (https://wiki.st.com/stm32mpu/wiki/PC_prerequisites), a Linux environment is needed to most of Linux development step in your project.

Kind regards,
Erwan.

In order 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.
tdecker2
Associate II
April 3, 2025

Maybe the toolchain can run in a WSL (Windows-Subsystem für Linux) environment?

Erwan SZYMANSKI
Erwan SZYMANSKIBest answer
Technical Moderator
April 3, 2025

Hello @tdecker2 ,

In the same wiki article mentioned above, you have a dedicated chapter for WSL, with some limitations mentioned.

Link of the chapter : https://wiki.st.com/stm32mpu/wiki/PC_prerequisites#WSL2_-28experimental-29

[Edit: the mention of WSL in this article is old, maybe some improvements have been done between]

Kind regards,
Erwan.

In order 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.
Dub Bartolec
Associate III
April 3, 2025

Hi Erwan,

That is OK. I am aware of fact that SDK must be used on Linux.

Interestingly, I've managed to compile user state tasks using STM32CubeIDE on Win11 by creating CrossGCC config. That is OK for remote debugging using gdb but to add source code and binary to rootfs it has to be done using SDK.
I thought that maybe ST resolved it on Win11.
It would've been nice to do it in STM32CubeIDE.
I know yocto can be imported into STM32CubeIDE on Linux but I've never went through entire procedure.