Hi,
We are trying to wake up the module via GPIO38, but it’s not waking up from suspend.
The GPIO is configured as shown below:
root@swi-mdm9x28-wp:~# cat /sys/class/gpio/gpio38/value
0
root@swi-mdm9x28-wp:~# cat /sys/class/gpio/gpio38/direction
in
root@swi-mdm9x28-wp:~# cat /sys/class/gpio/gpio38/pull
down
root@swi-mdm9x28-wp:~# cat /sys/class/gpio/gpio38/edge
rising
root@swi-mdm9x28-wp:~# cat /sys/class/gpio/gpio38/active_low
0
Afterward the module it put to sleep with:
le_pm_Relax(_wakeSrc);
If we now apply a rising edge to the GPIO38, the module somehow recognizes the event, but doesn’t wake up:
[ 1353.120378] swimcu_gpio_irq_event_handle: Re-enabled irq 1 type 9 for MCU GPIO 2
Jan 11 13:40:24 swi-mdm9x28-wp user.info kernel: [ 1353.098914] gpio_check_and_wake: wake-n_gpio26 STATE=WAKEUP
Jan 11 13:40:24 swi-mdm9x28-wp user.err kernel: [ 1353.120378] swimcu_gpio_irq_event_handle: Re-enabled irq 1 type 9 for MCU GPIO 2
Jan 11 13:40:24 swi-mdm9x28-wp user.info kernel: [ 1353.126875] gpio_check_and_wake: wake-n_gpio26 STATE=SLEEP
After waking it up by plugging in USB, the GPIO shows the correct state:
root@swi-mdm9x28-wp:~# cat /sys/class/gpio/gpio38/value
1
We also tried to debug in several ways e.g. AT!POWERMODE?
, but that always returns an error:
AT!POWERMODE?
ERROR
AT!POWERWAKE?
ERROR
This was already working on a different hardware. When we got the new hardware, we needed to adjust yocto to be able to flash like it’s written here. We aren’t sure if this somehow relevant.
How can we debug this further?
Thanks, Simon