Ahmed Salhi@MrXFuji
VDD 3.3V · --:--:-- UTC

[ 0x08000000 ] reset_handler → main()

./mrxfuji_

Ahmed Salhi.

From pins to payloads.

Embedded systems × Firmware security × Reverse engineering


    
    
  
01

whoami

@ 0x2000_0000 · SRAM
mrxfuji@enit: ~ — neofetch
ahmed@mrxfuji
-----------------------
Role     EE engineering student
School   ENIT · Tunis
Focus    Embedded & HW security
MCUs     STM32 · NXP MCXA156
Core     ARM Cortex-M33 / M4
RTOS     FreeRTOS (tickless)
Shell    C · C++ · Python · VHDL
Tools    KiCad · LTspice · Ghidra · IDA
Langs    English · French
Uptime   0s on this page

I like the layer where electrons become instructions.

I'm an Electrical Engineering student at the National Engineering School of Tunis (ENIT). I write bare-metal drivers, design PCBs, and spend my evenings asking one question about every system I meet: what happens if I don't trust this part?

That question leads to secure bootloaders that refuse unsigned firmware, sensor nodes that sleep in STOP2 to save microamps, and crackmes I write to get better at reverse engineering. I'm on the technical team of Securinets ENIT, and I did an internship in the electronics department at Marquardt Tunisie.

  • 01Bare-metal & RTOS
  • 02Secure boot & crypto
  • 03Reverse engineering
  • 04PCB & circuits
/dev/ttyACM0 · 115200 8N1 — interactive
02

register map

SKILL_CR @ 0x4000_F00D · reset 0xC0FFEE

Skills, documented like a peripheral. Hover a field to read its description.

EMBEDDED
STM32 MCXA156 Cortex-M FreeRTOS I2C UART GPIO IDEs
SECURITY
Secure boot ECDSA mbedTLS Ghidra · IDA Crackmes CTF Networks
HARDWARE
KiCad LTspice PCB design Scope · LA MATLAB VHDL
SOFTWARE
C C++ Python OpenCV · MediaPipe pytest Git
> hover a field…
03

firmware images

FLASH · slot A / slot B

Every project is an image in flash. Each one is verified before it boots.

IMG 0x01✓ SIG VALID● ACTIVE

FIRMWARE SECURITY

Secure Bootloader on ARM Cortex-M

A bootloader that refuses to run anything it can't verify. Images are checked with ECDSA P-256 over SHA-256 before the jump, and signing happens automatically at build time.

  • C
  • mbedTLS
  • ECDSA P-256
  • SHA-256
  • Python
Open image notes +
reset ─▶ bootloader ─▶ hash(slot A) ─▶ ecdsa_verify(pubkey)
                                     ├─ OK   ─▶ VTOR = app · MSP = app[0] · jump
                                     └─ FAIL ─▶ halt, never boot
  • Fail-safe verification pipeline: nothing executes before the signature check passes.
  • Vector table relocation and MSP set-up for a clean hand-off to the application.
  • Python tooling signs every build, so unsigned images never leave the build step.

09/2026 → present · source: private (in progress)

IMG 0x02✓ SIG VALID● ACTIVE

LOW-POWER EMBEDDED

Ultra-Low-Power Sensor Node

Bare-metal I2C and GPIO drivers written at register level with no HAL, running under FreeRTOS. The node drops into STOP2 deep sleep whenever it has nothing to do.

  • STM32
  • FreeRTOS
  • I2C
  • Bare-metal C
Open image notes +
task idle ─▶ tickless hook ─▶ STOP2 ··· zZz ··· RTC/EXTI wake ─▶ I2C read ─▶ sleep
power:  ▁▁▁▁▁▁▁█▁▁▁▁▁▁▁▁▁▁█▁▁▁▁▁▁▁▁▁▁█▁▁▁▁
  • Register-level drivers instead of HAL: smaller binary, faster execution.
  • FreeRTOS Tickless Idle enters STOP2 automatically, which cuts the idle current.
  • I2C standard-mode timing checked with a logic analyzer and an oscilloscope.

09/2026 → present · source: private (in progress)

IMG 0x03✓ SIG VALIDSRC ✓

BOARD BRING-UP

FRDM-MCXA156 LPUART Test

Bare-metal MCUXpresso project for NXP's Cortex-M33 MCXA156. It passes data UART ⇄ UART between the mikroBUS and Arduino headers, and UART ⇄ PC through the MCU-Link virtual COM port.

  • C
  • MCUXpresso
  • MCXA156
  • LPUART
Open image notes +
LPUART1 (mikroBUS J5) ──TX──╳──RX── LPUART2 (Arduino J1)
                                │
