-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RAK3172 "WLE5CCU6" #7
Comments
Hi, I guess the simpliest way would be in the src\BSP\radio_board_if.c to define config between board definition:
For RTC, default config is not correct? |
Oh, thanks, I will try to do that No, the rtc of the RAK3172 has two distinct things which are: |
Hi #if !defined(LORAWAN_BOARD_HAS_TCXO)
#if defined(ARDUINO_NUCLEO_WL55JC1)
#define LORAWAN_BOARD_HAS_TCXO 1U
#elif defined(ARDUINO_GENERIC_WLE5CCUX)
#define LORAWAN_BOARD_HAS_TCXO 0U
#endif
#endif
#if !defined(LORAWAN_RFSWITCH_PINS)
#if defined(ARDUINO_NUCLEO_WL55JC1)
#define LORAWAN_RFSWITCH_PINS PC3,PC4,PC5
#define LORAWAN_RFSWITCH_PIN_COUNT 3
#define LORAWAN_RFSWITCH_OFF_VALUES LOW,LOW,LOW
#define LORAWAN_RFSWITCH_RX_VALUES HIGH,HIGH,LOW
#define LORAWAN_RFSWITCH_RFO_LP_VALUES HIGH,HIGH,HIGH
#define LORAWAN_RFSWITCH_RFO_HP_VALUES HIGH,LOW,HIGH
#elif defined(ARDUINO_GENERIC_WLE5CCUX)
#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
#endif
#endif In #if defined(ARDUINO_NUCLEO_WL55JC1)
hrtc.Instance = RTC;
hrtc.Init.AsynchPrediv = RTC_PREDIV_A;
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;
#elif defined(ARDUINO_GENERIC_WLE5CCUX)
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;
#endif |
… have GENERIC_WLE5CCUX as a board. Fix stm32duino#7
I did now a blog using your STM32 LoRaWAN |
Hi @Lizethgm |
And implement low power mode |
Part of another issue #9 |
@Lizethgm , @tcpipchip |
Note that RAK provides Arduino support: |
I dont have the RAK, i have the WISOL module... |
Actually the RAK3172 Arduino support provided by RAK is only for RUI3 (RAK UI), which mean using a closed source library blob from RAK, it is not "low level" like what stm32duino is doing. As per my understanding:
So what is your advice on the integration @fpistm ? Add custom code under Thanks |
I guess adding |
Added to the new variant request list: stm32duino/Arduino_Core_STM32#722 |
Hi,
I managed to run your library with rak3172
For this I modified these parts:
In STM32LoRaWAN-main\src\BSP\radio_board_if.c
In STM32LoRaWAN-main\src\BSP\rtc.c
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.
The text was updated successfully, but these errors were encountered: