Hacker News new | ask | show | jobs
by estebank 2760 days ago
For anyone that might be interested, there were some efforts some time back to get Rust running on the Teensy[1][2][3][4], and although there have been no recent updates, the code is available to use and should still be relevant although there have been changes[5][6][7] in the meantime.

[1]: https://github.com/jamesmunns/teensy3-rs

[2]: https://branan.github.io/teensy/

[3]: https://disconnected.systems/blog/bare-metal-rust-on-the-tee...

[4]: https://github.com/SimonSapin/teensy-clock

[5]: https://rust-embedded.github.io/book/

[6]: https://josh.robsonchase.com/embedded-bootstrapping/

[7]: https://github.com/rust-embedded/wg/issues/40

1 comments

Hey,

Author of the first link above. The Teensy3 crate was some of my first embedded work, I was working with SimonSapin (author of the 4th link) at RustFest to get something working. That library wraps some of the Teensyduino code using bindgen, which gives you the ability to write application code using Rust.

Overall, the Teensy 3.1/3.2 family wasn't great for developing Rust, as they don't have debugger (SWD, similar to JTAG) lines available, meaning you have to use the serial bootloader, and rely on a serial port for all debugging. I believe the newer version of the board expose SWD lines now, so it's not a problem.

Let me know if you have any questions :)

Definitely check out the embedded WG[1], and the new Rust homepage[2]

[1]: https://github.com/rust-embedded/wg [2]: http://beta.rust-lang.org/what/embedded