AnsweredAssumed Answered

PIT Build Error on DEVKIT-5744P('TIMER_LED_IN_A' undeclared (first use in this function))

Question asked by Martin Zhang on Jul 11, 2018
Latest reply on Jul 24, 2018 by Constantin Razvan Chivu

Does any one can help me?

I want to make a demo on DEVKIT-5744P, which a led's state can  toggle at 1s(1s light on, and then 1s light off) . But it can not  build successfully. It seems that my state A is not known by PIT ISR.

 

0.Error message

pit_ch1_isr.c: In function 'PIT_Ch1_ISR':
pit_ch1_isr.c:24:38: error: 'TIMER_LED_IN_A' undeclared (first use in this function)
TIMER_LED_DW.is_c1_TIMER_LED = TIMER_LED_IN_A;
^
pit_ch1_isr.c:24:38: note: each undeclared identifier is reported only once for each function it appears in
pit_ch1_isr.c:29:40: error: 'TIMER_LED_IN_A1' undeclared (first use in this function)
TIMER_LED_DW.is_c1_TIMER_LED = TIMER_LED_IN_A1;
^
gmake: *** [pit_ch1_isr.o] Error 1
### Creating HTML report file TIMER_LED_codegen_rpt.html

 

 

1.Environment

EVB: DEVKIT-5744P

Reference demo : mbdtbx_MPC574xP\mbdtbx_pnt\Examples\eTimer_QD_pnt.mdl.

 

2.Settings

Figure1 System diagram

 

Figure2 PIT's Function Call Subsystem1

 

Figure3 State flow A and A1

Attachments

Outcomes