Why Does SPI DMA Circular Reception Fail When CRC Is Enabled?

Why Does SPI DMA Circular Reception Fail When CRC Is Enabled?

Someone is using the STM32G4 internal SPI configured as a slave full-duplex mode, using DMA for receiving. When the DMA is configured to CIRCULAR mode, problems occur where data transmission results in CRC verification failures and reception anomalies. If the DMA transfer mode is configured to NORMAL, there are no issues, and the received data … Read more

Can MCU Access Non-Standard SPI Interfaces?

Can MCU Access Non-Standard SPI Interfaces?

Currently, many precision analog-to-digital converters (ADCs) have a Serial Peripheral Interface (SPI) or some form of serial interface to communicate with controllers, including Microcontroller Units (MCUs), DSPs, and FPGAs. The controller writes to or reads from the internal registers of the ADC and reads the conversion codes. The PCB wiring for SPI is simple, and … Read more

Strange Phenomenon of FFT in DSP Library

Strange Phenomenon of FFT in DSP Library

1. Introduction This is a module for signal acquisition and computation built a couple of days ago using the H7B0 microcontroller, which uses its 16-bit ADC to capture signals and perform spectrum analysis, with results displayed on an OLED screen. Calculating a 2048-point FFT takes about 10 milliseconds. Next, let’s test if the computation speed … Read more

How Fast Is the DSP Algorithm Library?

How Fast Is the DSP Algorithm Library?

1. Introduction In ARM microcontroller development, there is a CMSIS DSP library provided for digital signal processing functions. This library includes basic data functions, fast mathematical operations, complex operations, filters, matrices, transformations, click control, statistics, support functions, and interpolation functions, covering most algorithms used in engineering applications. I have a question: how much speed improvement … Read more

How Fast Is the DSP Algorithm Library? A Performance Comparison

How Fast Is the DSP Algorithm Library? A Performance Comparison

In ARM microcontroller development, there is a DSP function library provided by CMSIS. This library includes basic data functions, fast mathematical operations, complex operations, filters, matrices, transforms, click control, statistics, support functions, and interpolation functions, covering most algorithms used in engineering applications. Now, I have a question: how much speed improvement can be achieved by … Read more

STM32 Based Temperature Controlled Fan Simulation Design

STM32 Based Temperature Controlled Fan Simulation Design

STM32 Based Temperature Controlled Fan Simulation Design Hello everyone, today I want to share an interesting temperature-controlled fan simulation project. This project simulates a temperature control system in a real working environment, detecting ambient temperature through a temperature sensor and automatically controlling the fan speed. The entire system is simple and practical, making it perfect … Read more

Using MDK Built-in Logic Analyzer to Display Arbitrary Waveforms

Using MDK Built-in Logic Analyzer to Display Arbitrary Waveforms

I mentioned in a previous article about the information on outputting waveforms using the MDK built-in logic analyzer. I found that some people are interested in using the MDK built-in logic analyzer to implement waveform output. Below, I will use the STM32F334 DAC module to output an arbitrary waveform and display the waveform using the … Read more

Implementing QuadSPI External Serial NOR Flash

Implementing QuadSPI External Serial NOR Flash

Introduction The STM32 provides flexible and diverse access implementations for external memory. This article will introduce how to utilize QSPI (QuadSPI) to implement external serial NOR Flash memory. First, the functional characteristics of the QSPI interface will be introduced, followed by hardware design and software development. Based on STM32CubeM, a reference implementation for accessing the … Read more

Hands-On Tutorial for STM32 Embedded Machine Learning (TinyML) – Part 1

Hands-On Tutorial for STM32 Embedded Machine Learning (TinyML) - Part 1

Part 1: Overview In this tutorial, we will develop a machine vision application using machine learning technology on the STM32H747I Discovery development board. This tutorial is officially published by STMicroelectronics. Special thanks to the Edge Intelligence Lab for the original Chinese subtitles. The documents referenced in the video (also available for download from ST’s official … Read more