Author Topic: Has anybody used Rust language on STM32 or ESP32?  (Read 1357 times)

0 Members and 1 Guest are viewing this topic.

Offline FlyingDutchTopic starter

  • Regular Contributor
  • *
  • Posts: 144
  • Country: pl
Has anybody used Rust language on STM32 or ESP32?
« on: March 18, 2022, 06:07:53 am »

Hello Forum,

has anybody used Rust compiler for small MCUs Like STM32 or ESP32. Today I was watching tutorials about Rust language and I am curious how programs written in this language prove itself on small MCUs (like smaller series of STM32 or ESP32(Xtensa). I am also curious about availability of libraries for control hardware (like for example ADCs or varoius sensor) from crate.io, or "unsafe" code and C library has been used often. I understand that Rust language is much more safe than C/C++ (memory safe and threads safe), but I would like to know if in your opinion it is worth to switch from C++ to Rust (in context of smaller ARMs)? I am going to try Rust on STM32 and ESP32 within several next days.

Best Regards
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4046
  • Country: nz
Re: Has anybody used Rust language on STM32 or ESP32?
« Reply #1 on: March 18, 2022, 08:07:41 am »
People have been using Rust on quite a number of different RISC-V microcontroller boards and CPU types for several years now. Many have as little as 16k SRAM.

https://github.com/riscv-rust/

 
The following users thanked this post: FlyingDutch, DiTBho

Offline FlyingDutchTopic starter

  • Regular Contributor
  • *
  • Posts: 144
  • Country: pl
Re: Has anybody used Rust language on STM32 or ESP32?
« Reply #2 on: March 18, 2022, 08:20:47 am »
I have logan-nano board with RISC-V after STM32 I would try this board too.

Best regards
 

Offline lucazader

  • Regular Contributor
  • *
  • Posts: 221
  • Country: au
Re: Has anybody used Rust language on STM32 or ESP32?
« Reply #3 on: March 19, 2022, 09:04:16 am »
Would be great to see how you get on with this.
What pitfalls you find. what benefits traps other things like that!

Good luck I'm interested to see how you get on.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf