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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
956 Views
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?

Labels (1)
0 Kudos
1 Solution
769 Views
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

View solution in original post

0 Kudos
1 Reply
770 Views
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 Kudos