issues with system_power_off
-
pmu_set_pin_pull(GPIO_PORT_D,1<<GPIO_BIT_5,false);
pmu_set_pin_to_PMU(GPIO_PORT_D,GPIO_PD5);
pmu_port_wakeup_func_set(GPIO_PD5);
ql_sys_delay_100us(50);system_power_off(true);
I'm trying to use shutdown feature for reducing power consumption like shown above.
There are two issues I'm facing:
1). When I called system_power_off like shown above, chip is spuriously powering up once and then entering power down. Because of this average current consumption is shooting up. Can you suggest why this unnecessary powering up is happening, and how to avoid it. I even tried to add some delay after PMU configuration and power off, but didn't work.
2). When system wakes up, it is in very high power consumption mode for nearly 3 seconds drawing nearly 5mA for 6dBm configuration. Because of this all the savings I get from shutdown mode is completely erased. Is there a way I can reduce this period where chip is in this very high power consumption mode?Please suggest,
Vamsi