Book description
Using FreeRTOS and libopencm3 instead of the Arduino software environment, this book will help you develop multi-tasking applications that go beyond Arduino norms. In addition to the usual peripherals found in the typical Arduino device, the STM32 device includes a USB controller, RTC (Real Time Clock), DMA (Direct Memory Access controller), CAN bus and more.
Each chapter contains clear explanations of the STM32 hardware capabilities to help get you started with the device, including GPIO and several other ST Microelectronics peripherals like USB and CAN bus controller. You’ll learn how to download and set up the libopencm3 + FreeRTOS development environment, using GCC. With everything set up, you’ll leverage FreeRTOS to create tasks, queues, and mutexes. You’ll also learn to work with the I2C bus to add GPIO using the PCF8574 chip. And how to create PWM output for RC control using hardware timers.
You'll be introduced to new concepts that are necessary to master theSTM32, such as how to extend code with GCC overlays using an external Winbond W25Q32 flash chip. Your knowledge is tested at the end of each chapter with exercises. Upon completing this book, you’ll be ready to work with any of the devices in the STM32 family.- Initialize and use the libopencm3 drivers and handle interrupts
- Use DMA to drive a SPI based OLED displaying an analog meter
- Read PWM from an RC control using hardware timers
Table of contents
- Cover
- Front Matter
- 1. Introduction
- 2. Software Setup
- 3. Power Up and Blink
- 4. GPIO
- 5. FreeRTOS
- 6. USART
- 7. USB Serial
- 8. SPI Flash
- 9. Code Overlays
- 10. Real-Time Clock (RTC)
- 11. I2C
- 12. OLED
- 13. OLED Using DMA
- 14. Analog-to-Digital Conversion
- 15. Clock Tree
- 16. PWM with Timer 2
- 17. PWM Input with Timer 4
- 18. CAN Bus
- 19. CAN Bus Software
- 20. New Projects
- 21. Troubleshooting
- Answers to Exercises
- STM32F103C8T6 GPIO Pins
- Back Matter
Product information
- Title: Beginning STM32: Developing with FreeRTOS, libopencm3 and GCC
- Author(s):
- Release date: June 2018
- Publisher(s): Apress
- ISBN: 9781484236246
You might also like
book
Programming with STM32: Getting Started with the Nucleo Board and C/C++
Create your own STM32 programs with ease! Get up and running programming the STM32 line of …
book
Linux Kernel Development, Third Edition
Linux Kernel Development details the design and implementation of the Linux kernel, presenting the content in …
book
Linux Kernel Programming
Learn how to write high-quality kernel module code, solve common Linux kernel programming issues, and understand …
video
Embedded Systems Object-Oriented Programming in C and C++
This Embedded Systems Object-Oriented Programming course will help you develop the skills you need to be …