How to not enter interrupt process in Power-down mode after wake-up?

Post Reply
a_ziliu
Posts: 207
Joined: 20 Mar 2017, 10:52

27 Mar 2017, 13:42

Before entering Power-down mode, the user can disable IRQ handling by calling the function
__disable_irq ();
which allows the system to continuously execute the next command when entering Power-down mode after wake-up without entering the interrupt process.
In addition, the user also needs to consider the following points:
Use the function
__ISB ();
after the function __WFI to clear commands fetched, so that the subsequent commands can be correctly fetched and executed;
Write "1" to NVIC_ICPR to clear the corresponding pending IRQ handlers;
Clear the interrupt flag.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests