Set band is incorrect - 3172

Hi
I am testing the LoRaWAN_OTAA example, in our Region AU915, after execute it, i always getting the message:

LoRaWan OTAA - set band is incorrect!

Thanks

PS:
#define OTAA_BAND RAK_REGION_AU915

Need to ground the PB12…
But i already soldered 100 units of RAK3172
Is there some way to force the PB12 to ground by software ?
Or only changing the bootloader ? is there the source code ?

found
uint8_t BoardGetHardwareFreq(void)
{
uint8_t hardwareFreq = 0;
GPIO_InitTypeDef GPIO_InitStruct = {0};

/* GPIO Ports Clock Enable */
__HAL_RCC_GPIOB_CLK_ENABLE();
/*Configure GPIO pin : PB12 */
GPIO_InitStruct.Pin = GPIO_PIN_12;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
hardwareFreq  = HAL_GPIO_ReadPin(GPIOB, GPIO_PIN_12);

hardwareFreq = 1;

HAL_GPIO_DeInit(GPIOB,GPIO_PIN_12);
return hardwareFreq;

}

PB12 pull to GND to be able to use AU915 ==> That is not true, I have the internal schematics.

PB12 is used to determine the lower or upper frequency versions of the RAK3172 during boot up.

image

You can use PB12 as an GPIO if the 10k pull-up or pull-down is not disturbing your function. But you should never tie it directly to GND or VDD.

If you pull PB12 to GND external it would assume it is a 4xxMHz version and reject all bands other than CN470 and EU433.

Thanks to the help!
Yes, correct vcc.
About join tx timeout, is it a hardware problem ?

and, you know the RAK3172 processor difference, comparing to STM32WL55 ?

The 55 is dual core, the E5 is single core:

STM32WL55CC

Sub-GHz Wireless Microcontrollers. Dual-core Arm Cortex-M4/M0+ @48 MHz with 256 Kbytes of Flash memory, 64 Kbytes of SRAM. LoRa, (G)FSK, (G)MSK, BPSK modulations. AES 256-bit. Multiprotocol System-on-Chip.

STM32WLE5CC

Sub-GHz Wireless Microcontrollers. Arm Cortex-M4 @48 MHz with 256 Kbytes of Flash memory, 64 Kbytes of SRAM. LoRa, (G)FSK, (G)MSK, BPSK modulations. AES 256-bit. Multiprotocol System-on-Chip.