AMMCLIB KEA8 CodeWarrior 10.6 simple example

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

AMMCLIB KEA8 CodeWarrior 10.6 simple example

跳至解决方案
2,000 次查看
changhehuang
Contributor I

Can anyone give a simple example of automotive math and motor control library( AMMCLIB) for KEA8 micro-controller using CodeWarrior 10.6?  There is a KEA128BLDCRD example, but it is too difficult for me. After adding the AMMCLIB include path and library object file into my project, I don't know how to config the additional header files. I only need a simple 16-bit addition example.  Thanks!

0 项奖励
回复
1 解答
1,609 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Regarding your question, I have attached a screenshot, pls add the item.

Moreover, you have to add the the path of MMCLB so that the compiler can find out the *.h file.

in the Properity menu, pls add "ARM Ltd Windows GCC C Compiler"->"Directory" and  add the motor control path:"${MCU_TOOLS_HOME}\..\..\AMMCLIB\KEAx_AMMCLIB_v1.0.0\include"

Pls add the library by "ARM Ltd Windows GCC C Linker"->"Miscellaneous", add the "${MCU_TOOLS_HOME}\..\..\AMMCLIB\KEAx_AMMCLIB_v1.0.0\lib\cw10x\KEAx_AMMCLIB_v1.0.0.UC.a", this is the motor control library.

Hope it can help you

BR

XiangJun Rong

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,609 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,Changhe,

do you have Hall or Encoder sensor for the BLDC motor control? If you have, the code will be simpler. If you use sensorless solution, you have to use the code.

BR

XiangJun Rong

0 项奖励
回复
1,609 次查看
changhehuang
Contributor I

Hello Xiangjun:

Thank you for the quick reply. I tried to reply by email, but not work.

I am using KEA8 MCU for sensor application, it has only 6K usable memory, and I try to use AMMCLIB for data process. After I linked the AMMCLIB include folder and library path, if I add "#inlcude mlib.h" in the main.c program, then "build all", I got a lot of error message. I have TRK-KEA8 board. I would appreciate it very much if you can give me a simple example of TRK-KEA8 using AMMCLIB library.

Best regards,

Changhe Huang

0 项奖励
回复
1,610 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Regarding your question, I have attached a screenshot, pls add the item.

Moreover, you have to add the the path of MMCLB so that the compiler can find out the *.h file.

in the Properity menu, pls add "ARM Ltd Windows GCC C Compiler"->"Directory" and  add the motor control path:"${MCU_TOOLS_HOME}\..\..\AMMCLIB\KEAx_AMMCLIB_v1.0.0\include"

Pls add the library by "ARM Ltd Windows GCC C Linker"->"Miscellaneous", add the "${MCU_TOOLS_HOME}\..\..\AMMCLIB\KEAx_AMMCLIB_v1.0.0\lib\cw10x\KEAx_AMMCLIB_v1.0.0.UC.a", this is the motor control library.

Hope it can help you

BR

XiangJun Rong

0 项奖励
回复
1,609 次查看
changhehuang
Contributor I

Hello Xiangjun:

It works. Save me a lot of time.

Thank you!

Changhe Huang

0 项奖励
回复