Lora-net / SWSD003

LR11xx chip (LR1110 / LR1120 / LR1121) and SX126x chip (SX1261 / SX1262 / SX1268) SDK
Other
23 stars 9 forks source link

Freeze #350

Open gc9n opened 2 months ago

gc9n commented 2 months ago

with LR1121 i have a loop that i change the modem mode SFK to LORA and back to SFK etc etc
every time i swap i execute those commands

context = apps_common_lr11xx_get_context( ); HAL_DBG_TRACE_WARNING( "1\n" ); apps_common_lr11xx_system_init( ( void ) context ); HAL_DBG_TRACE_WARNING( "2\n" ); apps_common_lr11xx_fetch_and_print_version( ( void ) context ); HAL_DBG_TRACE_WARNING( "3\n" ); apps_common_lr11xx_radio_init( ( void* ) context ); HAL_DBG_TRACE_WARNING( "4\n" ); ASSERT_LR11XX_RC( lr11xx_system_set_dio_irq_params( context, IRQ_MASK, 0 ) ); HAL_DBG_TRACE_WARNING( "5\n" ); ASSERT_LR11XX_RC( lr11xx_system_clear_irq_status( context, LR11XX_SYSTEM_IRQ_ALL_MASK ) ); HAL_DBG_TRACE_WARNING( "6\n" ); apps_common_lr11xx_handle_pre_rx( ); ASSERT_LR11XX_RC( lr11xx_radio_set_rx_with_timeout_in_rtc_step( context, RX_CONTINUOUS ) ); HAL_DBG_TRACE_WARNING( "exit_LORA_CHIP\n" );

Without a notice and randomly when enters here apps_common_lr11xx_system_init( ( void* ) context );

it freeze....

gc9n commented 2 months ago

the exact position is on apps_common.c ASSERT_LR11XX_RC( lr11xx_system_set_reg_mode( ( void* ) context, regulator ) );