FreeRTOS

Started by tha, October 08, 2021, 08:24:01 AM

Previous topic - Next topic

tha

https://www.freertos.org/FreeRTOS-quick-start-guide.html

FreeRTOS Kernel Quick Start Guide

หน้านี้เริ่มต้นด้วยการอธิบายวิธีทำให้ the RTOS รันบน your target เร็วที่สุดเท่าที่เป็นได้. ด้านล่างนั้น the "Next steps - further reading" section จัดให้มีชุดของลิ้งค์ที่ช่วยให้คุณเพิ่มพูนความรู้ของคุณ, ตอบคำถามทั่วไป, และกลายเป็นผู้ใช้ที่ชำนาญ FreeRTOS.

โปรดดู the Getting Started With Simple FreeRTOS Projects documentation, และ the FreeRTOS books สำหรับการเริ่มต้นที่ดีที่สุดเท่าที่เป็นได้. มีแม้กระทั่ง a FreeRTOS Windows port เพื่อยอมให้ทดลองกับ FreeRTOS บน a Windows host, โดยใช้ free tools, และไม่มี any special hardware requirements. New developers ถูกแนะนำให้ใช้ the configASSERT() macro อีกด้วย.

tha

RTOS quick start instructions

FreeRTOS ถูกพอร์ตไปยัง many different architectures และ compilers. แต่ละ RTOS port ถูกมาพร้อมกับ a pre-configured demo application ให้คุณพร้อมใช้งานได้อย่างรวดเร็ว. ที่ดีกว่ายังคง, แต่ละ demo application ถูกมาพร้อมกับ a documentation page จัดให้มี full information เกี่ยวกับการค้นหา the RTOS demo project source code, building the demo project, และการกำหนดค่า the target hardware.

The demo application documentation page จัดให้มี essential RTOS port specific information อีกด้วย, รวมถึง how to write FreeRTOS compatible interrupt service routines, ซึ่งจำเป็นต้องแตกต่างกันเล็กน้อยบน different microcontroller architectures.

tha

ทำตามคำแนะนำง่ายๆ เหล่านี้เพื่อเริ่มต้นใช้งานในไม่กี่นาที:

1. Download the RTOS source code:

Download the FreeRTOS .zip file. นี้บรรจุ the RTOS kernel source code และ demo projects สำหรับ every official port. อย่าตกใจกับจำนวนไฟล์ เพียงส่วนย่อยเล็กๆ ที่จำเป็นสำหรับ one demo! Unzip the files ลงใน a convenient directory.


tha

2. ค้นหา the relevant documentation page:

ค้นหา the "Supported Devices" ใต้ the Kernel dropdown, จากนั้นคลิก the "Officially Supported Demos" link (ดูรูปภาพทางขวา) เพื่อดู a list of microcontroller vendors ที่ถูกรองรับโดย FreeRTOS. คลิก a microcontroller vendor name จะนำคุณไปยัง a list of documentation pages ที่เฉพาะเจาะจงถึงผู้ขายรายนั้น.

อ้างถึง the Modifying a demo application to run on different hardware page หาก a pre-configured port ที่ไม่มีให้ใช้เป็นประโยชน์สำหรับ your development board.

tha

3. Building the project:

ทำตามคำแนะนำบน the RTOS port documentation page เพื่อค้นหา the required project ภายใน the FreeRTOS directory structure, จากนั้นเปิดและ build the demo project.

4. Running the demo application:

ทำตามคำแนะนำบน the RTOS port documentation page เพื่อตั้งค่า the target hardware, ดาวน์โหลดและปฏิบัติ the demo application. The same documentation page จะจัดให้มี information เกี่ยวกับ the functionality of the demo application เพื่อให้คุณทราบว่ามันทำงานอย่างถูกต้องหรือไม่.

5. Create your own project:

