Solved
Hello, for some reason I cannot enable the comparator interrupt, I believe this happened after an update. I'm using STM32L476-RG https://imgur.com/a/T7FXngv
..
..
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.