Skip to main content
Yevhen
Associate II
June 9, 2023
Question

STM32WLE5 doesn't work SubGhz module on custom board

  • June 9, 2023
  • 2 replies
  • 2486 views

Hello,

I create a custom board from the reference MB1791.
_legacyfs_online_stmicro_images_0693W00000dDQL2QAO.png 

But when I try to run an example for the Lora SubGhz module - it doesn't work, no interrupt, no transmit to the antenna (watch in SDR).

I ran this example code with RAK3172 (also a custom board) and this code works.

Voltage V 1.5 = 1.5V on the board

I try to run without TXCO, but RAK3172 also doesn't have TXCO

..\Core\lib\BSP\stm32wlxx_nucleo_radio.h

..\Core\lib\BSP\stm32wlxx_nucleo_radio.c

 #define RF_SW_CTRL2_PIN GPIO_PIN_13
 #define RF_SW_CTRL2_GPIO_PORT GPIOC
 #define RF_SW_CTRL2_GPIO_CLK_ENABLE() __HAL_RCC_GPIOC_CLK_ENABLE()
 #define RF_SW_CTRL2_GPIO_CLK_DISABLE() __HAL_RCC_GPIOC_CLK_DISABLE()
int32_t BSP_RADIO_IsTCXO(void)
{
 return RADIO_CONF_TCXO_NOT_SUPPORTED;
}
 
int32_t BSP_RADIO_ConfigRFSwitch(BSP_RADIO_Switch_TypeDef Config)
{
 switch (Config)
 {
 case RADIO_SWITCH_OFF:
 {
 /* Turn off switch */
			HAL_GPIO_WritePin(RF_SW_CTRL2_GPIO_PORT, RF_SW_CTRL2_PIN, GPIO_PIN_RESET);
 break; 
 }
 case RADIO_SWITCH_RX:
 {
 /*Turns On in Rx Mode the RF Switch */
 HAL_GPIO_WritePin(RF_SW_CTRL2_GPIO_PORT, RF_SW_CTRL2_PIN, GPIO_PIN_RESET);
 break;
 }
 case RADIO_SWITCH_RFO_HP:
 {
 /*Turns On in Tx High Power the RF Switch */
			HAL_GPIO_WritePin(RF_SW_CTRL2_GPIO_PORT, RF_SW_CTRL2_PIN, GPIO_PIN_SET);
 break;
 }
 default:
 break; 
 } 
 
 return BSP_ERROR_NONE;
}

I have checked the pin for the RF multiplexor, and it works

Please help me, what can I check on my board and in code?

This topic has been closed for replies.

2 replies

Yevhen
YevhenAuthor
Associate II
June 10, 2023

The problem was with TXCO 32 mhz

Visitor II
January 25, 2024

Hi Yevhen, may i ask how did you got the BSP configs for the STM32WLE5CCU6?