วิธีที่ง่ายที่สุดในการสร้าง your own FreeRTOS project คือให้มันอยู่บนฐานของ the demo application ที่ถูกจัดให้มีสำหรับ your chosen port. เมื่อคุณมี the demo application ที่รันได้แล้ว, ให้ลบ the demo functions และ source files ออกทีละน้อยและแทนที่พวกมันด้วย your own application code.  ความช่วยเหลือในการแก้ไขปัญหามีให้ใช้ประโยชน์ภายใต้ the FAQ "My Application ไม่ทำงาน, มีอะไรที่ผิดรึ?".

tha

Further Reading(อ่านเพิ่มเติม)

วิธีที่ง่ายที่สุดในการสร้าง your own FreeRTOS application คือให้มันอยู่บนฐานของ the demo application ที่ถูกจัดให้มีสำหรับ your chosen port. เมื่อคุณมี the demo application ที่รันได้แล้ว, ให้ลบ the demo functions และ source files ออกทีละน้อยและแทนที่พวกมันด้วย your own application code.

ต่อไปนี้เป็นทางลัดไปยังข้อมูลที่มีค่าสำหรับนักพัฒนาที่จริงจัง:

     •  The FreeRTOS API reference สามารถเข้าถึงได้ผ่านทาง the API Reference menu. ตัวอย่างเช่น, รูปภาพทางด้านขวาแสดงวิธีเข้าถึงเอกสารบนทุก the
         FreeRTOS Task Control functions. A pdf Reference Manual มีให้ใช้ประโยชน์อีกด้วย.
     •  ทำความเข้าใจ the FreeRTOS directory structure.
     •  บทนำสู่ the RTOS demo application projects.
     •  การปรับเปลี่ยน an RTOS demo application เพื่อรันบน different hardware.
     •  ทำความเข้าใจ the FreeRTOS license.
     •  คำถามที่พบบ่อย: แอปพลิเคชันของฉันไม่ทำงาน มีอะไรผิดพลาด?
     •  การใช้ configASSERT() เพื่อดักจับข้อผิดพลาดของผู้ใช้
     •  การได้รับการสนับสนุนฟรี
     •  การได้รับบริการสนับสนุนและการพัฒนาเชิงพาณิชย์ (ลิงก์ไปยังเว็บไซต์พันธมิตรบุคคลที่สาม!)

tha

https://www.freertos.org/Documentation/RTOS_book.html

FreeRTOS Documentation
PDF files

ความต้องการที่ไม่เคยมีมาก่อนสำหรับ FreeRTOS ทำให้เรายุ่งมาก - มากเสียจนหาเวลาทำหนังสือเล่มล่าสุดของเราให้เสร็จ "Mastering the FreeRTOS Real Time Kernel" เป็นสิ่งที่ท้าทาย! มีการจัดเตรียมสำเนาก่อนเผยแพร่ฟรีให้กับผู้ซื้อหนังสือเก่ามาระยะหนึ่งแล้ว และตอนนี้เราได้ขยายข้อเสนอนี้ให้กับทุกคนแล้ว ใช้ลิงก์ด้านล่างเพื่อดาวน์โหลดสำเนาของคุณ

   Mastering the FreeRTOS Real Time Kernel - a Hands On Tutorial Guide
   FreeRTOS V10.0.0 Reference Manual
   Book companion source code

tha

https://www.freertos.org/RTOS.html

The FreeRTOS™ Kernel
ผู้นำตลาด มาตรฐานโดยพฤตินัย และเคอร์เนล RTOS ข้ามแพลตฟอร์ม

พัฒนาร่วมกับ the world's leading chip companies เป็นระยะเวลา a 18 year, FreeRTOS เป็นผู้นำตลาด real--time operating system (RTOS) สำหรับ microcontrollers และ small microprocessors. แจกจ่ายฟรีภายใต้ the MIT open source license, FreeRTOS รวมเอา a kernel และชุดที่เติบโตขึ้นของ libraries เหมาะสำหรับการใช้งานในทุกภาคส่วนอุตสาหกรรม. ด้วยการดาวน์โหลดหนึ่งครั้งทุกๆ 170 วินาที, FreeRTOS ถูกสร้างขึ้นโดยเน้นที่ความน่าเชื่อถือ ความสามารถเข้าถึงได้ และความสะดวกในการใช้งาน