2021-01-11 03:55 PM
2021-01-12 06:55 AM
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!
2021-01-12 12:14 AM
Hi @Vertinhol ,
Could you share your .ioc file and add more details?
2021-01-12 04:04 AM
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.
2021-01-12 06:55 AM
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!
2021-01-12 10:53 AM
Thank you, problem solved, is there a better way to change the trigger mode and the inverting input without calling the "HAL_COMP_Init(&hcomp1)" function when the program is already running?