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.

[参考译文] TDA4VM:c7x_kernel 实现

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1200040/tda4vm-c7x_kernel-implementation

器件型号:TDA4VM

大家好、

您能在下面的查询中提供帮助吗?

客户希望了解如何使用视觉应用运行简单的 C7x 代码(即阵列添加)。 如何使用视觉应用更改文件以执行新的 c7x 项目。 需要更改哪些文件以及需要编辑代码的哪一部分才能在同一视觉应用中执行新的 c7x 代码。 我在这里附加了一小段代码供您参考。

 #include "c7x.h"

空 addArrays (Int16_t *平纳、Int16_t *平星、Int16_t *平星、Int16_t *平星、Int32_t arraySize)

  int32_t CTR;
  
  对于(CTR = 0;CTR < arraySize;CTR+=32)
  {

    short32 Vina =* stov_ptr (short32、(int16_t *)(Pina + CTR));      
  
    short32 vInb =* stov_ptr (short32、(int16_t *)(pInB + CTR));      

    short32 vOutC = Vina + vInB;                     
  
    * stov_ptr (short32、(int16_t *)(pOutC + CTR))= vOutC;        
  }

客户能够运行提供的基本 C7x 示例代码并获得预期结果。 但是、我想知道为了运行简单的代码、如数组加法、需要进行哪些更改  

如果您需要更多信息、请告诉我。

此致、

Marvin

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

    Marvin、您好!

    我们有一个类似的演示、用于在当前 SDK 中 VISION_APPS 的 C7x 上添加两个映像。

    为此、我们将使用自定义节点"app_c7x_kernel_img_add_kernel_node"。

    请参阅文件夹 vision_apps/apps/basic_demos/app_c7x_kernel 中此节点的实现、并对您的用例重复此操作。 (即、围绕您的添加实现创建一个节点)

    您可以参考以下文档来创建自定义内核。

    TIOLX 用户指南:用户内核和用户目标内核

    此致、
    Nikhil