Page 1 of 1

Custom eTPU function set fails compiling in project

Posted: Wed Sep 15, 2010 1:56 am
by zealott
Hi,

I am following the appnote for the eTPU (5234) for creating a custom function set. All system files compiles but the project does not:
C:\nburn\lib\MOD5234.a(ioboard.o): In function `OnModDev70':
C:\nburn\MOD5234\system/ioboard.cpp:127: undefined reference to `eTPUInit'
C:\nburn\lib\MOD5234.a(pins.o): In function `PinIO::read()':
C:\nburn\MOD5234\system/pins.cpp:704: undefined reference to `eTPUInputGPIO'
(.....)

I figured out this one, by replacing this:
"struct etpu_config_t my_etpu_config ="
with
"struct etpu_config_t MOD5234_etpu_config ="

So my question is this:
Are there any other things I need to change for this to work other than just compile?
I see that this is created by the freescale tool:

uint32_t etpu_a_tcr1_freq = 0;
uint32_t etpu_a_tcr2_freq = 9216000;
uint32_t etpu_b_tcr1_freq = 0;
uint32_t etpu_b_tcr2_freq = 9216000;

while this is the default NB

uint32_t etpu_a_tcr1_freq = 36864000;
uint32_t etpu_a_tcr2_freq = 9216000;
uint32_t etpu_b_tcr1_freq = 0;
uint32_t etpu_b_tcr2_freq = 0;

Thanks,
John

Re: Custom eTPU function set fails compiling in project

Posted: Fri Sep 24, 2010 3:43 am
by barttech
I've been working on the eTPU as well, I can get it to compile but it hangs when I run it.
The trcx_freq choices NB made make sense since there is no Engine B on MCF5234, just the 16 channels for Engine A.
Sam