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.

官方PID控制的汇编代码如何“inline”到cla背景任务?

Other Parts Discussed in Thread: C2000WARE

在CLA背景任务中使用PID控制函数 DCL_runPI_L2 并打开 --opt_level:1

CCS报错:

#99923 "../cla_ex4_pwm_control_cla.cla", line 533: CLA does not permit function calls in background tasks. Try inlining function.

在cla文件加入

#pragma FUNC_ALWAYS_INLINE(DCL_runPI_L2)之后也没有任何作用

工程设置也没有disable inlining,是哪里还需要设置吗?