3 ms·
AVR support merged into Rust nightly
- shepmaster 6y agoNote that there is still plenty of work to be done in LLVM, Rust, and the ecosystem. For example, function pointers accessed in global variables have the incorrect relocation applied. This notably affects the ability to use futures executors. However, a lot of things do work, and we are always looking for more people to contribute! Check out https://book.avr-rust.com/ https://book.avr-rust.com/ for more.
- mfgs 6y agoWhat does this mean for someone who is quite familiar with AVR but new to Rust? How much of what I can normally achieve in my AVR projects can now be done under Rust?
- zargon 6y agoIn theory, Rust can completely replace C for AVR development. Based on what shepmaster said, certain Rust features may not work yet. I'm also a Rust newbie. This article is a great intro to Rust for microcontrollers (but it's for ARM Cortex): https://interrupt.memfault.com/blog/zero-to-main-rust-1 https://interrupt.memfault.com/blog/zero-to-main-rust-1
- karmakaze 6y agoThis is really cool. I had seen some ATmega microcontrollers but not it's AVR naming. https://en.wikipedia.org/wiki/AVR_microcontrollers https://en.wikipedia.org/wiki/AVR_microcontrollers
- pedalpete 6y agoPerfect timing, I just started learning how to get Rust running on Arduino Nano yesterday. The Arduino tooling left a bit to be desired, and we don't want to re-write when we move from prototype to production. I'm sure I'll make mistakes which means I'll have to re-write a ton, but at least this is starting to get me part-way to a good working environnment.