Resolved! Information missing in reference manual for register clearing interrupt status on G431
There is not information, on how to clear the flag (1 or 0), on register TIMx_SR (x=1,8,20).I believe there were also other registers where it was not mentioned, how to clear them.