Programming

Programming for Embedded Systems

Guides spanning C, C++, Python, Verilog, Rust, FreeRTOS, Embedded Linux, and more — tools, code snippets, and interactive quizzes.

Tools & Setup Compilation Code Snippets Quizzes
  Choose a Language
C

C Programming

The foundation of embedded systems. Pointers, memory management, structs, and low-level hardware control.

ProceduralPointersStructsGCC
C++

C++ Programming

Object-oriented extension of C. Classes, inheritance, templates, and the Arduino framework are built on C++.

OOPClassesArduinoG++
Py

Python Programming

Rapid scripting and automation. MicroPython runs on ESP8266 and Raspberry Pi for IoT applications.

ScriptingMicroPythonRaspberry PiIoT
HDL

Verilog / HDL

Hardware Description Language for FPGAs. Design digital circuits in code — synthesised to real gates on silicon.

FPGARTL DesignVivadoModelSim
ASM

Assembly Language

The instructions a compiler generates for you — AVR and ARM assembly, registers, and why it still matters.

AVR ASMARM ASMOpcodesRegisters
µPy

MicroPython

A full Python interpreter on a microcontroller. Flashing firmware, the REPL, and hardware-specific modules.

ESP32PyboardREPLmachine module
Rs

Rust for Embedded

Memory-safe systems programming without a garbage collector — an increasingly popular C alternative for firmware.

Memory SafetyCargono_stdembedded-hal
Git

Git & Version Control

Tracking firmware changes properly — commits, branches, and the workflow every team (even of one) should use.

CommitsBranchesGitHub.gitignore
$_

Linux & Shell Scripting

The command line skills behind cross-compiling, flashing, and automating builds for Linux-based embedded boards.

BashCross-CompileRaspberry PiMakefiles
JS

JavaScript for IoT

Node.js and Node-RED for building IoT dashboards and automations that talk to microcontrollers over the network.

Node.jsNode-REDMQTT.jsDashboards
µC

Bare-Metal C Programming

Writing firmware with no HAL and no vendor library — direct register access, your own startup code, and a custom linker script.

RegistersLinker ScriptStartup CodeNo HAL
RTOS

FreeRTOS in Practice

Actually writing tasks, queues, and semaphores in FreeRTOS — moving from the RTOS Fundamentals tutorial's theory into real code.

TasksQueuesSemaphoresxTaskCreate
Tux

Embedded Linux

Buildroot vs Yocto, U-Boot, and device drivers — what it actually takes to build a custom Linux image for a board like the BeagleBone.

BuildrootYoctoU-BootDevice Tree
Test

Unit Testing Embedded C

Testing firmware logic on your PC before it ever touches hardware — the Unity framework, mocking peripherals, and where HIL testing fits in.

UnityMockingHILCI
Make

Build Tools: GCC & CMake

What actually happens between writing C code and getting a .hex file — and how CMake manages a multi-file embedded project's build.

GCCCMakeMakefilesCross-Compiling
Doc

Coding Standards & Doxygen

MISRA C, the Barr Group standard, and writing Doxygen comments that generate real, browsable documentation from your source code.

MISRA CDoxygenStyle GuideDocumentation