LPUART0 ◀── MCU-Link VCOM ──▶ PC terminal @ 115200 8N1
  • MCXA pitfalls handled: LPUART_Init() alone isn't enough. The functional clock (FRO12M), the divider and the reset release all have to be set.
  • Input Buffer Enable (IBE) set on every RX pin, otherwise the line is never seen.
  • Overrun recovery: RX is flushed and error flags cleared before each transfer.
  • Loopback self-test at boot, then live per-direction counters.
View source on GitHub ↗
IMG 0x04✓ SIG VALID

PCB DESIGN

DC Motor Controller PCB

A PCB that controls a DC motor's speed and direction. The circuit was simulated before fabrication, then validated on the bench.

  • PCB design
  • KiCad
  • Simulation
Open image notes +
simulate ─▶ schematic ─▶ layout ─▶ fab ─▶ bring-up ─▶ validate
  • Designed and tested the board for speed and direction control.
  • Developed the control logic and validated the circuit.
  • Simulation used to verify behavior before committing to copper.

02/2026 → 03/2026

IMG 0x05✓ SIG VALIDSRC ✓

HUMAN × MACHINE

GestureDeck

Control the desktop with your hands through a standard webcam: cursor, clicks, drag, scroll, zoom and Alt+Tab. It needs no GPU and no training, only geometry on 21 landmarks at 30+ FPS on a CPU.

  • Python
  • MediaPipe
  • OpenCV
  • Tkinter
  • pytest
Open image notes +
camera ─▶ pre-process ─▶ MediaPipe(21 landmarks) ─▶ classifier ─▶ desktop controller
                                                 ▲
                                    EMA smoother: x̂ = α·x + (1−α)·x̂
  • Rule-based gesture classifier: pinch-click, double pinch, drag, swipe, thumbs-up toggle.
  • Exponential moving average suppresses cursor jitter, tunable at runtime.
  • Live config GUI and pytest unit tests.
View source on GitHub ↗
IMG 0x06✓ SIG VALIDSRC ✓

COMPUTER VISION

Air Canvas

Touchless drawing in mid-air. One finger draws, two fingers select, a fist erases, and holding an open palm clears the canvas, all from a webcam.

  • Python
  • OpenCV
  • MediaPipe
Open image notes +
☝ draw   ✌ select   ✊ erase   🖐 hold 2s → clear
  • Real-time hand tracking with position smoothing to remove jitter.
  • 7-color palette, adjustable brush, PNG export, live FPS counter.
  • Comes with a written project report.
View source on GitHub ↗
IMG 0x07◌ STAGED · slot B

ROADMAP

Secure IoT Node

An IoT node that stays trustworthy even when the network and the Wi-Fi gateway are hostile. The FRDM-MCXA156 is the root of trust, and an untrusted ESP32 only relays signed updates.

  • MCXA156
  • ESP32
  • Secure boot
  • OTA
  • Threat modeling
Open image notes +
[update server] ══TLS══▶ [ESP32 gateway · untrusted] ══framed+MAC══▶ [MCXA156 · trusted]
                                                                  bootloader ─▶ verified app
  • Planned: signed images with anti-rollback, A/B slots with fallback.
  • Planned: challenge-response device auth with TRNG nonces and replay-proof sessions.
  • Planned: a self-attack phase (fuzzing, power-loss, replay) and a public test report.

status: planned · not booted yet

04

re-lab

ELF64 · x86-64 · little-endian

A set of reverse-engineering challenges, published as raw ELF binaries. Load one into Ghidra and see how far you get.

05

system log

dmesg --human | tail
  1. [ 09/2025 → now ]

    Engineering Degree, Electrical Engineering

    National Engineering School of Tunis (ENIT) · El Manar

    Circuit analysis, electronics, embedded systems and programming.

    CURRENT
  2. [ 06/2026 → 07/2026 ]

    Electronics Department Intern

    Marquardt Tunisie · El Fejja, Manouba

    Hands-on exposure to electronic production, quality control methods and continuous improvement in an industrial plant, working in multicultural teams.

  3. [ 09/2025 → now ]

    Technical Team

    Securinets ENIT

    Organizing cybersecurity events and workshops, and creating technical content for the student community.

    ACTIVE
  4. [ 06/2026 → 08/2026 ]

    Volunteer Member

    AIESEC Tunisia · El Manar

    International volunteering project with a multicultural team, supporting community-focused initiatives.

open_session --port uart0 --baud 115200

[ handshake ] SYN → ACK → ?

Got a board that needs breaking,
or one that needs building?

I'm looking for internships in embedded systems and hardware security. Send me a message, I answer faster than a watchdog timeout.

Say hello ↗ CV ↓