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.

请教自建库的问题



想把关键算法封装,封装后能在ram中执行,另外也想把藕和外设操作的一些指令也封装一下
想想位置可能是得要cmd来控制 ,但是发现lib工程里加了cmd就报
Error, Don't know how to build file xxxx.cmd

不知道哪位大虾了解?感谢

  • Lib工程里不能放CMD,建议你在应用工程中,用#progam指令定义你的关键算法到固定区域。

  • 谢  从我实验的结果看 对库里面的函数还是不行。

    #pragma CODE_SECTION(Alg_Int_Controller , ".Epwm1Funcs");

    map文件中

    003e9627   _Alg_Int_Controller 

    请问第二个问题您知道怎么解决吗,flash和ram里执行就查 几个us 有时候倒还能容忍。第二个问题对ECAP等外设操作语句封装成库的问题不知道该怎么弄,ti也没有文档