Question: Hardware for easy start in embedded rust
Rust for Embedded Systems: Current state, challenges and open problems
Guidance on the Compatibility of Rust with STM32F3 Microcontroller and Various Sensors/Device
Which hardware to choose for learning embedded Rust?
Videos
One of my latest hobby is doing some simple hardware projects with Arduino. I've been doing it in Arduino IDE with their dialect of C++.
Frankly I find both are painful to use. Arduino IDE is a tiny bit smarter than windows notepad and C/C++ is hard get right due to unsafely.
I'd love to try using rust and use Intellij IDEA for programming my projects. Would be great to be able to to use cargo for managing dependencies, running tests and (ideally) deploying to device.
I tried setting up rust avr, but it's too unstable and I couldn't even get their blink sample project to work due to some llvm bugs.
The question is: what analogous hardware should I consider investing in to use instead of Arduino? What microcontroller family have the best support in rust ecosystem?
Hello my fellow Rustaceans,
I am a beginner in Rust programming and have completed a few common beginner projects. I am looking to dive into embedded systems using Rust and am trying to decide which hardware platform to start with. Specifically, I am considering the Raspberry Pi, STM32 Microcontrollers, and Arduino Boards. Each platform has its own merits, but I'm unsure which one would be the best fit for a beginner in both embedded systems and Rust.
I am considering factors like the ease of getting started with Rust on the platform, the availability of learning resources and community support, the potential for growth and learning advanced concepts, and the practicality and relevance of projects that can be done with each hardware.
Could you please share your experiences and recommendations on which platform would be the best to start with? Any specific models or starter kits would also be greatly appreciated.
Thank you in advance for your help!
How are you finding it ? Are you using it on bare metal or with an (RT)OS ? What compiler are you using ? How is it better than C/C++ ?
Thanks
Edit
I'm looking at Rust for the fun of it. I'm just getting into it.
There are some things I like like:
- using {} as a placeholder for a var in a print statement. I don't like println!. Makes me think of Pascal.
- using AND, XOR, etc for bitwise ops.
- directly stating the size and type of the number - i32, u8, etc, instead of char, double, long, etc.
- slicing arrays is nice. Maybe I've been working in Python too much lately.
- I love /// and //! for generating doc right from the code comments.
Haven't used it enough to know what I don't like yet.