Skip to content

Blog

Welcome to my blog. Here I post short snippets about interesting topics that are not necessarily project-based.

Handling Hard Faults on a STM32

When writing code for a microcontroller, one typically connects a USB cable to the microcontroller which allows one to upload code and provides a serial interface for debug output. However, one might notice the debug output suddenly freezing with the microcontroller suddenly becoming unresponsive. This could either be because there was a while(1); loop in the code, or a hard fault has occurred.

This blog post delves deeper into how one might encounter a hard fault, and how to troubleshoot the line that causes a hard fault on a STM32 F4 - an ARM Cortex-M4 based microcontroller.

Mechanical Keyboard Modding

I've had abit of spare time over the winter break and spent abit of time modding mechanical keyboards. I tried building a custom keyboard which I didn't enjoy that much, but managed to get a keyboard that I'm quite happy with in the second iteration. In this blog post I detail my experience & reflections with doing it.

Random Forests

I've been working with Time Series data at work and I got loads of success with using a Random Forest model. This blog post illustrates my key learning points from using this model, namely how random forests work and how I personally have pruned the random forest by reducing the number of features.