RAK3172 and Radiolib

Hi,

We try to port our software also on the RAK3172. Our software use RadioLib (RadioLib: RadioLib Documentation).
I have some problem configuring the RAK3172.

About the rfswitch_table , I set it like this :

static const uint32_t rfswitch_pins[] = {PB8, PC13, RADIOLIB_NC, RADIOLIB_NC, RADIOLIB_NC};|

static const Module::RfSwitchMode_t rfswitch_table[] = {

  • {STM32WLx::MODE_IDLE, {LOW, LOW}},*
  • {STM32WLx::MODE_RX, {HIGH, LOW}},*
  • {STM32WLx::MODE_TX_HP, {LOW, HIGH}},*
  • END_OF_MODE_TABLE,*
    };|

Is it correct ?

About the radio.setTCXO( );

How can it be configured ? I notice that there is 3 different configurations (without TCXO, +/- 2.5ppm and +/-0.5ppm ). Is there a specific setting for each ?

Many thanks for your help

Greg

Hi @meg068 ,

Settings of RF switch is correct. Also the usage of PB8 and PC13 is fine.

For TCXO variants, the pin is PB0 and we set the voltage to 3.0v.

1 Like

Hi,

Many thanks for your answer.

As I understand, I can set radio.setTCXO( 3.0 ); ?
But I do not understand how to set the PB0 according to the variants… ??

Thank you for your help.

You can ignore the TCXO variants since the difference they have is the ppm rating. The voltage and IO used is the same.