Skip to main content
Vertinhol
Associate III
January 11, 2021
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

  • January 11, 2021
  • 4 replies
  • 1241 views

..

This topic has been closed for replies.
Best answer by Houssem CHAABANI

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
January 12, 2021

Hi @Vertinhol​ ,

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

Vertinhol
VertinholAuthor
Associate III
January 12, 2021

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
January 12, 2021

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!