Tick Tick – ARM Cortex-M SysTick timer

Let’s explore a simple use of the SysTick timer provided in ARM Cortex-M devices. Though the primary intention of the SysTick timer is to be used as a periodic interrupt to invoke kernel in an operating system, it can also be used as a simple peripheral timer. This post also introduces you to exception handling mechanism of ARM Cortex-M core.

Continue reading

Blink an LED in ARM assembly on STM32F4

If you are like me, you always have the urge to understand ARM Cortex-M architecture in more details. You want to write a small code in assembly language to reach closer to the hardware. But you struggle to find a good how-to-guide for assembly programming. Most of the examples you find are written in higher level languages like C/C++. Don’t give up yet. Read on this post which will help you take the first step in learning ARM assembly programming.

Continue reading