Part Number: MSPM0G3507
Other Parts Discussed in Thread: SYSCONFIG,
Tool/software:
I'm trying to create a timer to keep track of the seconds time while running a program using the LP-MSPM0G3507. I used the example code systick_periodic_timer and expanded on it a little. The sysconfig file is the same, but the main function and SysTick_Handler() is the following:

The goal right now is to have GPIO_LEDS_USER_TEST toggle as well as GPIO_LEDS_USER_LED_1. I see GPIO_LEDS_USER_LED_1 toggling, but not GPIO_LEDS_USER_TEST. It seems like the program gets stuck in while(Time_sec - start_time < 2) {} loop forever (whether __WFI() is there or not), even though I see in the debugger Time_sec is much greater than the start_time+2. What could be going on? Is there some function I need to clear the interrupt for SysTick?