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.

[参考译文] CCS/CC3220S:在 IAR IDE 中运行 BenchLoop Exapmle

Guru**** 3040470 points

Other Parts Discussed in Thread: CC3220S

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/875651/ccs-cc3220s-running-benchloop-exapmle-in-iar-ide

器件型号:CC3220S

工具/软件:Code Composer Studio

我正在尝试在 IAR IDE 中运行 BenchLoop 代码。

完成此处提供的所有建议步骤后: https://processors.wiki.ti.com/index.php/TI-RTOS_Examples_SemiHosting

我无法执行步骤1。 :删除–semihosting 选项。 这可以在生成的示例的 makedef 中完成、也可以通过导入示例的 IDE 完成。

我在控制台上获得以下输出

Benchloop 已启动

计算每个[BIOS API]的最小、最大、平均周期数
1 1 1 1 Hwi_restore()
1 1 1 1 Hwi_disable()
1 1 1 Hwi_dispatcher_prolog
1 1 1 Hwi_dispatcher_epilog
1 1 1 Hwi_dispatch
1 1 1 1硬件中断到被阻止的任务
1 1 1 1硬件中断至软件中断
1 1 1 1 Swi_enable ()
1 1 1 1 Swi_disable()
1 1 1 1 Post_Software_Interrupt_again
1 1 1 1 Post_Software_Interrupt_Withning_Context_Switch
1 1 1 1 Post_Software_Interrupt_With Context_Switch
1 1 1 1 Create_a_New_Task_With_Context_Switch
1 1 1 SET_A_Task_Priority_With_A_Context_Switch
1 1 1 1 Task_yield ()
1 1 1 1 Post_Semaphore_No_Waiting 任务
1 1 1 1 Post_Semaphore_No_Task_Switch
1 1 1 1 Post_Semaphore_With Task_Switch
1 1 1 Pend_ON_Semaphore_No_Context_Switch
1 1 1 Pend_ON_Semaphore_With Task_Switch
1 1 1 Clock_getTicks()
1 1 1 1 posix_Create_a_New_Task_Withning_Context_Switch
1 1 1 posix_set_a_Task_priority_without _a_context_Switch
1 1 1 1 POSIX_Post_Semaphore_No_Waiting 任务
1 1 1 1 POSIX_Post_Semaphore_No_Task_Switch
1 1 1 1 POSIX_Post_Semaphore_With Task_Switch
1 1 1 posix_Pend_ON_Semaphore_No_Context_Switch
1 1 1 1 posix_Pend_ON_Semaphore_With Task_Switch
Benchloop 完成

 

在 CCS 中运行相同的代码可提供正确的输出(启用 GNU 编译器和半主机支持)

[Cortex_M4_0]基准环路已启动
计算每个[BIOS API]的最小、最大、平均周期数
12 12 12 Hwi_restore()
16 16 16 Hwi_disable()
155 155 155 155 Hwi_dispatcher_prologue
275 275 275 275 Hwi_dispatcher_收尾 程序
420 420 420 420 Hwi_调度程序
769 769 769 Hardware_Interrupt_TO_Blocked_Task
531 531 531 531 Hardware Interrupt_TO_Software_Interrupt
97 97 97 Swi_enable ()
20 20 20 Swi_disable()
40 40 40 40 Post_Software_Interrupt_again
123 541 123 Post_Software_Interrupt_Withning_Context_Switch
278 278 278 278 278 Post_Software_Interrupt_With Context_Switch
5201 5635 5201 Create_a_New_Task_Withning_Context_Switch
217 658 217 SET_A_Task_Priority_With_A_Context_Switch
315 315 315 315 315 Task_yield ()
129 570 129 Post_Semaphore_No_Waiting 任务
315 315 315 315 315 315发布信号量_否_任务_开关
409 409 409 409 409 409 Post_Semaphore_With Task_Switch
76 76 76 76 Pend_ON_Semaphore_No_Context_Switch
440 440 440 440 440 440 Pend_ON_Semaphore_With Task_Switch
10 10 10 Clock_getTicks()
10729 11163 10729 POSIX_Create_a_New_Task_Withning_Context_Switch
302 302 302 posix_set_a_Task_priority_without _a_context_Switch
145 145 145 145 posix_Post_Semaphore_No_Waiting 任务
328 769 328 POSIX_Post_Semaphore_No_Task_Switch
421 856 421 posix_post_semaphore_With Task_Switch
88 88 88 88 posix_Pend_ON_Semaphore_No_Context_Switch
449 449 449 posix_Pend_ON_Semaphore_With Task_Switch
Benchloop 完成

 

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

    您好!

    您可以尝试在 CCS 中不修改地运行 IAR 代码吗?  如果可以的话,这是否足够了?

    我知道我们有用于 CC3220S 的 IAR 基准测试、但我们使用 CCS 运行 IAR 构建的二进制文件。
    我无法确认在 IAR IDE 中运行它是否正常。

    犹大