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.

[参考译文] RTOS/TM4C129XNCZAD:DK-TM4C129X 套件 RTOS 多任务处理

Guru**** 2429790 points
Other Parts Discussed in Thread: SYSBIOS, TM4C129XNCZAD

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/687416/rtos-tm4c129xnczad-dk-tm4c129x-kit-rtos-multitasking

器件型号:TM4C129XNCZAD
Thread 中讨论的其他器件:SYSBIOS

工具/软件:TI-RTOS

我不熟悉 CCS、想使用 RTOS 并行运行2个函数。 当前正在运行 ADC 代码并读取板载温度传感器值。 但现在我想使用 TivaWare 的 OTG 示例,如果有人能帮助我的话,我会很高兴听到这个示例,谢谢。 我已经编辑了代码并附加了项目。 因为现在我遇到这些错误


****项目 gpiointerrupt_DK_TM4C129X_TI 的配置调试构建****

"C:\\ti\\ccsv7\\utils\\bin\\gmake"-k -j 2 all -O
正在制作./src/sysbios/sysbios.aem4f ...
gmake[1]:没有为"全部"执行任何操作。
正在制作./src/sysbios/sysbios.aem4f ...
gmake[2]:对于"全部"没有要做的事情。
'构建目标:gpiointerrupt_DK_TM4C129X_TI.out'
'调用:ARM 链接器'
"c:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/bin/armcl -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --define=ccs"--define_TM4C129XNCZAD --define=ccs --define=TIv4awabi -g --gdK-warning="ccs_warning=TI_ram_ram_ines=tid_ram_ram_ram_ate-tid_ram_off-tid_ram_ram_ram_ram_ines=tive_display_ram_off-ine_ines=tive_display_subs=tive_ine-ex-core_display_ram_ram_ram_ram_ram_off-tid_ram_ine_remot_ine_ine_ine_display_ram_off-core_remote_ine_ine_ine_display_subsection-core_display_ine_display_off-core_display_subsection-tive_remote_ine_ine_ine_display_ine_ine_display_ine_display_off-core-ex-core-/ti/tirtos_tivac_2_16_00_08/products/TivaWare_C_Series-2.1.1.71b/driverlib/ccs/Debug/driverlib.lib /ti/tirtos_tivac_2_16_00_08/products/TivaWare_C_Series-2.1.1.71b/usblib/ccs/Debug/usblib.lib /ti/tirtos_tivac_2_16_00_08/products/TivaWare_C_Series-2.1.1.71b/grlib/ccs/Debug/grlib.lib /ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include /ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/lib

"./USB_OTG_LOCK_CCS.cmd"、第47行:错误#10263:闪存范围已指定
"./USB_OTG_LOCK_CCS.cmd"、第47行:错误#10264:闪存存储器范围与现有存储器范围闪存重叠
"./USB_OTG_LOCK_CCS.cmd"、第49行:错误#10263:已指定 SRAM 存储器范围
"./USB_OTG_LOCK_CCS.cmd"、第49行:错误#10264:SRAM 存储器范围与现有存储器范围 SRAM 重叠

未定义的首次引用
符号
------ --------
ClearMainWindow。/gpiointerrupt.obj
DeviceInit ./gpiointerrupt.obj
DeviceMain ./gpiointerrupt.obj
FrameDraw ./gpiointerrupt.obj
GetTickms ./gpiointerrupt.obj
HostInit ./gpiointerrupt.obj
HostMain ./gpiointerrupt.obj
Kentec320x240x16_SSD2119Init ./gpiointerrupt.obj
PinoutSet ./gpiointerrupt.obj
ROM_SysCtlPeripheralEnable ./gpiointerrupt.obj
SysCtlVCOGet ./gpiointerrupt.obj
UARTStdioConfig ./gpiointerrupt.obj
UpdateStatus ./gpiointerrupt.obj
G_sKentec320x240x16_SSD2119.gpiointerrupt.obj

错误#10234-D:未解析的符号仍然存在
错误#10010:链接期间遇到错误;未生成"gpiointerrupt_DK_TM4C129X_TI.out"

>>编译失败
Makefile:147:目标'gpiointerrupt_DK_TM4C129X_TI.out'的配方失败
Makefile:143:目标'all'的配方失败
gmaked[1]:***[gpiointerrupt_DK_TM4C129X_TI.out]错误1.
gmake:***[全部]错误2.

****构建完成****

e2e.ti.com/.../gpiointerrupt_5F00_DK_5F00_TM4C129X_5F00_TI.rar

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

     有多个 TI-RTOS USB 示例。 请从这些示例开始、因为 TI-RTOS 具有支持 USB 的驱动程序。 我不认为将 TivaWare USB 与 TI-RTOS 混合使用是一个好主意、因为您可能会遇到其他问题。  

      

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我想使用 OTG 线缆作为 USB 线缆为电路板供电。 我应该如何在 TI-RTOS 中同时运行2个任务。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我使用了 USB 的 TI-RTOS 示例、并尝试了它、我的代码构建良好、但在调试模式下、它在该命令的 HWI.C 文件上存根
    开关(excContext->threadType)
    任何问题的想法
    来显示我的代码

    e2e.ti.com/.../gpiointerrupt.c

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您对同时运行两个任务的问题不清楚。 您只需使用 Task_construct_create 一个新任务。 查看 TI-RTOS SPI 示例、其中创建了两个任务、一个用于主任务、另一个用于从任务。 每个任务都是使用其自己的堆栈和优先级创建的。