Hello,
Well,not sure what is your issue but I see 2 scenarios:
1. you are not writing 1 to clear the flag. w1c = write 1 to clear
petervlna_0-1684989703284.png
2. your clock is not correct and as soon as you clear CMU flag, it is set back immediately.
Best regards,
Peter