Other Parts Discussed in Thread: HALCOGEN
Hi,
We are trying to get code coverage on the HAL generated by Halcogen and have some trouble getting full coverage on a few modules.
For example the INTOFFH register of ESM only has value description up to 0x60 (96 dec).
The code in esm.c checks if the reg value is <= 96.
So how can we cover the else-statement in that function? Can the INTOFFH register contain a value > 96?
Another module we have problems with is rti.c, we are trying to cover the fault-states of the DWD and DWWD watchdogs. We are trying to get into the marked if-statement below, but it's unclear from the reference manual what "Time_Window_Violation" actually means, it seems a bit ambiguous with the EndTime_Window_Violation?
Here's the register from reference manual (bit 5 is the "failure" mode we are not able to achieve).
We have tried to either kick the watchdog before the time-window, after it as well as using the wrong key. The three cases are setting bit 3, bit 1/4 and bit 2 respectively.
Hope my problem description is clear,
Best regards