Working with a customer that ran into strange behavior with NHET.
With the emulator attached - code that performs input measurements on NHET works perfectly.
Without the emulator attached, the same code does not generate NHET interrupts - leading one to believe interrupts are disabled OR
for some reason the input measurement is not working.
We tracked this down to the default setting of HalCoGen - which sets PULDIS to 0xFFFFFFFF..
As described in the TMS570 TRM (SPNU489.pdf) on page 1241 Table 180, the combination of PULDIS=1, pin direction = 0, and
PULSEL=0 causes the input buffer to be disabled, this means that the NHET never 'sees' the inputs toggling and thus no measurements occur.
It appears that this input buffer disable is over-ridden by the emulator being attached; but this information is not described in the TRM.
Please confirm the dependency on the emulator attachment.
Also strongly suggest making the HalCoGen default less error prone - as this feature is a rather 'advanced' option and mainly a concern for low power states. It gets in the way of rapid code development, actually.