STM32 RS-485 Modbus RTU on the Blue Pill with HAL
Build a Modbus RTU client on the STM32 Blue Pill with RS-485 and HAL. Wire the transceiver, time DE and TC, and verify holding-register replies.
Build a Modbus RTU client on the STM32 Blue Pill with RS-485 and HAL. Wire the transceiver, time DE and TC, and verify holding-register replies.
Capture an INMP441 on the STM32F411 Black Pill with I2S and circular DMA. Set 16 kHz clocks, size the buffer and decode signed 24-bit samples.
Calculate STM32F103 hardware CRC32 with HAL. Match MPEG-2 and zlib profiles, handle byte order and tails, and verify a binary frame.
Set up TIM1 complementary PWM on an STM32 Blue Pill. Calculate dead time, measure the non-overlap and test the hardware break and manual re-arm.
Read a quadrature encoder with STM32 Blue Pill TIM3. Wire A and B, set the input filter, handle 16-bit wraparound and calculate signed RPM.
Run FreeRTOS on an STM32 Blue Pill with static tasks and queues. Set up SysTick and TIM2, test queue overload and check stack use.
Build an STM32 Blue Pill microSD data logger with SPI and FatFs. Wire an SDHC card, append CSV rows and verify the data after syncing.
Store settings in STM32F103 Flash with STM32Cube HAL. Reserve two pages, validate records at boot and recover from interrupted saves.
Quick answer: On an STM32F103C8 Blue Pill, configure a general-purpose timer such as TIM2 with the correct input clock, prescaler (PSC) and auto-reload register (ARR). For a typical 72 MHz timer clock, PSC = 7199 and ARR = 9999 produce…
Build a 500 kbit/s CAN link with the STM32F103 Blue Pill. Test bxCAN silent loopback, set a standard ID filter, and connect two terminated SN65HVD230 nodes.