integrate both LoRaWAN and Proprietary LoRa in one STM32WL55JC1 project ?
Hello,
I am working on a project using the STM32WL55JC1 board. In my base application, UART1 and some I2C peripherals are already configured in the default project structure generated by STM32CubeIDE.
Now I need to add support for both LoRaWAN and proprietary LoRa in the same project.
For LoRaWAN, I am using the example provided in the STM32WL firmware package:
STM32Cube MCU Package for STM32WL series v1.0.0
For proprietary LoRa, I followed the Digi-Key forum guide:
Using the low-level Sub-GHz radio driver for STM32WL series.
My requirement is:
-
The device should normally operate in LoRaWAN mode.
-
When specific data is received through UART, the MCU should switch to proprietary LoRa mode.
-
After handling the proprietary communication, it should return to LoRaWAN mode.
I understand that both LoRaWAN and proprietary LoRa cannot run simultaneously because they share the same radio. However, I am confused about:
-
How to properly merge the project structures.
-
Where to place the LoRaWAN and proprietary LoRa source files.
-
How to manage initialization and switching between the two modes.
Could someone provide a step-by-step procedure or a recommended project structure for implementing this on the STM32WL55JC1?
Any guidance or example projects would be very helpful. Thank you.
