libretiny icon indicating copy to clipboard operation
libretiny copied to clipboard

Deep sleep boot reason information is wrong if GPIO rising edge is used

Open daniel-dona opened this issue 1 year ago • 0 comments
trafficstars

If only one GPIO is configured as wake source for deep sleep and a rising edge is used, the boot reason is just "power on".

For example, using GPIO15 on CBU module:

lt_deep_sleep_config_gpio((1 << 15), true);

Also found that configuring any other pin as a falling edge fix this, so this is a possible workaround for the moment, ex:

lt_deep_sleep_config_gpio((1 << 15), true);
lt_deep_sleep_config_gpio((1 << 17), false);

daniel-dona avatar Jan 02 '24 17:01 daniel-dona