
Download Stm32 cube IDE, a free IDE for Windows, Linux, and macOS, from the STMicroelectronics website, accept license, create or log into a free account, and download the 729MB installer.
Install CubeIDE by extracting the downloaded package, running the installer, selecting a location with ample space and the link drivers, then open CubeIDE and set the workspace.
Learn how to download and organize the essential stm32 reference manual, datasheet, and development board guides to build bare metal firmware and set up a project tree for stm32f4.
Set up a bare metal stm32 f4 project in stm32 cube ide by creating an empty project and importing cmsis headers for peripheral access and led blink testing.
Link chip headers, enable gpioa clock in the ahb1enr, set pa5 as an output via the gpioa mode register, and blink the led by toggling pa5 with a delay.
Enable the floating point unit on the Cortex-M4 by configuring the coprocessor access control register, then plot a five hertz signal with the logic analyzer and prepare a Uart driver.
Enable the floating point unit and plot a signal with the internal logic analyzer in the debugger, by implementing a static plot input signal that samples with a pseudo delay.
Develop a bare-metal uart driver to transmit to an external plotter, configure PA2/PA3 as alternate function pins for USART2 on APB1, enable clocks, and set baud rate.
Enable gpio a clock via the fp1 bus, configure gpio a pin 2 to alternate function mode, and set the afr l bits to af7 for uart.
Enable the APB1 clock for the UART, compute the baud rate, and configure the baud rate and control registers to enable the transmitter and UART.
We implement the uart write function that waits for the transmit data register to be empty and then writes the byte to the data register using the TCS status bit.
Retarget printf to the UART, implement and test the UART write function for STM32 CubeIDE, expose init, initialize UART in main, and verify transmission with an Arduino plotter.
Plot signals with a serial plotter using the UART driver to visualize a five hertz signal in real time on an external plotter.
Integrate the CMSIS-DSP library into your STM32 project by adding the DSP folder and library, configuring ARM Cortex-M4 and an FPU, and linking the GCC math library.
Test the CMSIS-DSP float32 data type by creating a two-tone 1 kHz and 15 kHz signal and plotting it with a logic analyzer.
Explore real-time signal processing with real-time operating systems, delivering deterministic task execution and deadline-based scheduling for DSP and non-DSP tasks, including ADC/DAC buffering.
Explore buffering techniques for real-time DSP, using a double buffer and ARTAS with a fifo queue to manage input and output preemptively.
Set up an advanced DSP workspace on ARM by importing a CMSIS-DSP project, configuring CubeIDE, and preparing to integrate FreeRTOS for real-time signal processing.
Learn to integrate FreeRTOS into an STM32 project by organizing middlewares, copying CMSIS drivers from the STM32 cube package, updating include paths for the GCC port, and configuring system files.
Test and compare two FreeRTOS tasks in a bare-metal ARM project using profilers, task creation, and priority-based scheduling to observe preemption and round-robin behavior.
Explore fixed point arithmetic for DSP on embedded devices, prioritizing efficiency. Understand how the binary point separates integer and fractional parts, like weights in fixed width representations.
Explore how the binary point assigns weights to digits, with left-side powers of two and right-side negative powers, and shifting the point, width w and position b, define fixed-point numbers.
Explore fixed point representation by learning width and binary-point position (fixed wb) with 8.3 and 8.5 examples, and assess overflow and rounding in Q data types for DSP on ARM.
Master fixed point arithmetic for dsp efficiency and predictability. Learn q formats in cmsis dsp, convert between float and q types, and scale adc values for embedded systems.
Demonstrates mapping 12-bit ADC samples (0–4095) to a minus-one to plus-one range and converting between float, q31, and back to 12-bit integers using CMSIS-DSP.
Explore real-time dsp on arm processors by implementing the sine generator descriptor using a biquad filter in Q15, with coefficients, state, and inputs for sine frequency and sampling rate.
Initialize a sine generator by computing the first three harmonics, normalizing by sampling frequency, converting to q15, and initializing the CMSIS-DSP biquad filter with its coefficients, state, and shift.
Learn to implement a sine sample calculator in q15 data type using a biquad cascade filter on ARM, initializing input to zero and generating a sine wave sample.
Test the sine generator by exposing its functions and initializing a 1 kHz sampling rate for a 10 Hz signal, then plot samples via uart to prepare for low-pass testing.
Combine a 10 Hz real signal with a 50 Hz noise to form a disturbed signal, plot both, and outline a future low-pass filter to extract the real signal.
Implement a low-pass FIR filter on ARM using CMSIS DSP, leveraging a precomputed kernel and convolution to remove 50 Hz noise from a sine wave while validating with plotting.
Explore how to implement semaphores in a real-time dsp system using FreeRTOS, creating acquisition, processing, and display tasks, with binary semaphores to synchronize and avoid deadlock.
Develop a real-time DSP system by organizing tasks for signal acquisition, processing, and display, using delays, vTaskDelay, semaphores, and plotting on the STM32 board.
Set up a real-time dsp system with live sensor data on arm processors. Sample the adc, apply a low-pass impulse response, and test the adc driver.
rename and clean the workspace to fix project name conflicts, then configure a dsp workflow by converting the low-pass kernel to q15 and applying it to live sensor adc data.
Learn to build realtime dsp system on arm with live sensor data, converting adc values to q formats and applying 3 Hz low-pass filter across acquisition, processing, and display.
Capture a block of sensor samples from the adc and perform block processing with a fifo-backed background thread and timer-driven execution for real-time filtering.
Initialize a background thread and timer-based acquisition to fill a 300-element FIFO with ADC data, then prepare for real-time DSP processing and FIFO read function development.
Implement a static readFifo function to read samples from the fifo into a processing buffer for realtime DSP with sensor data. Update the fifo full flag to control batch progression.
Execute real-time dsp on arm processors by building a sensor data pipeline: read from fifo, clear buffers, convert to float32, and apply a convolution-based low-pass filter.
Demonstrates a real-time DSP workflow on sensor data: read FIFO, convert to float, apply a low-pass filter via convolution with an impulse response, and manage output buffers.
Demonstrate realtime DSP with sensor data by using semaphores to synchronize a processing task and a display plot, implementing convolution and handling input and output buffers.
Learn real-time sensor data filtering with block-by-block processing on arm processors, using block size, state buffers, impulse response coefficients, and loop unrolling for leftovers.
Classify digital filters by linearity and time invariance, impulse response (FIR vs IIR), and frequency response; include Butterworth, Chebyshev, elliptic, and Bessel designs.
Explore how impulse response, step response, and frequency response interrelate, with discrete integration and FFT revealing the filter’s kernel and enabling convolution or IIR implementations.
Explore the log scale and decibels, showing how ten decibels equal one bell and a tenfold power change. Relate time domain to frequency response.
Explore time-domain and frequency-domain representations, analyze step responses and rise time, overshoot, and phase linearity, and examine frequency response concepts such as passband, stopband, transition band, and roll-off.
Master the four common frequency responses: low-pass, high-pass, bandpass, and band-reject filters—for advanced digital signal processing on arm processors, including power-line noise removal.
Explore spectral inversion to convert a symmetrical low-pass impulse into a high-pass, then extend to band-pass and band-reject designs by flipping signs and adding one at the center.
Use spectral reversal to convert a low-pass filter into a high-pass by flipping every other sample in the impulse response, yielding a flipped frequency response observed through FFT.
Explore finite impulse response filters and convolution, contrast FIR with IIR, and see how impulse response coefficients shape the frequency response and high and low frequency components.
Design an FIR filter interface file using a typedef struct to encapsulate the input signal buffer, kernel, channel length, and output, mirroring CMC's DSP design.
Implement a fir filter initialization function by setting the filter type, kernel, and length, allocate and zero the state buffer with calloc, and prepare for sample-by-sample filtering.
implement the fir filter execute function that performs single-sample convolution using a buffer with wrap-around, updating indices based on the kernel length, and returning the filtered output.
Test our FIR filter by integrating it into main.c, initializing a low-pass filter in the processing thread, and processing sensor values to show noise reduction on STM32.
Explore the moving average filter, a simple digital filter that reduces random noise while preserving a sharp step, by averaging m input points in time-domain.
Implement the moving average filter interface for an ARM DSP project, defining a float32_t input/output prototype with length and filter point, then implement initialization and testing.
Center the moving average filter on each input point. Sum a fixed number of surrounding points from the input array into the output array, and divide by the point count.
Test a moving average filter on ARM by using 11-point and 51-point windows, compare five hertz and high-frequency signals with 1 kilohertz and 15kHz components, and plot input versus output.
Examine infinite impulse response filters and their memory, and derive the IIR equation with feedforward and feedback parts, using x(n), y(n), and coefficients b and a.
Discover how iir coefficients b_k and a_k shape current and past inputs and outputs via negative feedback to realize low-pass, high-pass, band-pass, and band-stop responses.
Analyze how the direct form one structure builds an IIR filter with delay elements, z^-1, and feedforward and feedback coefficients to compute y(n) from x(n) and past inputs.
Analyze the direct form two structure for implementing IIR filters, noting fewer delay elements and the intermediate w(n) signal enabling compact, resource-efficient designs.
explore direct form two and direct form two transpose structures and cascaded iir filters, breaking the transfer function into series of simple first or second order sections.
Learn iir filter design with bilinear transformation, mapping analog to digital domains 1-to-1. Explore frequency warping, preserving critical frequencies while avoiding aliasing and instability.
Design IIR filters in Matlab using elliptic and Butterworth options, compute s-plane coefficients, and digitize via impulse invariance at 8 kHz to obtain z-plane coefficients with the FDA tool.
Design elliptic iir filters with Matlab's filter designer by setting order, cutoff, and sampling rate. Export sos coefficients and generate a C header with a and b coefficients.
Learn to implement a MATLAB script that validates inputs, applies gain to coefficients, and generates a .h header with a and b coefficient arrays for ARM firmware.
Generate a one kilohertz and a twenty kilohertz signal in MATLAB, mix them, and design and test an IIR filter, exporting coefficients to a header file for embedded firmware.
Design and test an elliptic IIR low-pass filter in MATLAB for a 100 kHz signal to remove 20 kHz, preserving 1 kHz, and generate B and A for firmware.
Convert a Matlab filter into a C header by transforming to a source matrix, extracting the number of sections, and writing elliptic.h with B and A coefficients scaled by gain.
Design a digital IIR filter from an analog prototype using impulse invariance by sampling the analog impulse response, preserving impulse area and transfer characteristics in the digital domain.
Develop the IIR direct form II filter algorithm by translating a second-order sections diagram into C code, using Matlab-generated coefficients and a buffer for w(n) to compute y(n).
Develop the IIR direct form 2 algorithm in code by computing w(n) from input, applying a and b coefficients across multiple sections, shifting states, and returning the filtered value.
Test the IIR direct form 2 algorithm on an STM32 board using a Matlab-generated 1 kHz and 20 kHz signal, compare original and filtered outputs.
Utilize live sensor data with an IIR filter on an ARM-based system, enabling real-time processing via threads, and displaying both the original and filtered sensor values.
Welcome to the “Advanced Digital Signal Processing on ARM Processors” course. Whether you're just stepping into the realm of microcontrollers or you're an experienced engineer, this course is carefully crafted to elevate your understanding and teach you optimised DSP techniques, tools, and methodologies on ARM Cortex microcontrollers.
We delve deep into the intricacies of fixed-point arithmetic and explore how this digital technique drives efficient DSP applications.We will understand the computational capabilities brought forth by ARM Cortex-M SIMD instructions, making real-time processing not just possible but seamless.
We develop classic filters like FIR & IIR filters to modern filters like adaptive filters, this course has it all. We will navigate the complexities of the Fast Fourier Transform, spanning from its foundational concepts to advanced RADIX-4 algorithms.
But we don't stop there! Our comprehensive segments on Kalman filters, RTOS in DSP, buffering techniques, and the powerful CMSIS-DSP library ensure you're equipped with cutting-edge skills and knowledge.
Each module is enriched with clear explanations, real-world examples, and hands-on exercises, making the learning journey both engaging and impactful. This course promises not just theoretical insights but also the practical know-how to implement and optimize DSP tasks on ARM Cortex Microcontrollers.
Realtime Signal Processing with RTOS
Introduction to Realtime Operating Systems (RTOS) in DSP
Task Scheduling and Prioritization for DSP Tasks
Implementing Realtime DSP Algorithms with RTOS on ARM Cortex
Challenges and Solutions for Realtime DSP
Fixed-point Arithmetic for Digital Signal Processing
Basics of Fixed-point Arithmetic
Fixed-point Representation
Overflow and Rounding
Benefits of Fixed-point Arithmetic in DSP
ARM Cortex-M SIMD Instructions
Introduction to SIMD
SIMD on ARM Cortex-M4: Detailed Review
Use Cases and Benefits
Finite Impulse Response (FIR) Filters
FIR Filter Equation
Understanding the Structure of FIR Filters
FIR Filter Design and Implementation on ARM
Infinite Impulse Response (IIR) Filters
IIR Filter Equation
Understanding the Structure of IIR Filters
IIR Filter Design and Implementation on ARM
Stability and Performance
Kalman Filters
Introduction to Kalman Filters
Theory and Formulation
Implementation and Applications on ARM Cortex Microcontrollers
Adaptive Filters
Introduction to Adaptive Filters
Types and Applications
Implementation on ARM Cortex Microcontrollers
Window Functions in DSP
Introduction to Window Functions
Rectangular, Hann, Hamming, and Blackman Windows
Window Function Properties: Sidelobe Fall-off, Mainlobe Width, etc.
Application in FIR Filter Design
Comparative Analysis: Choosing the Right Window
Fast Fourier Transform (FFT)
Understanding FFT
Development of the FFT Algorithm with RADIX-2
Development of the FFT Algorithm with RADIX-4
...much more