2025-04-02 4:32 AM
Hi All,
Is there any way to cross compile STM32MP linux user state tasks on STM32CubeIDE on Win11.
Solved! Go to Solution.
2025-04-03 2:35 AM - edited 2025-04-03 2:36 AM
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.
2025-04-03 2:17 AM
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.
2025-04-03 2:30 AM
Maybe the toolchain can run in a WSL (Windows-Subsystem für Linux) environment?
2025-04-03 2:35 AM - edited 2025-04-03 2:36 AM
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.
2025-04-03 3:03 AM
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.