56Mod custom circuit board, the current in shutdown mode is 260uA. How can I check the cause of the leakage current?
int main(void)
{
/* Output a message on console using printf function */
//rt_kprintf("Hello world!\n");
rt_kprintf("Shutdown, press key1 to wake up system...\n");
/* delay 10ms to wait print complete */
rt_thread_mdelay(10);
HAL_PMU_SelectWakeupPin(0, 0); // PB54 for 58x, PB32 for 56x
HAL_PMU_EnablePinWakeup(0, 0);
//hwp_rtc->PBR0R = 0x10a0;
hwp_rtc->PAWKUP = 0x003F003F;
//hwp_rtc->PBWKUP = 0x003F003F;
hwp_pmuc->WKUP_CNT = 0x000F000F;
rt_hw_interrupt_disable();
/* Enter shutdown mode, system can be woken up by KEY1 */
HAL_PMU_EnterShutdown();
/* while loop until system is down */
while (1) {};
// /* Infinite loop */
// while (1)
// {
// // Delay for 1000 ms to yield CPU time to other threads
// rt_thread_mdelay(1000);
// }
return 0;
}





