cancel
Showing results for 
Search instead for 
Did you mean: 

Sequencer stop when LPTIM1 Started

jlaiosa
Associate

I am using the LoRaWAN_End_node application.  The application was working fine until I integrated the Low Power sample code.  The Sequencer appears to stop working (I suspect the timers are not working).  If I do not do add MX_LPTIM1_Init() in main everything appears to work.  The problem is without the LPTIM1 I can not wake up the processor.

 

HAL_LPTIM_Counter_Start_IT(&hlptim1,(2000 * LSI_VALUE / 1000)); 

HAL_PWREx_EnterSTOP2Mode(PWR_STOPENTRY_WFI);

 

Thanks for the help.

 

2 REPLIES 2
Issamos
Lead II

Hello @jlaiosa 

To enter and exit low power modes on a LoRaWAN application based on the STM32WL. I suggest you to use the Low power and Timer server utilities. More details about that may be found on the AN5406 specially chapter 9.2 and 9.3.

Best Regards.

II

Thank you for the reply.