Custom eTPU function set fails compiling in project
Posted: Wed Sep 15, 2010 1:56 am
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
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