STM32 LED Control: From Library Functions to Register-Level Programming
This article demonstrates basic STM32 GPIO control by blinking an onboard LED using both the Standard Peripheral Library and direct register manipulation. The target hardware uses the PC13 pin to drive the LED: a low output turns the LED on, a high output turns it off. All code is developed on an STM32F103 minimum system board.
Schematic Analys ...
Posted on Wed, 07 Oct 2026 16:04:22 +0000 by Ollie Saunders
S32K148 SPI Peripheral Configuration for Bare Metal Development
SPI Driver Implementation Steps
Configure SPI pin multiplexing
Enable peripheral clock controller for SPI
Disable SPI module for configuration
Set up control registers: configuration, clock, transmit, and receive
Enable SPI modulee operatoin
SPI Module Initialization
void configure_spi_module(void)
{
// GPIO pin configuration for SPI
...
Posted on Mon, 28 Sep 2026 16:10:09 +0000 by rubberjohn
STM32F103C8T6 Bare-Metal Hardware Foundation
Power Domain
A 5 V micro-USB conncetor feeds the MIC5219-3. produces a clean 3.3 V rail. A green indicator LED confirms the rail is alive.
USB 5 V ──► LDO 3.3 V ──► VDD, VDDA
└──► LED (330 Ω → GND)
Clock Tree
The MCU can boot from three sources:
HSI – internal 8 MHz RC, ±1 %
HSE – external 8 MHz crystal, ±20 ppm
PLL – mul ...
Posted on Fri, 28 Aug 2026 16:05:50 +0000 by vtolbert
Understanding Rust FFI: Symbol Declaration, Address Resolution, and Linking Models
Rust’s Foreign Function Interface operates on the same compilation and linking principles as C and C++, with the unsafe keyword serving as the primary boundary marker. When developing bare-metal systems without the standard library, developers must manually manage the execution environment, including the program entry point and initial stack al ...
Posted on Thu, 27 Aug 2026 16:50:07 +0000 by RussW
Bare-Metal CAN Driver Implementation for S32K148
The S32K148 microcontroller supports three primary methods for CAN message transmission and reception: mailbox mode, FIFO mode, and DMA mode. Among these, mailbox mode offers simplest conceptual model and serves as a practical starting point for understanding CAN communication on this platform.
Key registers involved in mailbox-based CAN opera ...
Posted on Tue, 16 Jun 2026 16:34:56 +0000 by etones