Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Hands-On RTOS with Microcontrollers
  • Table Of Contents Toc
  • Feedback & Rating feedback
Hands-On RTOS with Microcontrollers

Hands-On RTOS with Microcontrollers - Second Edition

By : Jim Yuill, Penn Linder
5 (1)
close
close
Hands-On RTOS with Microcontrollers

Hands-On RTOS with Microcontrollers

5 (1)
By: Jim Yuill, Penn Linder

Overview of this book

This updated edition of Hands-On RTOS with Microcontrollers is packed with cutting-edge content to help you expand your skills and stay ahead of the curve with embedded systems development. Written by senior engineers with decades of experience in embedded systems and related technologies, it covers the role of real-time OSs in today’s time-critical applications, and it covers FreeRTOS, including its key capabilities and APIs. You’ll find detailed descriptions of system design, hands-on system use, the hardware platform (dev-board, MCU, and debug-probe), and the development tools (IDE, build system, and debugging tools). This second edition teaches you how to implement over 20 real-world embedded applications, using FreeRTOS's primary features. The chapters include example programs on GitHub, with detailed instructions. You’ll create and install your own FreeRTOS system on the dev-board (purchased separately), and set up an IDE project with debugging tools. An ST dev-board is used with the book, and it is purchased separately (STM32 Nucleo-F767ZI - the dev-board is not required to read and understand the book). By the end of this book, you’ll have the hands-on skills to start designing, building, and optimizing embedded applications, using FreeRTOS, development boards, and debugging tools.
Table of Contents (27 chapters)
close
close
1
Part 1: Introduction to RTOSes, the Dev-Board, and Tools
7
Part 2: The FreeRTOS Scheduler, Tasks, and Primary APIs
12
Part 3: Using FreeRTOS to Build Systems
17
Part 4: System Design and Troubleshooting
21
Part 5: Reference Information and FreeRTOS Installation
22
Other Books You May Enjoy
23
Index
1
Appendix A: Tools Quick-Reference

Monitoring for stack and heap problems

When many people first start programming with an RTOS, one of the immediate challenges is figuring out how to properly size the stack for each task. This can lead to some frustration during development because when a stack is overrun, the symptoms can range from odd behavior to a full system crash.

Keeping an eye on stack space

FreeRTOS provides the option for using a stack-overflow callback function. The function is named vApplicationStackOverflowHook. If you choose to use it, it may save you from experiencing the oddball behavior or failure of an application that overruns its stack. When configCHECK_FOR_STACK_OVERFLOW is enabled in FreeRTOSConfig.h, any time a stack overflow is detected by FreeRTOS, the callback function will be run.

There are two potential values for configCHECK_FOR_STACK_OVERFLOW:

  • #define configCHECK_FOR_STACK_OVERFLOW 1: Checks the stack-pointer location upon task exit.
  • #define configCHECK_FOR_STACK_OVERFLOW...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Hands-On RTOS with Microcontrollers
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon