I used HalCoGen V3.06.00 to generated code.
I used HET to count pulse and it work good.
After I update HalCoGen Version V3.8.0~V3.9.0 , the couter always read "0" .
Follow functions are used:
hetInit(); --> to init HET
edgeResetCounter(hetRAM1, edge0); --> to reset counter
edgeResetCounter(hetRAM1, edge1); --> to reset counter
edgeGetCounter(hetRAM1, edge0); ---> to get counter
edgeGetCounter(hetRAM1, edge1);------> to get counter
I used V3.6 to generate code, and replace the files of V3.8.1 one by one.
after replace "sys_selftest.h", "sys_core.h", "sys_pmu.h" and "sysys_selftest.c"
The edgeGetCounter(); always read "0".
My MCU is TMS570LS0432PZ.