2024-07-11 11:51 PM
Hi,
Is there an environment that allows me to compile Rust code for STM32 just like STM32CubeIDE allows me to compile C code? Or is it currently only possible to use the command line?
Thanks.
2024-07-12 12:40 AM
Hi,
A reaaly common solution is the extension " rust analyser " of VS Code. For compilation you can use a cargo run in cmd.
If it's for a personal use, you also can use RustRover from JetBrain (but if it's for commercial purpose, you'd need to purchase a license).
I think the best is to see by yourself the solutions proposed by the community : https://www.rust-lang.org/tools .
Hope it will help you.
2024-07-12 08:13 AM
Thank you!
However, maybe I didn't express myself well. I would like to understand if there is an IDE that allows me to debug and compile Rust code for STM32 without ever using the prompt, just like with STM32CubeIde and the C language. I have seen online that JetBrains offers CLion and RustRover, but RustRover requires the prompt while CLion does not. Additionally, I have seen that it is possible to install a plugin directly on STM32CubeIde that allows me to debug and compile with Rust. Can you tell me more about this? Thank you very much.
2024-07-15 01:51 AM
Well if you want to stick to STM32CubeIDE, there is a Rust IDE made by Eclipse : Rust Corrosion. Since CubeIDE is base on the Eclipse framework, you can install Corrosion from the market place: Help > Eclipse Marketplace...
Then search "rust" and install it:
I've never used it but it looks like you can build and debug with it.
I let you try it out and see if it works for you.
I'd be interested in a feedback.
2024-07-15 06:39 AM
Thank you very very much, as soon as i have installed and tested it, i'll give you feedback.
2024-07-18 05:28 AM - edited 2024-07-18 08:18 AM
Also with VS code, along with rust-analyzer extension, there is also "debugger for probe-rs" extension that allows to debug Rust applications on STM32. You need to install probe-rs tools. There are still some config files to edit manually but it is mostly GUI operation.
2024-07-18 05:32 AM
Thank you! I'll give it a try.
2024-08-05 02:16 AM
Did it work out for you as you expected?
If so could you mark this topic as solved?
2024-10-30 08:51 AM
Hi simonemansueti,
Did to ever get Rust working as you wanted?