Bare-metal STM32F401
Built with no IDE: my own startup code, linker script and Makefile. A custom bootloader comes next.
View on GitHubAbid Attayi
I write embedded firmware for real hardware: RTOS kernels, device drivers and flight software. Mechatronics Engineering at the University of Waterloo.
Real numbers from firmware I wrote and hardware I brought up.
Threads scheduled by a kernel I wrote from scratch in C.
CAN frames my STM32 firmware decodes and stores every second.
Embedded subsystems running on SPI, I2C and UART drivers I wrote.
Sensors validated on a mixed-signal ASIC program.
Featured project
A pre-emptive multithreading kernel in C on an STM32 (ARM Cortex-M4). Written solo. It is not a port of an existing RTOS.
SysTick fires every millisecond and counts down the running thread's time budget. That tick is the kernel's clock.
When the budget hits zero the kernel pends PendSV, which saves the outgoing thread's registers and stack pointer.
The scheduler advances to the next thread and reloads its timeslice. Up to 16 threads, each with a 1 KB stack carved from a 16 KB pool.
Calls go through SVC, which outranks PendSV, so a call is never interrupted mid-switch. Cooperative and pre-emptive threads run side by side.
A simulation of the scheduling policy. I wrote all of the kernel's C; the assembly stubs came with the course.
Smaller projects, all on real boards or real logic.
Built with no IDE: my own startup code, linker script and Makefile. A custom bootloader comes next.
View on GitHubRTC timekeeping, an OLED display over I2C running on drivers I wrote, and an interrupt-driven rotary encoder to set the alarm.
An x4 decoder in VHDL driving a 5-bit up/down counter, checked in simulation with a self-checking testbench.
Design team · Since Sep 2025
Embedded Firmware Developer on the flight software subteam of the Waterloo Aerial Robotics Group.
A networked Raspberry Pi that takes firmware over the network and flashes a target STM32 over SWD with OpenOCD, so the team can flash and debug boards without being in the lab.
STM32 firmware in C that parses CAN frames into DroneCAN messages and stores them to SD card for flight diagnostics, at over 200 frames per second.
STM32 firmware in C that reads ADC inputs over SPI and turns them into timer-generated PWM for servo validation, with 10-bit resolution and under 1 ms response.
Three co-op terms, each one a layer closer to the silicon.
Each measurement halves the pool of candidate trim codes.
I'm a Mechatronics Engineering student at the University of Waterloo, and I like working where code meets copper.
I want to write firmware for a living. My first co-op had me testing image sensors. My second had me writing STM32 drivers. Now I bring up silicon over SPI at onsemi. Every term has moved me one layer closer to the hardware, and that is where I want to stay.
I learn best by building the thing myself, which is why I wrote a kernel instead of only configuring one.
I'm looking for embedded and firmware internships. The fastest way to reach me is email.