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.

TMS320F28377D: 双核运行相同代码时间不一样

Part Number: TMS320F28377D


采用双核CPU1和CPU2运行逻辑和算法程序,比较了一下算法中断代码运行时间,发现:运行完全相同代码,中央处理器CPU2运行时间是CPU1的4倍左右,不知道是什么原因导致的?

  • 双核的CPU频率都是一样的,所以运行指令的时间应该也是一样的。但是CPU2中运行代码可能会涉及CPU1的内存分配、外设所属权等等,会消耗时间。具体要看代码执行的任务是什么了。