STMicroelectronics / STM32CubeWL

STM32Cube MCU Full FW Package for the STM32WL series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on boards provided by ST (Nucleo boards)
Other
107 stars 54 forks source link

LoRaMacChannelAdd is now working #55

Closed krispstack closed 1 year ago

krispstack commented 1 year ago

Describe the set-up STM32WLE5 STM32 CUBE IDE

Describe the bug (skip if none) LoRaMacChannelAdd is now working, Uplink is not picking up newly added channels in lora_app.c

define LC4 { 865232500, 0, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 }

define LC5 { 866185000, 0, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 }

define LC6 { 866385000, 0, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 }

define LC7 { 866685000, 0, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 }

define LC8 { 866785000, 0, { ( ( DR_5 << 4 ) | DR_0 ) }, 0 }

LmHandlerInit(&LmHandlerCallbacks, APP_VERSION);

LmHandlerConfigure(&LmHandlerParams);

/ USER CODE BEGIN LoRaWAN_Init_2 / LoRaMacChannelAdd(3, (ChannelParams_t )LC4); LoRaMacChannelAdd(4, (ChannelParams_t )LC5); LoRaMacChannelAdd(5, (ChannelParams_t )LC6); LoRaMacChannelAdd(6, (ChannelParams_t )LC7); LoRaMacChannelAdd(7, (ChannelParams_t )LC8);

UTIL_TIMER_Start(&JoinLedTimer);

/ USER CODE END LoRaWAN_Init_2 /

LmHandlerJoin(ActivationType, ForceRejoin);

How to reproduce the bug (skip if none)

Add above code to lora_app.c