微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI WIFI设计交流 > cc3200-iar freertos的问题

cc3200-iar freertos的问题

时间:10-02 整理:3721RD 点击:

文档上说sdk\example\ewarm下的程序是用freertos,可是我打开编译后发现它没有包含相应的freertos库,建立任务--osi_TaskCreate()也不是freertos,请问为什么。例程中有freertos的实例么

例程中有freertos的实例,请参考C:\ti\CC3200SDK_1.2.0\cc3200-sdk\example\freertos_demo

同时也可以将FreeRTOS切换到TI-RTOS

// Same application can be used to demonstrate TI-RTOS demo with a small change
// in CCS project proerties:
// a. add ti_rtos_config in workspace and add as dependencies in
// project setting Build->Dependecies->add
// b. Define USE_TIRTOS in Properties->Build->Advanced Options->
// Predefined Symbols instead of USE_FREERTOS
// c. add ti_rtos.a in linker files search option

使用FreeRTOS的简介如下:

Overview
FreeRTOS is an opensource RealTime Operating system. Its
implements only a very minimalist set of functions: very basic handle
of tasks and memory management, and nothing is provided for network
communication, drivers for external hardware, or access to a
filesystem. However, among its features are the following
characteristics:
1. Preemptive tasks
2. Small footprint
3. Written in C and compiled with various C compiler
4. Unlimited number of tasks can run at the same time
5. Implements queues, binary and counting semaphores and mutexes.
6. Inter Task communication is accomplished using queues.
Application details
The objective of this application is to showcasing the FreeRTOS feature like Multiple task creation, Inter task
communication using queues. Two tasks and one queue is created. one of the task sends a constant message into the
queue and the other task receives the same from the queue. after receiving every message, it displays that message
over UART.
Source Files briefly explained
main - Main file that showcases the two tasks communicating with each other using a queue.
pinmux - Pinmux configurations as required by the application.
uart_if - To display status information over the UART.
Usage
• Setup a serial communication application (HyperTerminal/TeraTerm). For detail info visit Terminal setup
On the host PC. The settings are:
- Port: Enumerated COM port
- Baud rate: 115200
- Data: 8 bit
- Parity: None
- Stop: 1 bit
- Flow control: None
• Run the reference application (Flashing the bin/IAR/CCS).
• Observe the status messages displayed by second task on the host over COM port.

请教一下,   ccs ti rtos  和 iar free rtos 有区别吗? 是不是大体都一样。 程序用哪个 都可以,出现问题也比较好解决。

他们之前 切换 是不是只需要简单的设置(如 ti 切换到 free )?

ti rtos加入了低功耗,两者没有大的差别,freertos是开源的,另一个是ti自己的。使用freertos你能跟到内核代码,ti的很难。

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top