我是使用原廠之原始碼進行測試,為何程式一開始就無法成功編譯呢,而且出現以下訊息,請各位幫我解答,謝謝。
程式錯誤處:
SFRAC16 ControlDifference[3] __attribute__((__space__(xmemory), __aligned__(4))); // Errors in x memory for MAC instruction
SFRAC16 PIDCoefficients[3] __attribute__((__space__(ymemory), __aligned__(4))); // PID modified coefficients in y memory for MAC instruction
編譯後出現之訊息:
Executing: "C:\pic30_tools\bin\pic30-gcc.exe" -mcpu=30F3010 -c -x c "ClosedLoop.c" -o"ClosedLoop.o" -I"C:\pic30_tools\support\h" -g
ClosedLoop.c:156: error: invalid argument for '__space__'
ClosedLoop.c:157: error: invalid argument for '__space__'
Halting build on first failure as requested.
BUILD FAILED: Thu Jul 20 09:20:36 2006