2015-05-27 04:41 PM
Hi, I want the debug ability during stop mode. According to the reference menu, DBG_STOP in register DBG_CR bit should be set to do this. But after I set it, it is still 0. I have tried several ways:
2015-05-28 02:24 PM
Don't forget you probably need to enable the DBGMCU peripheral clock !
2015-05-28 09:53 PM
Yes, I think you are right. After setting bit ''DBGEN'' in RCC_APB2ENR, DBGMCU could be modified. Maybe ''DBGSMEN'' in RCC_APB2SMENR should also be set, which is the enable bit for DBG clock in sleep mode. However, I didn't find much description about these two bits in the reference manual.
Thanks