-
Recent Posts
Recent Comments
Archives
- May 2022
- December 2021
- September 2021
- July 2021
- May 2021
- April 2021
- October 2019
- August 2019
- April 2019
- February 2019
- January 2019
- May 2018
- January 2018
- November 2017
- May 2017
- January 2017
- December 2016
- November 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- July 2014
- June 2014
- May 2014
- April 2014
- November 2013
- October 2013
- September 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- December 2012
- November 2012
- October 2012
- August 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
Categories
Meta
Category Archives: Uncategorized
An STM32 Arduino IDE Button Debouncing Framework
What follows is a very basic framework for button debouncing. It works on an STM32 and is demonstrated in the following code on an STM32F446RE Nucleo board running at the default 84MHz. It uses timer #2 (TIM2), but could be … Continue reading
Posted in Uncategorized
Leave a comment
Arduino stdlib Library Replacement
Excludes memory allocation functions. Compiled from various sources. Just because. ctype_.h stdio_.h stdlib_.h stdlib_.c
Posted in Uncategorized
Leave a comment
Arduino Inline Assembly string Library
This is a refactoring of the existing Arduino (avr) C string library. This was simply an academic exercise. This code should compile to the same size, since in most respects it is the same code. The majority of the comments … Continue reading
Posted in Uncategorized
Leave a comment
STM32F446RE Nucleo RTC Timestamp
This program demonstrates the RTC timestamp feature of the STM32F4 family of MCUs. The timestamp is activated by one of two external pins (PA0 or PC13 on the STM32F446). Since the PC13 pin is connected to the user button on … Continue reading
Posted in Uncategorized
Leave a comment
STM32F405 Feather GPS Logger
Demonstrates UART/DMA Rx, FreeRTOS, specific sentence selection and SD Card logging. Compiled with STMicroelectronics core using the Arduino IDE. Note, all references to “Serial” in the STM32 SD library SD.cpp file were commented out since this program is not using … Continue reading
Posted in Uncategorized
Leave a comment
Receiving Data of Indeterminate Length via STM32F4 UART DMA
Adafruit STM32F405 Feather Demonstration For applications where you don’t know the length of a data stream prior to receiving it via DMA UART. Uses Arduino IDE with STMicroelectronics 2.0 core. Here is a picture of the Adafruit STM32F405 Feather connected … Continue reading
Posted in Uncategorized
Leave a comment
DMA in the IDE, Part V
DMA UART M2P Register-Level Programming In the final post on STM32 DMA programming in the Arduino IDE, we will examine register-level setup of the peripherals. The demo program here is a simple refactoring of a previous program that utilizes DMA … Continue reading
Posted in Uncategorized
Leave a comment
DMA in the IDE, Part IV
STM32 DMA ADC P2M Demo This is the fourth example of DMA usage on the STM32F405 Feather board. Programming is from the Arduino IDE. This example demonstrates the peripheral to memory (P2M) DMA Mode. We send data from the ADC … Continue reading
Posted in Uncategorized
Leave a comment
DMA in the IDE, Part III
STM32 DMA UART Transmit M2P Demo This is the third example of DMA usage on the STM32F405 Feather board. Programming is via the Arduino IDE. This example demonstrates the memory to peripheral (M2P) DMA Mode. We send data from memory … Continue reading
Posted in Uncategorized
Leave a comment
DMA in the IDE, Part II
STM32 DMA UART Receive P2M Demo This is the second example of DMA usage on the STM32F405 Feather board. Programming is from the Arduino IDE. This example demonstrates the peripheral to memory (P2M) DMA Mode. We send serial data to … Continue reading
Posted in Uncategorized
Leave a comment