Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/STMicroelectronics/STM32F042x/TIM16/SR#0x0
status register
Update interrupt flag
Capture/compare 1 interrupt flag
COM interrupt flag
Trigger interrupt flag
Break interrupt flag
Capture/Compare 1 overcapture flag
https://github.com/cmsis-svd/cmsis-svd-data