when I call sd_power_gpregret_set in gpiote handler function ,I got HardFault, why?
when I call sd_power_gpregret_set in gpiote handler function ,I got HardFault, why?
so that's your problem then. As is discussed here most weeks a few times, you can't call sd_* functions from anything other than main context or the lower of the user interrupt contexts.
so that's your problem then. As is discussed here most weeks a few times, you can't call sd_* functions from anything other than main context or the lower of the user interrupt contexts.