Tagged: cortex

AT commands parser for ESP8266 50

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...

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...

How to properly enable/disable interrupts in ARM Cortex-M? 9

How to properly enable/disable interrupts in ARM Cortex-M?

Point of this post is not how to use NVIC (Nested Vectored Interrupt Controller) in Cortex-M processors but how to disable/enable interrupts properly for your system to avoid strange behaviours in your code. Let’s assume you have 2 functions, which do some important stuff and they have to make sure that noone interrupts these 2 functions

CPU load monitor for STM32F4xx 0

CPU load monitor for STM32F4xx

I’ve been searching for a simple CPU load monitor on STM32F4xx device. Today, I’ve managed to get one very, very primitive CPU load monitor for these devices. Check library here. STM32F4xx have built-in DWT (Data Watchpoint and Trace unit) which has several timers there. 2 of them are cycle counter and sleep counter. The first counts number of CPU cycles and the second counts number of cycles where CPU was sleeping. It would be very easy to get CPU load,...