Custom eTPU function set fails compiling in project

Discussion to talk about software related topics only.
Post Reply
zealott
Posts: 40
Joined: Thu Oct 30, 2008 1:15 am

Custom eTPU function set fails compiling in project

Post 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
barttech
Posts: 135
Joined: Fri Feb 20, 2009 12:59 pm

Re: Custom eTPU function set fails compiling in project

Post 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
Post Reply