Question
STM32H7 don't enter sleep mode,but CDC_Transmit_FS fails!!
I am trying to put STM32H743 into sleep mode using the following code
printf("Entering Sleep Mode\n");
HAL_PWR_EnterSLEEPMode(PWR_MAINREGULATOR_ON , PWR_SLEEPENTRY_WFI);
printf("Exiting Sleep Mode\n");I notice that my microcontroller dont go into sleep mode but it continue execution to the last printf instruction
the printf is mapped to use USB CDC,so it propagates to CDC_Transmit_FS() function which returns busy status after executing the HAL_PWR_EnterSLEEPMode() function
How could I overcome this problem?
Best Regards
Hossam Alzomor
