Category: STM32F4 Discovery

FFT result of matlab generated signal 2

HAL Library 14- Fast Fourier Transform for STM32Fxxx

Here is an example of Fast Fourier Transform on STM32F4xx devices. This HAL library works for F4 and F7 series! That was the main reason I decided to make a library for FFT on STM32F4xx. To use this library, some third-party libraries are also required. All these required files can be found in STM32F4xx Standard peripheral drivers and DSP instructions provided from ST.com from their website. Now is version 1.5.1 of these drivers and also .lib file is included for ARM...

HAL Library 13- Buttons for STM32Fxxx 1

HAL Library 13- Buttons for STM32Fxxx

New port. Buttons library for HAL based libraries. It can handle buttons, connected to your STM32Fxxx devices. It supports basically unlimited number of buttons with different triggering. Currently, callback functions can be called on these events: Button on pressed: Called directly when button is pressed Button normal press: Called when button is released after specific amount of time Button long press: Called when button is pressed for specific “long” amount of time It uses malloc() to allocate memory, so you...

HAL library 10- CRC for STM32Fxxx 1

HAL library 10- CRC for STM32Fxxx

STM32Fxxx devices have CRC (Cyclic Redundancy Check) module inside. This is small and useful unit when working with communications. It might become very useful to verify if your packet of data is correct. STM32Fxxx devices uses “Ethernet” CRC with polynomial below: X32 + X26 + X23 + X22 + X16 + X12 + X11 + X10 +X8 + X7 + X5 + X4 + X2 + X +1 It is quite ugly 😀 Well, using this module is very easy....

HAL library 09- GENERAL for STM32Fxxx 1

HAL library 09- GENERAL for STM32Fxxx

With this name I mean that in this library, a lot of different stuff, maybe unrelated between, but very useful things will be implemented. It allows you to make software reset, get reset source, disable or enable global interrupts (NVIC) and more. It will be updated frequently but for now it’s just a start to use it in your projects. Library Read more about new HAL libraries Features Support for software reset with callback Get reset source, what resets your...

HAL library 08- SPI for STM32Fxxx 32

HAL library 08- SPI for STM32Fxxx

Next library in ported libs is SPI for HAL based drivers for STM32F4xx and STM32F7xx based devices. Library Read more about new HAL libraries Features Operate with up to 6 SPI peripherals Send single or multiple bytes at time Automatic SPI prescaler selection based on maximum clock selected for your external device Software based Chip Select pin Support for custom GPIO pins combination for SPI

HAL Library 07- USART for STM32Fxxx 54

HAL Library 07- USART for STM32Fxxx

Here it is. UART library for HAL based libraries. If you don’t know, how UART work on STM32Fxxx devices, then you might take a look at my first library, where I also explained how to used it. This library works successfully on F4 and F7 based devices for now. I will add support for F0 too as soon as possible. Library Read more about new HAL libraries Features Supports up to 8 UART peripherals at a time Interrupt driven RX...