Author Archives: mcturra2000

About mcturra2000

Computer programmer living in Scotland.

Using I2C on #STM32F411 with CMSIS

Following hot on the tail from my previous post on I2C using libopencm3, I now present one using CMSIS. I did a lot of prep work beforehand, which is why the final result was so quick. Here’s the code: In … Continue reading

Posted in Uncategorized | Leave a comment

Using I2C on #STM32F411 with libopencm3

I finally got I2C working on my black pill with libopencm3. Urgh! I interface with an Adafruit Mini 8×8 LED matrix. I think it uses a MAX7219 to control the display, which is the same IC used in 8-digit LED … Continue reading

Posted in Uncategorized | Leave a comment

Using CMSIS to read/write on UART on #STM32F4

Yesterday I talked about SysTick. Today I’m going to talk about UART input/output. I’ll be using a Nucleo board, which uses UART2 to connect via USB. I’m not sure how the blackpill works in this regards. You will probably need … Continue reading

Posted in Uncategorized | Leave a comment

Using CMSIS and SysTick to blink an LED on an #STM32F4

The SysTick (System Timer) is a timer inside ARM based microcontrollers, in contradistinction to timer peripherals provided by vendors like ST. It can be used to generate interrupts at a specified time interval. The convention is that the interrupt is … Continue reading

Posted in Uncategorized | Leave a comment

#riot_os: stdio on an #STM32F411

OK, so I’ve finally figured out how to read stdin using the Riot OS. I’m using a Nucleo STM32 board. In your Makefile: Then your C file might look something like this: Calls to getchar() are blocking, which is fine … Continue reading

Posted in Uncategorized | Leave a comment

#RIOT_OS: A simple review and a periodic timer

I decided to experiment with an RTOS for my Nucleo STM32F411. I figured it was time to try out FreeRTOS for the STMCube IDE. For some reason the MX configurator kept freezing on me. I started out with cold feelings … Continue reading

Posted in Uncategorized | Leave a comment

STM32F411 blink sketch using CMSIS, Vim, and a Makefile

Tired with all the IDE and library gubbings, I thought I’d try to make a blink sketch for the black pill using just basic tools. You’ll need to install ST’s CMSIS, which you can download from here. This defines memory … Continue reading

Posted in Uncategorized | Leave a comment

Thoughts on wire-wrapping vs soldering

I bought some wire wrapping wire about 3 years ago. I didn’t make much use of it because it ultimately didn’t seem very practical. soldering was the way to go. But lately, I’ve been thinking about it more seriously. Pros … Continue reading

Posted in Uncategorized | Leave a comment

I’m done with fake uCs (microcontrollers)

I finally managed to flash a project to my Chinese knock-off STM32F103 blue pill. It’s not a task that I relish to try again. The flashing process seems to be deteriorating in its reliability. I’m not sure why. I would … Continue reading

Posted in Uncategorized | Leave a comment

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