Why doesn't eTPU Graphical Configuration Tool generated code compile?

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

Why doesn't eTPU Graphical Configuration Tool generated code compile?

跳至解决方案
1,266 次查看
kentabacchi
Contributor I

I am using eTPU GCT version 1.4.0.4.  I have read the application note about this http://cache.freescale.com/files/soft_dev_tools/doc/app_note/AN4687.pdf .  I downloaded the deliverable from eTPU Funcion Selector|NXP , such as FPM.

 

I have taken the generated C module and included it in a CodeWarrior IDE version 5.9.0, Build 3510 project.  The macros defined in this file are not found any where in the eTPU Function set deliverable, or any of the generated code from the eTPU GCT.  FS_ETPU_VIS_OFF, for example, and many others.  Also, the structure pointer eTPU is missing.

 

I must be missing some header files.  What am I missing?

标签 (1)
0 项奖励
回复
1 解答
1,079 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Mentioned macros are defined in ...\etpu\_utils\etpu_util.h

It is needed to include all files downloaded with using of eTPU function selector to your project as well as both files generated by GCT (for instance untitled_etpu_gct.c and untitled_etpu_gct.h).

Also it is needed to call following following function from your user code
my_system_etpu_init();
my_system_etpu_start();

and then you can use eTPU functions according its descriptive appnote

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,080 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Mentioned macros are defined in ...\etpu\_utils\etpu_util.h

It is needed to include all files downloaded with using of eTPU function selector to your project as well as both files generated by GCT (for instance untitled_etpu_gct.c and untitled_etpu_gct.h).

Also it is needed to call following following function from your user code
my_system_etpu_init();
my_system_etpu_start();

and then you can use eTPU functions according its descriptive appnote

0 项奖励
回复