Posts

Writing code for the STM32

Writing Code for the STM32F Introduction Following my previous post on setting a project and all the necessary files for an STM32F, I will now guide you to setup the code that needs to be written. In case you get lost in the steps below please refer to the following post Introduction to STM32F   All the code will be placed in the files which were created in Introduction to STM32F  will be reused here. Before we start writing any code, first you need to understand how everything will be structured. Below is a summary of how the code will be organized:   Preparing to write the code In order to code the STM32F C programming language will be used. In C programming language we don't write all the code in a continuous set of lines in a single file. This makes the code difficult to maintain and re-use. The proper way to proceed is to first decide what the microcontroller needs to do. For this post I will keep things simple I just want to make pin PB8 an out...

Beginner's guide to STM32 Microcontroller

Image
STM32F Getting Started Tutorial Introduction The STM32F series of microcontrollers are made by ST and are one of the most powerful microcontrollers out there. These devices feature an ARM Cortex M CPU surrounded by a variety of very useful modules. They exist in different offerings namely: Value line, medium density, high density and XL density. They are also available from most online sellers at reasonable prices. Today I will explain the setup needed and how to proceed in making a project with these devices. In case the reader is not familiar with microcontrollers I would recommend having a look at this post: Introduction to microcontrollers Tools needed to build a project on a STM32FXXX Part 1 The Hardware In terms of hardware what's needed is a development board, two choices are possible for the development board either an OEM board pictured below, but do note they contain no programmer: and you might need an ST link programm...