Page 1 of 1

MCPWM comparator doesn't seem to update

Posted: Mon Aug 18, 2025 11:11 am
by Adns9800
Hello, I am wondering if any one has had this issue where the MCPWM comparator register does not update when you call the set_compare_value() function with specific functions. I can't post any test code because the error seems to be completely arbitrary. I have this issue within one function that sets the compare value, but at runtime the comparator registers don't seem to be updated whereas other registers do. Oddly though, when I call idf.py monitor or idf.py flash before running, it fixes the error temporarily until I power it off again. Has anyone had this issue / ideas as to what this is?