Category: STM32F4

HAL library 1.5- GPIO for STM32Fxxx 6

HAL library 1.5- GPIO for STM32Fxxx

GPIO library is second mainly used library in your project. It is designed to be very easily used for initializing GPIO pins without making sure if clock is enabled or not because this will library do for you. It can init pin as normal or alternate with passing alternate function, it can deinit pin to set it as analog input, it can read pin, set pin and more. Library Read more about new HAL libraries Features Initialize pins with single...

HAL library 01- RCC for STM32Fxxx 8

HAL library 01- RCC for STM32Fxxx

This is first description for libraries in HAL section for STM32F4 and F7 lines using HAL drivers provided from ST for each section. RCC (Reset and Clock Control) library is needed to set up clocks for running STM devices at high speed. It sets up PLL parameters provided from user and enables internal or external high speed clock. Library Read more about new HAL libraries Features Works on STM32F0xx, STM32F4xx and STM32F7xx series Enables HSE or HSI oscillator Sets PLL...

All STM32 HAL libraries 106

All STM32 HAL libraries

In this section, I will write all libraries based on HAL drivers from ST. If you see this first time, make sure you read this post first about how structure of my libs looks like! License All my softwares are published under MIT license. This means that you are allow to modify, share and use my source and other stuff in personal or commercial use. If you modify source code, it has to stay under GNU GPL v3 license too. I...

New library system built on STM32Fxxx HAL drivers 123

New library system built on STM32Fxxx HAL drivers

As you maybe saw, when STM32F7-Discovery board arrived, I switched to make libraries also for this board. And if you want easy libs for this boards, you have to switch to HAL drivers provided from STMicroelectronics. HAL drivers are basically supported for all STM32 families, so I decided to make a library in a way, that will be very easily to used with any STM32 family, especially targeted to these 3 series: STM32F0xx: For very basic and small project can...

STM32F7-Discovery. source:st.com 4

First STM32F7xx libraries are out!

After one day spending trying to make a good implementation of libraries for future use, I decided to switch to HAL drivers because of STM32F7 line which does not have STD drivers. So I decided to make libraries that way, that are supported also with STM32F4xx lines. Each line uses HAL driver for it’s version, but all projects are done in a way that you select target in Keil uVision (F4 or F7), click rebuild and everything is setup and...

Disable peripherals in debug mode on STM32F4xx 0

Disable peripherals in debug mode on STM32F4xx

Have you ever used watchdog in your application? Have you ever debug your application when watchdog was enabled and you hit stop? Watchdog did not stop in this case and when you pressed “continue” in your debugger, your program starts over because WDG has reset your system. One choice is that you remove line where you initialize IWDG, but you then must recompile and redownload and all that stuff. Wasting useful time. To avoid this problem, STM32 devices have possibility...