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: Running BenchLoop Exapmle in IAR IDE

Part Number: CC3220S


Tool/software: Code Composer Studio

I am trying to run BenchLoop code in IAR IDE.

After doing all the recommended steps provided here : https://processors.wiki.ti.com/index.php/TI-RTOS_Examples_SemiHosting

I was not able to step1. : Remove the –semihosting option. This can be done in the makedefs of the generated examples or via the IDE on an imported example.

I get the following output at the console

Benchloop Started

Computing the Min, Max, Avg cycles for each [BIOS API]
1 1 1 Hwi_restore()
1 1 1 Hwi_disable()
1 1 1 Hwi_dispatcher_prolog
1 1 1 Hwi_dispatcher_epilog
1 1 1 Hwi_dispatcher
1 1 1 Hardware_Interrupt_to_Blocked_Task
1 1 1 Hardware_Interrupt_to_Software_Interrupt
1 1 1 Swi_enable()
1 1 1 Swi_disable()
1 1 1 Post_Software_Interrupt_Again
1 1 1 Post_Software_Interrupt_without_Context_Switch
1 1 1 Post_Software_Interrupt_with_Context_Switch
1 1 1 Create_a_New_Task_without_Context_Switch
1 1 1 Set_a_Task_Priority_without_a_Context_Switch
1 1 1 Task_yield()
1 1 1 Post_Semaphore_No_Waiting_Task
1 1 1 Post_Semaphore_No_Task_Switch
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 POSIX_Create_a_New_Task_without_Context_Switch
1 1 1 POSIX_Set_a_Task_Priority_without_a_Context_Switch
1 1 1 POSIX_Post_Semaphore_No_Waiting_Task
1 1 1 POSIX_Post_Semaphore_No_Task_Switch
1 1 1 POSIX_Post_Semaphore_with_Task_Switch
1 1 1 POSIX_Pend_on_Semaphore_No_Context_Switch
1 1 1 POSIX_Pend_on_Semaphore_with_Task_Switch
Benchloop Complete

 

Running the same code in CCS gives proper output (with GNU compiler and semihostting support enabled)

[Cortex_M4_0] Benchloop Started
Computing the Min, Max, Avg cycles for each [BIOS API]
12 12 12 Hwi_restore()
16 16 16 Hwi_disable()
155 155 155 Hwi_dispatcher_prolog
275 275 275 Hwi_dispatcher_epilog
420 420 420 Hwi_dispatcher
769 769 769 Hardware_Interrupt_to_Blocked_Task
531 531 531 Hardware_Interrupt_to_Software_Interrupt
97 97 97 Swi_enable()
20 20 20 Swi_disable()
40 40 40 Post_Software_Interrupt_Again
123 541 123 Post_Software_Interrupt_without_Context_Switch
278 278 278 Post_Software_Interrupt_with_Context_Switch
5201 5635 5201 Create_a_New_Task_without_Context_Switch
217 658 217 Set_a_Task_Priority_without_a_Context_Switch
315 315 315 Task_yield()
129 570 129 Post_Semaphore_No_Waiting_Task
315 315 315 Post_Semaphore_No_Task_Switch
409 409 409 Post_Semaphore_with_Task_Switch
76 76 76 Pend_on_Semaphore_No_Context_Switch
440 440 440 Pend_on_Semaphore_with_Task_Switch
10 10 10 Clock_getTicks()
10729 11163 10729 POSIX_Create_a_New_Task_without_Context_Switch
302 302 302 POSIX_Set_a_Task_Priority_without_a_Context_Switch
145 145 145 POSIX_Post_Semaphore_No_Waiting_Task
328 769 328 POSIX_Post_Semaphore_No_Task_Switch
421 856 421 POSIX_Post_Semaphore_with_Task_Switch
88 88 88 POSIX_Pend_on_Semaphore_No_Context_Switch
449 449 449 POSIX_Pend_on_Semaphore_with_Task_Switch
Benchloop Complete

 

  • Hi,

    Can you try running the IAR code unmodified in CCS?  If that works, is that sufficient?

    I know we have IAR benchmarks for CC3220S, but we use CCS for running IAR built binaries.
    I cannot confirm that running it in IAR IDE works correctly.

    Judah