cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WL33: send the raw HF Data to a GPIO Pin

ChrisAtWork
Associate

Hi everyone,

I'm at the start to build up my transceiver based on the STM32WL33 with the Nucleo-board NUCLEO-WL33CC1 and the Mainboard MB1801. I want to use the IOC in the Cube IDE.

If you are trying to send the raw HF Data to a GPIO Pin: 

 

Change 

 

__HAL_MRSUBG_SET_RX_MODE(RX_NORMAL);

 

to

 

__HAL_MRSUBG_SET_RX_MODE(RX_DIRECT_GPIO);

 

add

 

/*Configure GPIO pin : PB1 */
GPIO_InitStruct.Pin = GPIO_PIN_1;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_PULLUP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
GPIO_InitStruct.Alternate = GPIO_AF4_SUBG;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);

 

and measure at PB1

 

(it took me some time to get this solution, maybe it helps someone out there)

Further information

https://www.st.com/resource/en/reference_manual/rm0511-stm32wl33xx-armbased-wireless-mcus-with-subghz-radio-solution-stmicroelectronics.pdfhttps://www.st.com/resource/en/user_manual/um3438-description-of-stm32wl3-hal-and-lowlayer-drivers-stmicroelectronics.pdf

find PCKT_CTRL register (Page 878,879) and read RX_MODE

 

happy developing


Edited to apply proper code formatting; please see How to insert source code for future reference.

 

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

Hello @ChrisAtWork 

We really appreciate your contribution. I wild just add that more helpful details are available on the chapter 29 of the RM0511. I will close this post just to give it more visibility in case others want to do the same.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
STTwo-32
ST Employee

Hello @ChrisAtWork 

We really appreciate your contribution. I wild just add that more helpful details are available on the chapter 29 of the RM0511. I will close this post just to give it more visibility in case others want to do the same.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.