Problem about an5327sw(MC9S12ZVML128_PMSM_Sensorless_SingleShunt) compile

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Problem about an5327sw(MC9S12ZVML128_PMSM_Sensorless_SingleShunt) compile

跳至解决方案
1,485 次查看
sohyunjang
Contributor III

I try to copile an5327sw(MC9S12ZVML128_PMSM_Sensorless_SingleShunt), but there are problem below.

I use CodeWarrior v.10.6

Description Resource Path Location Type
 C:\Freescale\AN5327\SW\MC9S12ZVML128_PMSM_Sensorless_SingleShunt\src\actuate_s 12zvm.h:27 function has no prototype (included from:  C:\Freescale\AN5327\SW\MC9S12ZVML128_PMSM_Sensorless_SingleShunt\src\actuate_s 12zvm.c:28)        C:\Freescale\AMMCLIB\MC9S12ZVM_AMMCLIB_v1.1.5\include\MLIB_Div.h:73        C:\Freescale\AMMCLIB\MC9S12ZVM_AMMCLIB_v1.1.5\include\mlib.h:36  C:\Freescale\AN5327\SW\MC9S12ZVML128_PMSM_Sensorless_SingleShunt\MC9S12ZVML128 _PMSM.c:5) MC9S12ZVML128_PMSM_Sensorless_SingleShunt    C/C++ Problem

Description Resource Path Location Type
function has no prototype (included from:        C:\Freescale\AMMCLIB\MC9S12ZVM_AMMCLIB_v1.1.5\include\MLIB_Div.h:73        C:\Freescale\AMMCLIB\MC9S12ZVM_AMMCLIB_v1.1.5\include\mlib.h:36        C:\Freescale\AMMCLIB\MC9S12ZVM_AMMCLIB_v1.1.5\include\GFLIB_Sin.h:54        C:\Freescale\AMMCLIB\MC9S12ZVM_AMMCLIB_v1.1.5\include\gflib.h:24 MC9S12ZVML128_PMSM_Sensorless_SingleShunt  line 375, external location: C:\Freescale\AMMCLIB\MC9S12ZVM_AMMCLIB_v1.1.5\include\MLIB_Norm.h C/C++ Problem

...

I already set build settings as MC9S19ZVM_AMMCLIB_v.1.1.5 manual.

I check "C:\Freescale\AMMCLIB\MC9S12ZVM_AMMCLIB_v1.1.5\include" at Includes.

and I check "C:\Freescale\AMMCLIB\MC9S12ZVM_AMMCLIB_v1.1.5\lib\cw10x\MC9S12ZVM_AMMCLIB.UC.a" at Libaries

I dont change the an5327sw, only install an5327sw.

So, I dont know why this problem happen.

标签 (1)
0 项奖励
回复
1 解答
1,053 次查看
RadekS
NXP Employee
NXP Employee

Hi Sohyun,

It looks like some problem with AMMCLib paths.

The default MC9S12ZVML128_PMSM_Sensorless_SingleShunt project points to AMMCLIB_v1.1.0.

I suppose that you installed an5327sw and also AMMCLIB_v1.1.5 (current version is 1.1.7). Right?

Please check c:\Freescale\AMMCLIB\..

 

The AMMCLIB path is located at three places in project settings.

Please go to menu-Project-Properties-C/C++ Build-settings-

  • S12Z Linker-Input-Libraries- "C:\Freescale\AMMCLIB\MC9S12ZVM_AMMCLIB_v1.1.5\lib\cw10x\MC9S12ZVM_AMMCLIB.UC.a"
  • S12Z Compiler-Access Paths-Search User Paths-"C:\Freescale\AMMCLIB\MC9S12ZVM_AMMCLIB_v1.1.0\include"
  • S12Z Assembler-Input-Include file Search Path-"C:\Freescale\AMMCLIB\MC9S12ZVM_AMMCLIB_v1.1.0\include"

I hope it helps you.

Have a great day,
Radek

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,054 次查看
RadekS
NXP Employee
NXP Employee

Hi Sohyun,

It looks like some problem with AMMCLib paths.

The default MC9S12ZVML128_PMSM_Sensorless_SingleShunt project points to AMMCLIB_v1.1.0.

I suppose that you installed an5327sw and also AMMCLIB_v1.1.5 (current version is 1.1.7). Right?

Please check c:\Freescale\AMMCLIB\..

 

The AMMCLIB path is located at three places in project settings.

Please go to menu-Project-Properties-C/C++ Build-settings-

  • S12Z Linker-Input-Libraries- "C:\Freescale\AMMCLIB\MC9S12ZVM_AMMCLIB_v1.1.5\lib\cw10x\MC9S12ZVM_AMMCLIB.UC.a"
  • S12Z Compiler-Access Paths-Search User Paths-"C:\Freescale\AMMCLIB\MC9S12ZVM_AMMCLIB_v1.1.0\include"
  • S12Z Assembler-Input-Include file Search Path-"C:\Freescale\AMMCLIB\MC9S12ZVM_AMMCLIB_v1.1.0\include"

I hope it helps you.

Have a great day,
Radek

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复