Author Archives: mcturra2000

About mcturra2000

Computer programmer living in Scotland.

Kicking the tyres of Ada for the #rp2040

In my last post I said that I seemed to have accidentally set off interrupt triggers by writing to the wrong bits of a register. It got me to wondering whether something like Ada might be a better bet. I … Continue reading

Posted in Uncategorized | Leave a comment

Simple memory-to-memory STM32F4 DMA example using libopencm3

Well, it took me most of the day to get it working, but I got there in the end. The idea is that we want to copy memory from one location to another using DMA. Maybe it’s not especially useful, … Continue reading

Posted in Uncategorized | Leave a comment

K.I.S.S. state machine/cooperative concurrency for embedded systems

Although my primary interest is in embedded systems, I’ll present code that runs on a Linux system for illustrative purposes. But first, a little diversion. My thinking towards embedded systems is tending more and more towards a radical simplicity. I … Continue reading

Posted in Uncategorized | Leave a comment

A fistful of code for the #RP2040

My Raspberry Pico Pico directory is now gathering pace with some useful device drivers. The most important ones are likely to be: flash example, SSD1306 OLED, and SD Card block reader (no file system support). Other devices that are likely … Continue reading

Posted in Uncategorized | Leave a comment

“Barebones” (no SDK) blinky sketch for the #RP2040

This post is a follow-up to yesterday’s attempt to get a blinky sketch running for the Raspberry Pico, without using the SDK. If you haven’t read the previous post, then do so now. What has changed is the linker script, … Continue reading

Posted in Uncategorized | Leave a comment

A working-esque non-SDK blinky sketch for the #raspberrypico

It’s always interesting to get as close to the metal as possible with mcus (microcontrollers), armed with little more than a makefile, compiler, and vim. Health warnings apply: it’s my best attempts to get a blinky sketch working, and only … Continue reading

Posted in Uncategorized | 1 Comment

Kicking the tyres of RIOT OS

RIOT is an RTOS that bills itself as “the friendly Operating System for the Internet of Things.” There seems to be a fair amount of board support, including STM32 blue and black pills, ESP32, and even the Arduino Nano/Uno. Unsupported … Continue reading

Posted in Uncategorized | Leave a comment

#rt-thread not ready for primetime

Hmm. There was some exciting news announced that RT-Thread now compiles for the Raspberry Pi Pico. I never uses RT-Thread before, but I was intrigued by the prospect of a real-time cross-platform interface for the Pico. So I downloaded rt-thread … Continue reading

Posted in Uncategorized | Leave a comment

Ramblings on developing stm32 vs raspberry pi pico #rp2040

There has been lots of reviews on the capabilities of various uCs (microntrollers), comparing them with their price, and so on. Most people are further along in their journey in understanding, so this post is written from the perspective of … Continue reading

Posted in Uncategorized | 4 Comments

Sleepico: a pleasant noise-generator for the #raspberrypi #rp2040

On this blog I’ve described a few “sleep” noise-generators in the past. White noise is too hash, and needs to be “softened” by attenuating the higher frequencies. I had described pseudo Brown noise generators in a previous post using an … Continue reading

Posted in Uncategorized | Leave a comment