FOSSMeet 2018

FOSSMeet 2018

FOSSMeet is an annual event at NIT Calicut that brings together the Free and Open Source Community from around the country.

Pramode C.E

@pramode75

Embedded Systems Programming using Rust (workshop)

Submitted Dec 17, 2017

This hands-on workshop will provide a quick introduction to the Rust programming language and how it can be used to do “bare metal” programming of small ARM Cortex-M microcontrollers. Participants will get an opportunity to play with Rust on TI Launchpads (http://www.ti.com/tool/EK-TM4C123GXL)!

Code written in C/C++ forms the backbone of our computing infrastructure - Operating system kernels, compilers/interpreters, networking stacks, embedded systems, web browsers, ... However, both these languages have a lot of memory safety issues associated with them (like buffer overflows, use-after-free, null pointer dereferencing, dangling pointers) which results in programs being riddled with hard to track down bugs. Rust offers a solution: code written in “safe Rust” is guaranteed to be completely memory safe, and will have performance which is as good (or better) than equivalent C/C++ implementations. Rust achieves this combination of memory safety and high performance by utilizing cutting edge research in type theory. This workshop will provide the participants with a glimpse into the magic which makes it possible for us to write safe code using high level abstractions which gets compiled down to compact and highly efficient machine code running “bare-metal” on small ARM microcontrollers!

Outline

  1. Basic language syntax
  2. Tools: Cargo, rustup, clippy etc
  3. Idiomatic Rust: using iterator chains to solve problems
  4. Building a cross compilation toolchain for ARM Cortex-M microcontrollers
  5. GPIO programming basics
  6. Unsafe Rust
  7. Writing Rust code to control GPIO pins of an ARM Cortex-M microcontroller

Speaker bio

I am a Free Software enthusiast from Thrissur, Kerala. More details: http://pramode.net

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

FOSSMeet is an annual event on Free and Open Source Software, conducted at National Institute of Technology, Calicut. The funnel is a space for proposals and voting on events. more