STM32WLE SubGHz without Middleware: Using LL or HAL Functions like SUBGHZSPI_Transmit
Hi everyone,
I am working with the STM32WLE and would like to use the internal SubGHz module directly without relying on any middleware, such as LoRaWAN. My goal is to control the SubGHz module in a simple way, similar to an external RF module like the SX1276 or RFM69.
Goals:
- Initialize the SubGHz module manually.
- Transmit and receive data using low-level functions such as SUBGHZSPI_Transmit or HAL_SUBGHZ_ExecSetCmd.
- Use the SubGHz module with LL (Low Layer) or HAL functions only, without middleware or additional libraries.
Questions:
- How can I correctly initialize the SubGHz module to use it for basic RF communication, such as FSK?
- Is there a way to create a lightweight API that uses only HAL or LL for SubGHz communication?
- Are there examples or documentation available for configuring and using the SubGHz module as a simple RF transceiver, including setting frequency, configuring registers, and handling RX/TX?
What I’m Looking For: I want to operate the SubGHz module as if it were a standalone RF chip, like the SX126x or RFM69, with basic control over SPI or equivalent HAL/LL functions.
If anyone has experience with this or knows how to implement such functionality, I would appreciate your guidance.
Thanks in advance for your help! EDIT: I don’t care about the RF switches for now; I’ll handle them later once the basics are working. I’m using a custom board and want to avoid using the BSP. Ideally, I’d like everything in main.c with short, straightforward code, without unnecessary abstraction or additional layers—if that’s possible.
Best regards,
