Fading Coder

One Final Commit for the Last Sprint

Binary BIN File Merging Utility for Flash Layout Composition

Overview This utility merges multiple binary (.bin) files into a single output file based on their designated flash memory offsets. It is particularly useful in embedded systems where firmware components—such as bootloadres, SPLs, or differential updates—are stored at specific addresses in flash mem...

Implementing Custom 3-Digit Display with C51 Microcontroller

C51 Microcontroller 3-Digit Display Implementation Code Example: #include <reg52.h> #define uchar unsigned char #define uint unsigned int sbit DIGIT_SELECT = P2^7; // Digit selection latch sbit SEGMENT_SELECT = P2^6; // Segment selection latch const uchar digit_patterns[] = { 0x3F, // "0&...

Creating and Applying Code Patches with diff and patch

The diff and patch utilities are used to create and apply textual changes to source code. To generate a patch, you must have an original copy of the source and a modified copy. The modified files should retain their original names. For instance, if you modify main.c, keep it named main.c. It is advi...

Building an STM32 Keil MDK Project in Pure Assembly and Blinking an LED

Target hardware and tools MCU/board: STM32F103 series (e.g., STM32-F103-MINI) Toolchain: Keil MDK-ARM (uVision5 or newer) Optional: Serial terminal for observation 1. A minimal Keil project written entirely in assembly 1.1 Create the project Open Keil uVision, create a new project (example name: asm...

ADS1115 on STM32F103: Configuration and I²C Readout with Example Code

ADS1115 at a glance 16‑bit SAR ADC, low power Four analog inputs: AIN0–AIN3 (single‑ended) or differential pairs Supply: 2.0–5.5 V on VDD, GND reference Digital interface: I²C (SCL, SDA) Address select: ADDR pin (GND/ VDD/ SDA/ SCL) Optional comparator/alert output: ALERT/RDY Typical wiring to STM32...

STM32F429 Ethernet with LAN8720 Using STM32CubeMX, LwIP, and FreeRTOS

Bringing up 10/100M Ethernet on an STM32F429 board using STM32CubeMX to integrate FreeRTOS and LwIP with an external LAN8720 RMII PHY and an RJ45 (with integrated magnetics). 1. Hardware and pinout The LAN8720 connects to the STM32F429 via RMII. The typical signal mapping is: ETH_MDIO → PA2 ETH_MDC...

SD Card SPI Interface: Initialization, Commands, and Responses

SD cards are Flash-based storage modules widely used in embedded systems for logging runtime data and storing configuration. They expose two host interfaces: the native SD bus and the simpler SPI bus. This guide focuses on SPI mode, command framing, response handling, and a compact C driver demonstr...