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.

C674x的裸机开发 vs bios开发

Other Parts Discussed in Thread: SYSBIOS

我在c674x裸机上编写并优化了一个图像处理算法程序,获得了640×480图像27fps的处理速度,不涉及任何外设操作。但由于DSP的很多应用案例似乎都是要有系统bios的,那么我的问题如下:

1.裸机上的处理速度能否代表bios上相同程序的处理速度?即如果在C674x上搭建个bios系统,然后处理我的算法,还能否达到640×480图像27fps的处理速度?

2. 裸机上的处理是否与bios上只调度单个任务的情况相当?

  • 你想加bios,是要加其它应用吗?那么取决于其它应用要占多少时间,BIOS本身只起到任务调度管理的作用,任务切换的时间可以参考BIOS安装目录下的文档:

    C:/ti/bios_6_45_00_19/docs/Bios_User_Guide.pdf

    C:/ti/bios_6_45_00_19/packages/ti/sysbios/benchmarks/doc-files/C674_times.html

    C674 Timing Benchmarks

    ti.platforms.evmOMAPL138 (compiler version: 7.4.6)

    Benchmark Cycles (1)
    Interrupt Latency 181
    Hwi_restore() 2
    Hwi_disable() 3
    Hwi dispatcher prolog 115
    Hwi dispatcher epilog 124
    Hwi dispatcher 233
    Hardware Interrupt to Blocked Task 417
    Hardware Interrupt to Software Interrupt 269
    Swi_enable() 61
    Swi_disable() 13
    Post Software Interrupt Again 41
    Post Software Interrupt without Context Switch 72
    Post Software Interrupt with Context Switch 145
    Create a New Task without Context Switch 1396
    Set a Task Priority without a Context Switch 139
    Task_yield() 183
    Post Semaphore, No Waiting Task 50
    Post Semaphore No Task Switch 173
    Post Semaphore with Task Switch 220
    Pend on Semaphore, No Context Switch 45
    Pend on Semaphore with Task Switch 230
    Clock_getTicks() 13