AN1017中dspic30F3010BLDC电机正弦波驱动编译出错。请问这是怎么回事?谢谢----------------------------------------------------------------------
Release build of project `D:\gong\program\DSPIC30F\AN1017_30F3010_V1\AN1017_30F3010_V1\AN1017.mcp' started.
Language tool versions: xc16-as.exe v1.70, xc16-gcc.exe v1.70, xc16-ld.exe v1.70, xc16-ranlib.exe v1.70
Fri Aug 06 23:04:16 2021
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "D:\gong\program\DSPIC30F\AN1017_30F3010_V1\AN1017_30F3010_V1\AN1017.mcs".
Clean: Done.
Executing: "C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" -mcpu=30F3010 -x c -c "SinusoidalBLDC v1.2.c" -o"SinusoidalBLDC v1.2.o" -g
SinusoidalBLDC v1.2.c: In function 'SpeedControl':
SinusoidalBLDC v1.2.c:1017:2: error: too few arguments to function '__builtin_subab'
SinusoidalBLDC v1.2.c:1020:6: error: too few arguments to function '__builtin_movsac'
SinusoidalBLDC v1.2.c:1024:31: warning: passing argument 3 of '__builtin_mac' makes integer from pointer without a cast
SinusoidalBLDC v1.2.c:1024:31: note: expected 'int' but argument is of type 'SFRAC16 **'
SinusoidalBLDC v1.2.c:1024:31: warning: passing argument 4 of '__builtin_mac' from incompatible pointer type
SinusoidalBLDC v1.2.c:1024:31: note: expected 'int **' but argument is of type 'SFRAC16 *'
SinusoidalBLDC v1.2.c:1024:31: warning: passing argument 5 of '__builtin_mac' makes pointer from integer without a cast
SinusoidalBLDC v1.2.c:1024:31: note: expected 'int *' but argument is of type 'int'
SinusoidalBLDC v1.2.c:1024:31: warning: passing argument 6 of '__builtin_mac' makes integer from pointer without a cast
SinusoidalBLDC v1.2.c:1024:31: note: expected 'int' but argument is of type 'SFRAC16 **'
SinusoidalBLDC v1.2.c:1024:31: warning: passing argument 7 of '__builtin_mac' from incompatible pointer type
SinusoidalBLDC v1.2.c:1024:31: note: expected 'int **' but argument is of type 'SFRAC16 *'
SinusoidalBLDC v1.2.c:1024:31: warning: passing argument 8 of '__builtin_mac' makes pointer from integer without a cast
SinusoidalBLDC v1.2.c:1024:31: note: expected 'int *' but argument is of type 'int'
SinusoidalBLDC v1.2.c:1024:31: error: too few arguments to function '__builtin_mac'
SinusoidalBLDC v1.2.c:1027:31: warning: passing argument 3 of '__builtin_mac' makes integer from pointer without a cast
SinusoidalBLDC v1.2.c:1027:31: note: expected 'int' but argument is of type 'SFRAC16 **'
SinusoidalBLDC v1.2.c:1027:31: warning: passing argument 4 of '__builtin_mac' from incompatible pointer type
SinusoidalBLDC v1.2.c:1027:31: note: expected 'int **' but argument is of type 'SFRAC16 *'
SinusoidalBLDC v1.2.c:1027:31: warning: passing argument 5 of '__builtin_mac' makes pointer from integer without a cast
SinusoidalBLDC v1.2.c:1027:31: note: expected 'int *' but argument is of type 'int'
SinusoidalBLDC v1.2.c:1027:31: warning: passing argument 6 of '__builtin_mac' makes integer from pointer without a cast
SinusoidalBLDC v1.2.c:1027:31: note: expected 'int' but argument is of type 'SFRAC16 **'
SinusoidalBLDC v1.2.c:1027:31: warning: passing argument 7 of '__builtin_mac' from incompatible pointer type
SinusoidalBLDC v1.2.c:1027:31: note: expected 'int **' but argument is of type 'SFRAC16 *'
SinusoidalBLDC v1.2.c:1027:31: warning: passing argument 8 of '__builtin_mac' makes pointer from integer without a cast
SinusoidalBLDC v1.2.c:1027:31: note: expected 'int *' but argument is of type 'int'
SinusoidalBLDC v1.2.c:1027:31: error: too few arguments to function '__builtin_mac'
SinusoidalBLDC v1.2.c:1030:31: warning: passing argument 3 of '__builtin_mac' makes integer from pointer without a cast
SinusoidalBLDC v1.2.c:1030:31: note: expected 'int' but argument is of type 'SFRAC16 **'
SinusoidalBLDC v1.2.c:1030:31: warning: passing argument 4 of '__builtin_mac' from incompatible pointer type
SinusoidalBLDC v1.2.c:1030:31: note: expected 'int **' but argument is of type 'SFRAC16 *'
SinusoidalBLDC v1.2.c:1030:31: warning: passing argument 5 of '__builtin_mac' makes pointer from integer without a cast
SinusoidalBLDC v1.2.c:1030:31: note: expected 'int *' but argument is of type 'int'
SinusoidalBLDC v1.2.c:1030:31: warning: passing argument 6 of '__builtin_mac' makes integer from pointer without a cast
SinusoidalBLDC v1.2.c:1030:31: note: expected 'int' but argument is of type 'SFRAC16 **'
SinusoidalBLDC v1.2.c:1030:31: warning: passing argument 7 of '__builtin_mac' from incompatible pointer type
SinusoidalBLDC v1.2.c:1030:31: note: expected 'int **' but argument is of type 'SFRAC16 *'
SinusoidalBLDC v1.2.c:1030:31: warning: passing argument 8 of '__builtin_mac' makes pointer from integer without a cast
SinusoidalBLDC v1.2.c:1030:31: note: expected 'int *' but argument is of type 'int'
SinusoidalBLDC v1.2.c:1030:31: error: too few arguments to function '__builtin_mac'
Halting build on first failure as requested.
----------------------------------------------------------------------
Release build of project `D:\gong\program\DSPIC30F\AN1017_30F3010_V1\AN1017_30F3010_V1\AN1017.mcp' failed.
Language tool versions: xc16-as.exe v1.70, xc16-gcc.exe v1.70, xc16-ld.exe v1.70, xc16-ranlib.exe v1.70
Fri Aug 06 23:04:25 2021
----------------------------------------------------------------------
BUILD FAILED
|