Hi,
I've reproduced this problem on my side.
The root cause is that bit CLKOE of register SIM_SOPT is set in this example application.
when this bit is set, BUSOUT will be enable and BUSOUT is another function of PTH2 and BUSOUT has higher priority (see Table 10-1 of KE02 reference manual), so, in this case, PTH2 is BUSOUT pin, NOT the GPIO pin.
to fix this problem, please just clear CLKOE before LED1_Init().
the code can be:
| #define BUSOUT_Disable() | SIM_SOPT &= 0xFFF7FFFF; |
Add the above statement in MA64_freedom.h.
then add BUSOUT_Disable(); before LED1_Init(); in PIT_demo.c
Hope it helps!