STM32F4-Discovery

STM32 Timers – Output Compare

Keywords: Embedded systems, ARM, STM32F4, Timers, Counter Code Link: Source Code Github Keil- Bare-Metal Code Link: Source Code Github Keil- HAL Libraries In the introductory tutorial, we discussed main building blocks of STM32 Timers. The tutorial can be accessed via the following link. Introduction to […]

STM32F Timers – Simple Up/Down Counter Demo – Blinky LED

Keywords: Embedded systems, ARM, STM32F4, Timers, Counter, LED Code Link: Source Code Github Keil- Bare-Metal Code Link: Source Code Github Keil- HAL Libraries In this tutorial we will go one step further into programming STM32 timers to blink an LED each time the timer count […]

Introduction to STM32 Timers

Keywords: Embedded systems, ARM, STM32F4, Timers, Counter In the world of embedded systems the most important parameter is time. It’s the time that qualifies a systems from simple blinky led to complex inter-systems communication. Its time which defines how fast/slow a job can be done […]

STM32F4xx GPIO`s (as Input)

Keywords: Embedded systems, ARM, STM32F4, GPIOs, Multiplexed Pins Code Link: Source Code Github Keil- Bare-Metal Code Link: Source Code Github Keil- HAL Libraries GPIOs (General Purpose Input Output) enable a processor to interact with outside world. GPIOs are the most common way of interacting processor […]

STM32F4xx GPIO`s (as Output)

Keywords: Embedded systems, ARM, STM32F4, GPIOs, Multiplexed Pins Code Link: Source Code Github Keil- Bare-Metal Code Link: Source Code Github Keil- HAL Libraries GPIOs (General Purpose Input Output) enable a processor to interact with outside world. GPIOs are the most common way of interacting processor […]

STM32F4xx GPIOs Alternate Function

Keywords: Embedded systems, STM32F4, GPIOs, Multiplexed Pins The number of transistors per square inch will double approximately every 18 months. (revised) “Moore’s Law” As per the above Moore’s Law, doubling the number of transistors per square inch mean more and more functionalities can be added […]

Programing external STM Microcontroller via STM32F4xx Evaluation board

Keywords: Embedded systems, ARM, STM32F4, SWD, JTAG, Debug Adapter You have been playing with your newly bought STM43F4-Discovery board for a while and got a good grasp of all its peripherals. Now you are planning to build your own custom PCB/Product based on ARM Cortex-M […]

Redirecting printf to STlink Debugger on STM32F4-Discovery using Keil

Keywords: Embedded systems, ARM, STM32F4, UART, ITM, printf Code Link: Source Code Github Link In the previous tutorial we described how to redirect printf messages to UART. The problem with redirecting printf messages to UART is that it requires a dedicated UART apart from extra […]

Redirecting printf to UART on STM32F4-Discovery using Keil

Keywords: Embedded systems, ARM, STM32F4, UART, ITM, printf Code Link: Source Code Github Link The “C” printf is one of the most commonly used debug function/assistant used in DESKTOP applications. In embedded systems, the printf is not used frequently due to: Larger Footprint High CPU cycles consumptions which indeed […]

Overview of STM32F4xx Interrupts

Keywords: Embedded systems, ARM, STM32F4, Interrupts, NVIC, EXTI Code Link: Source Code Github Keil- Bare-Metal Code Link: Source Code Github Keil- HAL Libraries On a very broad level, an interrupt is a signal to a processor emitted by on-chip/off-chip hardware or software indicating an event […]