This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
/** * main.c */ #include "device.h" #include "driverlib.h" #include <stdint.h> #include <stdlib.h> #include <stddef.h> #include <string.h> #include <stdio.h> #include <math.h> #include <ti/sysbios/BIOS.h> #include <ti/sysbios/knl/Task.h> #include <ti/sysbios/knl/Event.h> #include <ti/sysbios/knl/Semaphore.h> #include <ti/sysbios/knl/Clock.h> #include <ti/sysbios/heaps/HeapBuf.h> #include <ti/sysbios/heaps/HeapMem.h> #include <ti/sysbios/knl/Event.h> void func(void) { } int main(void) { Task_Params taskParams; Task_Params_init(&taskParams); taskParams.priority = 3; // // Initializes system control, device clock, and peripherals // Device_init(); Device_initGPIO(); // // Initializes PIE and clear PIE registers. Disables CPU interrupts. // and clear all CPU interrupt flags. // Interrupt_initModule(); // // Initialize the PIE vector table with pointers to the shell interrupt // Service Routines (ISR). // Interrupt_initVectorTable(); DEVICE_DELAY_US(1000); while (1) { } }
导入库后 运行以上代码 报错:
ti_sysbios_knl_Task_Params__init__S ./main.obj error #10234-D: unresolved symbols remain error #10010: errors encountered during linking; "C2000_Test.out" not built >> Compilation failure makefile:140: recipe for target 'C2000_Test.out' failed gmake[1]: *** [C2000_Test.out] Error 1 makefile:136: recipe for target 'all' failed gmake: *** [all] Error 2
在工程配置中 导入了XDC和BIOS
头文件也导入了 头文件导入不报错
C:\ti\xdctools_3_50_08_24_core\packages
C:\ti\bios_6_73_01_01\packages
您好
CPU 定时器 0 是通用的,连接到 PIE 块。CPU 定时器 1 也是通用的,连接到 CPU 的 INT13。CPU 定时器 2 为 TI-RTOS 保留。它连接到 CPU 的 INT14。如果未使用 TI-RTOS,则 CPU 定时器 2 可用于通用用途。
关于F280025C是否支持TI-RTOS?datasheet如上说明表示支持
如果支持 如何在工程中移植?
https://www.ti.com.cn/cn/lit/pdf/spruex3
官方有相关指导书,请您参考。
ti_sysbios_knl_Task_Params__init__S ./main.obj 错误 #10234-D:仍有未解析的符号 错误 #10010:链接期间遇到错误;未构建“C2000_Test.out”>> 编译失败 makefile:140:目标“C2000_Test.out”的配方失败 gmake[1]:*** [C2000_Test.out] 错误 1 makefile:136:目标“all”的配方失败 gmake:*** [all] 错误 2
关于这报错,就是缺少相关库文件,导致软件无法理解星官定义导致的,您导入相关库就可以解决问题。
通过CCS重新建立工程 并选择SYS/BIOS下的typcial后 添加了C28的app.cfg文件 显示报错BIOS.cpuFreq is undefined. You must define the CPU frequency in your application configuration. For example, if the PLL is being configured for 100MHz, add this to your application configuration script: BIOS.cpuFreq.lo = 100000000; 在将BIOS.cpuFreq.lo指定后 仍然报错 无法解决 请问是否有官方F28002x运行TI RTOS的示例工程?
您好
https://dev.ti.com/tirex/explore/node?node=A__AJJ2c1vyIDgr4ooe.ROWCw__C2000WARE__1kRFgrO__LATEST
这是官方TMS320F280025C的SDK 和示例。