Debugging embedded Rust programs using VS Code

In our previous posts, we wrote about generating Rust code for an STM32F7 processor. This was enough to get a simple LED blinking program working but for creating more complicated software we need to be able to develop, compile, deploy and debug from an IDE. We will use the same source code and many of the same tools as in the previous post so make sure to have a look if you want the complete picture. The tools you need to have installed before starting are VS Code with the Rust(rls) extension, a cross-compilation toolchain and GDB debugger (we are using the one provided by ARM) and OpenOCD (for example from here) as the remote debugging server.

Read More

Rust on STM32F7 processor

In this post we will go through the steps necessary to install and configure a Rust cross-compilation environment from Windows to the STM32F7 microprocessor on a Nucleo-144 board. The goal is to create and deploy the “Hello World” of the embedded software world, a blinking LED.

Read More

Rust Raspberry Pi 4 cross-compilation from Windows

In this post I will go through how to install and configure a Rust cross-compilation environment from Windows to the Raspberry Pi 4 running Raspbian. I am assuming that Rust is installed in the Windows system following these instructions and that a Raspberry Pi 4 machine is running with the name raspberrypi and accessible by ssh.

Read More