Preface
For many embedded system developers, the STM32 series from STMicro can be considered a familiar MCU. One important reason for this is the use of ARM Cortex core and the stability of various peripherals, but the fact that the development environment, including IDE tools and flash download tools, can be used for free, also helps users in their decision-making process.
In addition, the availability of abundant examples that many users use and the existence of tutorials or blogs to refer to online are also reasons why people choose the ST MCU.
However, it is also true that many users face difficulties in fine control.
For these reasons, at twareLAB, reusable functions based on our internal development experience have been library-ized to shorten the development period without repeating difficulties in the next development project. In this process, we developed the libtwlab_stm32f4.a library for STM32F4, which we share to help developers who want to use STM32F4.
Basic Structure
libtwlab_stm32f4.a is for STM32F4 series MCU
The target MCU for libtwlab_stm32f4.a is the STM32F4 series. The basic structure is written in CPP, not C. The reason for using CPP is to create a minimal basic class for validation and to inherit and extend the class as needed. Additionally, the overloading feature of CPP is effective for using the same function name with different parameters, depending on the customer's needs.
Prerequisite
- STMCubeIDE v1.11.0 or higher
- STMCubeProgrammer v2.12.0 or higher
- STlink or Nucleo Board (for binary downloading)
- TW100PC-EVB from twareLAB TW100PC-EVB
Blog Post Outline:
- Composition of libtwlab_stm32f4.a
- Creating a CPP project in STMCubeIDE
- How to add libtwlab_stm32f4.a library to STMCubeIDE
- [Example 1] GPIO Blinking
- [Example 2] How to output Debug Messages Using UART DMA
- [Example 3] Setting up a Timer
- [Example 4] How to create User Task and User Timer
- [Example 5] How to create a Multiple GPIO Control Task
- [Example 6] How to create a Multiple ADC Control Task
- [Example 7] How to read/write an EEPROM with I2C
- [Example 8] Using WIZnet W5500 with SPI DMA
- [Example 9] How to create an AT Command Task
- Other topics
0 Comments