FreeRTOS 您所在的位置:网站首页 freertos参考手册中文 FreeRTOS

FreeRTOS

2023-09-17 07:51| 来源: 网络整理| 查看: 265

Kernel > Getting Started

FreeRTOS Kernel Quick Start Guide This page starts by describing how to get the RTOS running on your target as quickly as possible. Below that, the "Next steps - further reading" section provides a set of links to enable you to further your knowledge, answer common questions, and become an expert FreeRTOS user.

Also see the Getting Started With Simple FreeRTOS Projects documentation, and for the best possible start, the FreeRTOS books. There are even FreeRTOS Windows and Linux ports and QEMU projects to allow experimentation with FreeRTOS using free tools, and without any special hardware requirements.

Preliminary tips Whether you are new to FreeRTOS or an experienced developer, it is always advised to start new developments with configASSERT() defined, a malloc failed hook implemented, and configCHECK_FOR_STACK_OVERFLOW set to 2.

RTOS quick start instructions FreeRTOS has been ported to many different architectures and compilers. Each RTOS port is accompanied by a pre-configured demo application to get you up and running quickly. Better still, each demo application is accompanied by a documentation page providing full information on locating the RTOS demo project source code, building the demo project, and configuring the target hardware.

The demo application documentation page also provides essential RTOS port specific information, including how to write FreeRTOS compatible interrupt service routines, which is necessarily slightly different on different microcontroller architectures.

Follow these easy instructions to get up an running in minutes:

Download the RTOS source code:

The RTOS libraries are available individually from Git, but the easiest way to get started is to download the FreeRTOS .zip file as that also contains demo projects for every official port. Don't be overwhelmed by the amount of files, only a tiny subset are required for one demo! Unzip the files into a convenient directory.

Locate the relevant documentation page:

View the "Supported Devices" page to see a list of microcontroller vendors that are officially supported by FreeRTOS. Clicking a microcontroller vendor name will take you to a list of documentation pages specific to that vendor.

Refer to the Modifying a demo application to run on different hardware page if a pre-configured port is not available for your development board.

Building the project:

Follow the instructions on the RTOS port documentation page to locate the required project within the FreeRTOS directory structure, then open and build the demo project.

Running the demo application:

Follow the instructions on the RTOS port documentation page to set up the target hardware, download, and execute the demo application. The same documentation page will provide information on the functionality of the demo application, so you know if it is executing correctly or not.

Create your own project:

The simplest way to create your own FreeRTOS project is to base it on the demo application that is provided for your chosen port. Once you have the demo application running, incrementally remove the demo functions and source files and replace them with your own application code.  Troubleshooting help is available under the FAQ "My Application does not run, what could be wrong?".  

Further Reading The simplest way to create your own FreeRTOS application is to base it on the demo application that is provided for your chosen port. Once you have the demo application running, incrementally remove the demo functions and source files and replace them with your own application code.

The following are some shortcuts to valuable information for the serious developer:

The FreeRTOS kernel API reference is available online and as a PDF download. Understanding the FreeRTOS directory structure. An introduction to the RTOS demo application projects. Modifying an RTOS demo application to run on different hardware. Understanding the FreeRTOS license. FAQ: My application does not run, what could be wrong? Using configASSERT() to trap user errors Obtaining free support. Obtaining commercial licenses and development services (links to a third party partner website!).

 

 

 

[ Back to the top ]  [ About FreeRTOS ]  [ Privacy ]  [ Sitemap ]  [ Report an error on this page ] Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有