Category: STM32F7 Discovery

HAL Library 31- DMA for STM32Fxxx devices 1

HAL Library 31- DMA for STM32Fxxx devices

It’s been a while since last published library. From that time, I got some requests about making DMA library for HAL and later using this library with USART, SPI, ADC and more libraries. So I’ve made a first step in DMA libraries list. Basic “root” library for DMA process has been created for managing things with DMA streams for STM32F4 and STM32F7 devices. What else it supports, you should check below. Library Read more about HAL libraries Features Root library...

AT commands parser for ESP8266 36

AT commands parser for ESP8266

Hello everyone, ESP8266 with AT commands software from Espressif is now more stable than every, so I’m thinking to make a “strong” AT commands parser library for STM32 series of microcontrollers. If there well be an interest, I can do a generic library (like FATFS) to make usable on others microcontrollers too. So I’m thinking about these commands: Basic commands for settings up ESP module, including UART settings, Wifi name and more Basic AT commands for setting up ESP mode...

MPU-6050 6-axes gyroscope and accelerometer 1

HAL Library 30- MPU6050 for STM32Fxxx

After MPU6050 library for STM32F4xx series only based on STM32F4xx Standard peripheral drivers, I’ve redesign this library for HAL support over all STM32 series. It has some more features then my first library. It can now read data from MPU6050 (obvious), set interrupts for data ready and motion detection, read interrupts status, set custom data rate for data ready interrupt and set new gyro and accelerometer sensitivities on the fly. More about lib is describe below and on HAL API site. Library...

HAL Library 29- Analog to Digital converter for STM32Fxxx 1

HAL Library 29- Analog to Digital converter for STM32Fxxx

Analog to digital converter library is out. It was a lot of time before I thought why I don’t have this basic library where anyone would use it. Now i exists. This library works on STM32F0xx, STM32F4xx and STM32F7xx based devices. Library Read more about new HAL libraries Features It uses basic polling for ADC complete Supports VBAT reading Does not get high sampling rates Meant for basic use

HAL Library 28- Digital to Analog converter for STM32Fxxx 1

HAL Library 28- Digital to Analog converter for STM32Fxxx

Here it is. After many email about this library, I’ve finally made it. This library works on STM32F0xx, STM32F4xx and STM32F7xx based devices, where DAC is supported. For example, STM32F401 and STM32F411 does not support DAC. Library Read more about new HAL libraries Features It does not use built-in HAL support for generating signals Output is based on user value Independent 2 DAC channel outputs with 12-bit resolution

How to use scanf with USART 3

How to use scanf with USART

I’ve already posted how to use printf (send data to stream) on STM32Fxxx devices. Recently, I received a comment, how to use scanf function to read strings and convert them from USART. Here is a little bit more to do before it will work correct. When you call scanf function, it calls subfunction fgetc, where you return a character. This function is called until it does not return EOF (-1). And it is called very fast. If you check in this function, if...