Integrating RT-Thread Nano with STM32F407 Using LL Drivers
CubeMX Configuration
Configure the STM32F407 project in STM32CubeMX with required peripherals (e.g., USART1 for console) and generate code using the Low-Layer (LL) drivers instead of HAL.
Code Modifications
Include RT-Thread Header
In source files that use RT-Thread APIs, add:
#include <rtthread.h>
Declare System Clock Function
In ma ...
Posted on Sat, 12 Sep 2026 16:40:14 +0000 by gilijk
Capturing Dual Encoder Waveforms with STM32F407 Timer 5 Input Capture
This document details a method for capturing and processing waveforms from two digital quadrature encoders using the STM32F407ZGT6 microcontroller. The approach leverages the four input capture channels of Timer 5 (TIM5) to track the rotational position and direction of each encoder.
System Overview
The system utilizes the STM32F407's Cortex-M4 ...
Posted on Wed, 03 Jun 2026 18:13:14 +0000 by mattd123
STM32 RTC Programming Guide with HAL Library for F103 and F407
Time Fundamentals
Unix Timestamps
A Unix timestamp is the total number of seconds elapsed since 00:00:00 UTC on January 1, 1970, ignoring leap seconds. It is stored as a 32-bit or 64-bit integer. All time zones use the same timestamp value, with local time calculated by adding a timezone offset.
UTC/GMT
GMT (Greenwich Mean Time) is a timekeepin ...
Posted on Fri, 08 May 2026 08:49:02 +0000 by iHack