Monthly Archives: September 2021

More thoughts on #RP2040 vs #STM32

In a previous post, I shared my thoughts on what I thought are my two favourite mcus: the Raspberry Pi Pico, and the STM32. The STM32F411 seems a particularly popular choice. I have a blackpill, and I got a Nucleo … Continue reading

Posted in Uncategorized | Leave a comment

Some sawtooth pwm wave mathematics (#stm32f411, dma)

Sawtooth waves are a useful way of experimenting with pwm signals. I prefer them over sine waves for testing purposes, as the sharpness of their maximum and minimums make it easier to spot signal distortions when viewing them on an … Continue reading

Posted in Uncategorized | Leave a comment

K.I.S.S. #stm32f4 HAL PWM fixed frequency and duty cycle

Today I’m going to look at producing a PWM pulse of fixed frequency and duty cycle. You will need to choose a PWM-compatable pin. I chose PA11. The pins will have a timer and channel associated with them, according to … Continue reading

Posted in Uncategorized | Leave a comment

K.I.S.S. #stm32 HAL blinky LED.

The HAL seems to be the most popular library when developing for the STM32. I hate the CubeIDE with a vengeance, though. It’s slow and bloated. It’s based on Java, so no wonder. I have set up VSCode on Linux, … Continue reading

Posted in Uncategorized | Leave a comment