Now at onsemi Embedded Systems Validation

Abid Attayi

I write embedded firmware for real hardware: RTOS kernels, device drivers and flight software. Mechatronics Engineering at the University of Waterloo.

Measured, not guessed.

Real numbers from firmware I wrote and hardware I brought up.

RTOS kernel16

Threads scheduled by a kernel I wrote from scratch in C.

WARG flight firmware200+

CAN frames my STM32 firmware decodes and stores every second.

Teledyne DALSA5+

Embedded subsystems running on SPI, I2C and UART drivers I wrote.

onsemi40+

Sensors validated on a mixed-signal ASIC program.

Featured project

An RTOS kernel, from scratch.

A pre-emptive multithreading kernel in C on an STM32 (ARM Cortex-M4). Written solo. It is not a port of an existing RTOS.

01 · SysTick

It starts with a 1 ms tick.

SysTick fires every millisecond and counts down the running thread's time budget. That tick is the kernel's clock.

02 · PendSV

Time's up. Swap.

When the budget hits zero the kernel pends PendSV, which saves the outgoing thread's registers and stack pointer.

03 · Scheduler

Round-robin picks who's next.

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.

04 · SVC

System calls stay safe.

Calls go through SVC, which outranks PendSV, so a call is never interrupted mid-switch. Cooperative and pre-emptive threads run side by side.

Live schedulerRound-robin, 1 ms tick
Running thread 0

A simulation of the scheduling policy. I wrote all of the kernel's C; the assembly stubs came with the course.

More builds.

Smaller projects, all on real boards or real logic.

In progress

Bare-metal STM32F401

Built with no IDE: my own startup code, linker script and Makefile. A custom bootloader comes next.

View on GitHub
CMakeLinker script
2026

STM32 alarm clock

RTC timekeeping, an OLED display over I2C running on drivers I wrote, and an interrupt-driven rotary encoder to set the alarm.

CI2CRTCInterrupts
2025 · Pair project

Quadrature encoder decoder

An x4 decoder in VHDL driving a 5-bit up/down counter, checked in simulation with a self-checking testbench.

VHDLFSMTestbench

Design team · Since Sep 2025

Flight firmware at WARG.

Embedded Firmware Developer on the flight software subteam of the Waterloo Aerial Robotics Group.

01

Remote flash and debug

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.

02

CAN data logger

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.

03

Motor tester

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.

Experience.

Three co-op terms, each one a layer closer to the silicon.

Now
onsemi
Embedded Systems Validation Developer
Sep 2026 to Present · Waterloo, ON
  • Bring up a mixed-signal biosensor ASIC for glucose monitoring at the register level over SPI, and own its oscillator trim routine: a binary search converges on the target frequency, then I burn the final code to OTP.
  • Wrote a temperature and humidity sensor driver from the datasheet on a software I2C bus, with CRC-8 checks and retries.
  • Helped design the automated bench around it: instruments on GPIB and LAN, driven by a headless Raspberry Pi.
Oscillator trim, binary searchTarget 40.96 kHz ±200 Hz

Each measurement halves the pool of candidate trim codes.

More from this term
  • Traced suspicious leakage data at 60 °C to the test fixture instead of the silicon. Re-probing at the die-adjacent pin cut the leakage bound from 281 pA to under 18 pA.
  • Found a trim helper that silently returned -1 on unburned parts, so invalid trims were being written. Fixing it dropped supply current from 165.9 to 151.7 µA.
  • Wrote an on-die self-check that sends the chip's 25 nA calibration source through the same measurement path. Both channels agreed within 0.04%.
  • On a separate analog front-end ASIC, validated a pre-silicon register configuration toolchain and caught 19 SPI writes per run landing on the wrong address before first silicon.
PythonPyVISASPII2CGPIBRaspberry PiOTP
Teledyne DALSA
Hardware Test Engineer
Jan to Apr 2026 · Waterloo, ON
  • Developed low-level SPI, I2C and UART drivers on STM32 in C from component datasheets, talking to 5+ embedded subsystems.
  • Wrote a Python script that runs 30+ electrical and functional tests over UART.
  • Designed an adapter PCB in Siemens PADS with an STM32, FMC, SPI and USB-UART to bridge the test bench to an FPGA.
CSTM32PythonSiemens PADSLTspice
Teledyne DALSA
Image Sensor Test Engineer
May to Aug 2025 · Waterloo, ON
  • Tested and validated 10+ cameras before delivery using SPI command sequences.
  • Ran a Gauge R&R study on 1,000+ data points from SQL and confirmed under 5% variation on the test bench.
  • Designed a fixture in Autodesk Inventor that mounts 12 circuit boards for probing and electrical test.
SPISQLOscilloscopeAutodesk Inventor

About.

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.

Languages

CPythonC++VHDL

Embedded

STM32ARM Cortex-MRTOSSPII2CUARTCANSWDOpenOCD

Validation and bench

ASIC bring-upOTP trimmingHardware-in-the-loopPyVISAOscilloscopeSMU

Tools

GitMakeAltiumKiCADLTspice
University of WaterlooBASc, Honours Mechatronics Engineering, Co-op
President's Scholarship of Distinction

Let's build something.

I'm looking for embedded and firmware internships. The fastest way to reach me is email.