Skip to main content
Vertinhol
Associate III
Jan 11, 2021 11:55 PM UTC
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

..

This topic has been closed for replies.
Houssem CHAABANI
Houssem CHAABANIBest answer
Visitor II
Jan 12, 2021 2:55 PM UTC

Hello @Vertinhol​ ,

By just putting the cursor on the small square where you can enable the interrupt,STM32CubeMX will show this message:

"COMP_IRQn forced to disabled as no comparator Trigger Mode parameter is set to Interrupt."

So you will need set one of the comparator Trigger Mode to an Interrupt Mode.

Hope that this solve your issue!

4 replies

Houssem CHAABANI
Visitor II
Jan 12, 2021 8:14 AM UTC

Hi @Vertinhol​ ,

Could you share your .ioc file and add more details?

Vertinhol
VertinholAuthor
Associate III
Jan 12, 2021 12:04 PM UTC

I didn't do anything yet, just started a new project and selected INP & INM of COMP1, and when I tried to enable the interrupter, the checkbox was grayed as shown in the image. I did the same thing with COMP2 and I still encounter the same issue.

Houssem CHAABANI
Houssem CHAABANIBest answer
Visitor II
Jan 12, 2021 2:55 PM UTC

Hello @Vertinhol​ ,

By just putting the cursor on the small square where you can enable the interrupt,STM32CubeMX will show this message:

"COMP_IRQn forced to disabled as no comparator Trigger Mode parameter is set to Interrupt."

So you will need set one of the comparator Trigger Mode to an Interrupt Mode.

Hope that this solve your issue!