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!
Solved! Go to Solution.
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
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
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
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
Hello Xiangjun:
It works. Save me a lot of time.
Thank you!
Changhe Huang