cancel
Showing results for 
Search instead for 
Did you mean: 

Request for Guidance on LoRa-E5 (STM32WLE5JC) LoRa TX/RX Setup in STM32CubeIDE 2.1.0

lal_krishna
Associate

I am currently working with the LoRa-E5 Mini module based on the STM32WLE5JC microcontroller, and I am using STM32CubeIDE version 2.1.0 for development.

I have successfully tested basic GPIO functionality (LED blinking), and I am now trying to implement LoRa-based communication (transmission and reception) using the integrated SubGHz radio. However, I am facing challenges in properly configuring and utilizing the SubGHz_Phy middleware and radio drivers within STM32CubeIDE.

Specifically, I need guidance on the following:

  1. The correct procedure to enable and configure the SubGHz radio peripheral in STM32CubeIDE for STM32WLE5JC.
  2. How to properly include and use the SubGHz_Phy middleware for basic LoRa communication.
  3. Availability of any official example projects (such as Ping-Pong or Tx/Rx) compatible with STM32CubeIDE 2.1.0 for the LoRa-E5 Mini module.
  4. Proper configuration of radio parameters (frequency, spreading factor, bandwidth) for reliable communication.
  5. Any recommended steps to ensure successful transmission and reception with LED-based visual indication.

Additionally, I encountered build errors such as:
"fatal error: stm32wlxx.h: No such file or directory"

I would appreciate guidance on resolving such dependency or configuration issues as well.

It would be very helpful if you could provide:

  • Reference example projects
  • Documentation links
  • Recommended workflow for LoRa development using STM32WLE5JC

Thank you for your time and support.

1 REPLY 1
Imen.D
ST Employee

Hello @lal_krishna 

Try to use and Adapt the SubGHz_Phy examples from the STM32Cube_FW_WL firmware package, such as 'Ping_Pong': STM32CubeWL/Projects/NUCLEO-WL55JC/Applications/SubGHz_Phy/SubGHz_Phy_PingPong at main · STMicroelectronics/STM32CubeWL · GitHub

Regarding the error: "No such file or directory", the include paths might not be set up correctly, or an include file might be missing. You'd want to review the defines and include paths.

I recommend referring to the user manual UM2643: Getting started with STM32CubeWL for STM32WL Series and

Introduction to LoRaWAN® - stm32mcu

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen