Hello,
Does anyone have manage to use any STM32WL board with the arduino framework and achieve LoRaWAN functionality?
Looks like someone managed to do it. I’m trying to get it running myself.
Hi,
Did anyone test that library on a rak3172 (based on STM32WL5)?
It compiles and runs without any problem, but otaa/abp join fails.
Haven’t investigated why yet.
Just curious…
Edit: of cause the second I posted, I found this…
opened 08:33PM - 21 Dec 22 UTC
closed 08:01AM - 27 Mar 23 UTC
enhancement
Hi,
I managed to run your library with rak3172
For this I modified these part… s:
In STM32LoRaWAN-main\src\BSP\radio_board_if.c
```C
// Is a TCXO present on the board?
#if !defined(LORAWAN_BOARD_HAS_TCXO)
#define LORAWAN_BOARD_HAS_TCXO 0U
#endif
#if !defined(LORAWAN_RFSWITCH_PINS)
#define LORAWAN_RFSWITCH_PINS PB8,PC13
#define LORAWAN_RFSWITCH_PIN_COUNT 2
#define LORAWAN_RFSWITCH_OFF_VALUES LOW,LOW
#define LORAWAN_RFSWITCH_RX_VALUES HIGH,LOW
#define LORAWAN_RFSWITCH_RFO_LP_VALUES LOW,HIGH
#define LORAWAN_RFSWITCH_RFO_HP_VALUES LOW,HIGH
```
In STM32LoRaWAN-main\src\BSP\rtc.c
```C
hrtc.Instance = RTC;
hrtc.Init.AsynchPrediv = 127;
hrtc.Init.SynchPrediv = 255;
hrtc.Init.OutPut = RTC_OUTPUT_DISABLE;
hrtc.Init.OutPutRemap = RTC_OUTPUT_REMAP_NONE;
hrtc.Init.OutPutPolarity = RTC_OUTPUT_POLARITY_HIGH;
hrtc.Init.OutPutType = RTC_OUTPUT_TYPE_OPENDRAIN;
hrtc.Init.OutPutPullUp = RTC_OUTPUT_PULLUP_NONE;
hrtc.Init.BinMode = RTC_BINARY_ONLY;
```
How could I add this to your library without having to modify it, which is what I had to do?
Also I tested your library as you had it in the beginning for the NUCLEO-WLE55JC1 board and everything worked correctly, I also tested it with the US915 and it still worked fine.