Question
When I enabled DWT (STM32F407), for getting microsecond delays, everything works fine but suddenly all activity comes to a stop for about 2 minutes and then everything starts working as usual. Interrupts seem to be occurring but everything else freez
This happens at randomly. Spent more than a month trying to figure out the issue and never suspected DWT. When I commented out DWT everything works fine now. Can someone educate me on why this is happening and how to avoid it? Thank you for your time.