Tagged: stm32

STM32 tutorial: Efficiently receive UART data using DMA 9

STM32 tutorial: Efficiently receive UART data using DMA

U(S)ART peripheral can work very good by using RXNE (Receive Not Empty) for each byte separatelly. In this case, every received byte is manipulated by CPU by jumping to appropriate UART interrupt service routine. To allow CPU to do fully other job when we receive UART data at high speed we can use DMA (Direct Memory Access) to offload CPU. We can think of DMA as co-processor who can only transfer data between different memories, in our case between peripheral data register UART...

0 17

EasyGUI preview on STM32F7-Discovery

Last 2 months I was working hard to build a platform independent graphical user interface library for embedded systems. I called it EasyGUI because idea behind is very simple library with support for custom user based widgets with touch and keyboard support. So far I built these features: Unlimited widgets (limited to RAM memory) Support for widgets which support children widgets (windows, panels, etc) Support for touch and keyboard events Support for UTF-8 encode and decode functions Support for custom...

Tutorial – Jump to system memory from software on STM32 2

Tutorial – Jump to system memory from software on STM32

One of you are already familiar with STM32 feature of embedded bootloader for software download to flash. This memory is called system memory and is normally accessible with BOOT configuration (either pin hardware or option bytes (later OB) in flash software). Normally, if you want to jump to system memory, you have to setup pin/OB and reset device. If you have OB setup, this is ok, but since you need at least one BOOT pin in hardware, this can lead to hardware...

HAL Library 36- AHRS and IMU algorithms for calculating roll, pitch and yaw axes 1

HAL Library 36- AHRS and IMU algorithms for calculating roll, pitch and yaw axes

With this library, it is possible to calculate roll, pitch and yaw axes from 2 or 3 sensors. By using 2 sensors (Gyro and Accelerometer) you can use IMU or by adding Magnetic sensor, you can use AHRS algorithm to additionally stabilize outputs. Library is written in ANSI C and works on any device you want. It is not specifically set to be used by STM32 devices. Algorithms are developed by Sebastian Madgwick. For more info about these algorithms, you...

HAL Library 34- DSP FILTERS for STM32Fxxx 1

HAL Library 34- DSP FILTERS for STM32Fxxx

DSP FILTERS library is a group of wrapper functions to easily use official ARM Math libraries for DSP processing. It features ARM IIR Biquad-1 implementation and ARM FIR F32 implementations. Both are now designed for Floating point F32 data type. Library Read more about HAL libraries Features Supports FIR or IIR filters processing Supports unlimited FIR and IIR filters (limit is memory) Supports multiple IIR stages or custom FIR order