This is the second in a series of guides exploring the use of Rust on the Raspberry Pi Pico. In this guide, I’ll be showing you how to make your lif

The Relational Technologist

submited by
Style Pass
2024-11-29 10:00:05

This is the second in a series of guides exploring the use of Rust on the Raspberry Pi Pico. In this guide, I’ll be showing you how to make your life easier through the use of the cargo run command which is an important part of developing all kinds of applications with Rust.

If you’re not already familiar with Cargo, then I encourage you to start by reading the official Cargo Book provided by the Rust community. At a minimum, read the first section on what Cargo is and why it exists. You’ll be much better equipped to fully appreciate this guide.

From the first guide in this series, I showed you how to blink an LED with Rust on a Pico device. We made use of OpenOCD, gdb and a little bit of Cargo to build the example application’s binary to run on the target Pico device.

The techniques from the guide certainly get the job done in that it gives you all the tooling and setup you need to start building applications for the Pico using Rust. But it’s not a very fun process nor is it one that allows you to iterate quickly when making rapid changes to your source code.

Leave a Comment