2023-12-21 06:44 AM - edited 2023-12-21 07:10 AM
Hello!
I'm trying to port of LOcalNetwrok_Concentartor on a custom board. I made USART1 working with a tracer. So i Can send and receive AT_Commands to a MCU STM32WL55CC. Now I'm struggling with getting interrupts from a LoRa modem. Every 15 sec I call a RadioSend() function that tries to send packets regarding setup. In my case it is
case MODEM_LORA:
{
SubgRf.PacketParams.Params.LoRa.PayloadLength = size;
SUBGRF_SetPacketParams( &SubgRf.PacketParams );
SUBGRF_SendPayload( buffer, size, 0 );
break;
}
But I never received an interruption of TXDone/RxDone, I'm jumping to RadioOnTxTimeoutIrq that is triggered by the timer from RadioInit() function. SUBGHZ_Radio_IRQHandler(void) never called. My initialization is in the example from CSTM32CubeWL-main v1.1.0. Should be some additional steps done for the Modem if we are porting code from STM32WL55JC to STM32WL55CC?
RadioInit() function executed, SUBGRF_Init() function executed,HAL_SUBGHZ_Init() executed,HAL_SUBGHZ_MspInit() executed with
__HAL_RCC_SUBGHZSPI_CLK_ENABLE();
/* SUBGHZ interrupt Init */
HAL_NVIC_SetPriority(SUBGHZ_Radio_IRQn, 0, 0);
HAL_NVIC_EnableIRQ(SUBGHZ_Radio_IRQn);
SUBGRF_SetDioIrqParams( IRQ_RADIO_ALL, IRQ_RADIO_ALL, IRQ_RADIO_NONE, IRQ_RADIO_NONE ) is also executed
I didn't find any related code for the Pin IRQ setup in the code. Is it done automatically with HAL_SUBGHZ_MspInit() ?
2024-01-24 06:08 AM
2024-01-24 06:44 AM
Use this button to properly post source code:
To get that extra row of icons, press this button: