LoRaWAN "User defined skeleton" application stuck with `LORAMAC_HANDLER_BUSY_ERROR`
- August 12, 2022
- 4 replies
- 3523 views
Hello,
we are developing an application with LoRaWAN and FreeRTOS, based on STM32CubeWL, for a custom board.
While we got this to send data properly with the LoRaWAN "End Node skeleton", we are facing issues with the "User defined skeleton".
With "User defined skeleton", join and sending works the first time, but further calls to `LmHandlerSend(…)` error with `LORAMAC_HANDLER_BUSY_ERROR`, because in LoRaMac.c `MacCtx.MacState` is `LORAMAC_TX_RUNNING`.
While this might be similar to question 0D53W00001aJT8eSAG in this forum, we already tried increasing the stack sizes with no success.
Instead, repeated sending works properly if we set `DISABLE_LORAWAN_RX_WINDOW` in lorawan_conf.h to 1. That is with "NVIC/SUBGHZ Radio Interrupt" enabled in the IOC. But we want to use RX functionality as well.
Any help is greatly appreciated.