Categories
hardware internet tech

Remoticon Video: Pigweed Brings Embedded Unit Testing, Library Integration to Commandline

(*2*)

When it comes to embedded engineering, toolchains are the worst. Getting a brand new toolchain up and operating accurately is incessantly laborious, and incessantly vulnerable to breaking when the IDE or different tool is upgraded. A plethora of various toolchains for various {hardware} makes issues much more murky, and if you need to get into time-saving tips like automatic trying out, you’re in for a wild trip.

Those ache issues led to the introduction of the Pigweed challenge. As Keir Mierle demonstrates on this workshop from the 2021 iandroid.eu Remoticon, Pigweed is a collection of libraries to make operating with embedded building extra hacker-friendly. The assortment is accessed by means of commandline, and coordinates paintings with current libraries to ship unit trying out, linting, static research, logging, and dealing with key-value retail outlets, all along extra regularly called-for duties like compiling and flashing.

Demonstrated on a Teensy microcontroller and an STM32 Discovery board, the presentation drives house the application of Pigweed, a Google challenge that used to be launched as open supply again in March of 2021. Graphical IDEs for those platforms are nowhere in sight, but take a look at firmware is constructed and flashed to those units with relative ease. Unit trying out, historically a sticky topic for on-chip programs, is demonstrated each emulated at the pc facet, and operating at the forums themselves. As the features of microcontrollers have ballooned in recent times, writing checks for current purposes and confirming them all the way through new building is turning into essential to your skillset.

There’s a lot more proven off right here, so (*3*)take hold of the workshop repository to practice alongside. It’s nonetheless thought to be experimental, and the irony of getting to be told the intricacies of the Pigweed toolchain to ease the ache of alternative toolchains isn’t misplaced on us. However, the general public studying can have their very own affinity for the power to use unified equipment and commandline automation; it is a attention-grabbing approach to ship quite a few robust tool building tactics to low-level {hardware} initiatives.

(*1*)[embedded content]