Category: STM32F429

HAL Library 21- Multi purpose USB library for STM32Fxxx 86

HAL Library 21- Multi purpose USB library for STM32Fxxx

This USB library is designed in a ways that can easily be used with different modes. That’s why I’ve made a single library for everything what I support now and which support I will add in future. The main purpose of library is to support USB FS and HS modes on STM32Fxxx devices at the same time, without any problems. So I designed a library, which allows users to have all these possibilities: Use both USB modes as hosts Use...

HAL Library 20- FATFS for STM32Fxxx 122

HAL Library 20- FATFS for STM32Fxxx

FATFS library (HAL LIB 20) is a “generic” library for all FAT related implementations, such as SDCARD, USB FLASH, SPI FLASH and also SDRAM can be used with proper FAT initialization. My FATFS library currently supports only SDCARD communication with SDIO (STM32F4xx) or SDMMC (STM32F7xx) or SPI on both families. There is no big difference between them and you can treat them as the same peripheral with only different name. In case you are interested for FATFS based on STD...

HAL Library 19- CPU LOAD monitor for STM32Fxxx 1

HAL Library 19- CPU LOAD monitor for STM32Fxxx

CPU load monitor library is simple library, which counts number of sleeping cycles using WFI() instruction compared to working cycles in one second. Load variable is updated every 1 second to determinate how much your processor works. For that case, you have to always put your system to sleep mode when you don’t need it. It uses DWT counter in Cortex M4/M7 to measure cycle counters! Library Read more about new HAL libraries Features Measures CPU load. Load depends between...

HAL Library 18- RNG for STM32Fxxx 1

HAL Library 18- RNG for STM32Fxxx

STM32Fxxx devices (in most cases) have True Random Number Generator (or RNG). This peripheral can provide 32-bits random number. I made a small library, that you can enable and use it very quickly which is compatible with HAL based drivers. RNG on STM32Fxxx is based on analog circuitry. It makes analog noise and that noise is connected to linear shift register. Analog circuitry is designed from ring oscillators whose outputs are XORed. For RNG circuitry is also separate LFSR clock...

HAL Library 17- IWDG for STM32Fxxx 3

HAL Library 17- IWDG for STM32Fxxx

Sometimes you need watchdog timer to look at your system if it gets stuck. I made a little library to work with it and to be compatible with HAL based drivers. IWDG timer in STM32Fxxx device has its own clock which is independent from main system clock. You have to constantly reset it’s counter value or it will elapse and reset MCU. Library Read more about new HAL libraries Features Detects if system was reset by watchdog Supports different timeouts Resets watchdog

HAL Library 16- I2C for STM32Fxxx devices 11

HAL Library 16- I2C for STM32Fxxx devices

Here it is. After some email for I2C library for HAL, I’ve made it. I ported my old for F4 to HAL based libraries for F0/F4/F7 series. I added method to read single byte, multi bytes, write single byte, write multi bytes, write/read single byte from/to register which has 16-bit address size. Library Read more about new HAL libraries Features Supports up to 4 I2C peripherals Supports different pinouts selectable on initialization Supports custom pin combinations Supports multiple read/write modes...