Open hubpav opened 3 weeks ago
Hi @hubpav! We appreciate you submitting your first issue for our open-source project. 🌟
Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙
@aurel32 FYI
With PR #72991, the SPI driver does not work with PM device + runtime features enabled.
The bug was reproduced on the STM32WL device.
Steps to reproduce:
In
samples/subsys/lorawan/class_a
addCONFIG_PM_DEVICE=y
andCONFIG_PM_DEVICE_RUNTIME=y
toprj.conf
.Build the sample:
west build -b lora_e5_mini
Debug the sample (
west debug
), set the breakpoint to themain
functionb main
, and run the code.The
main
function is never hit as it is stuck in the SPI driver (spi_ll_stm32.c:878
- intransceive
function).When I reverted the commit
858e8c51f1f42abb0afe62a4d701e69b7a6bd2b1
from PR #72991, the sample works as expected even with the above PM device options enabled.