Other Parts Discussed in Thread: LP-MSPM0L2228, SYSCONFIG, MSPM0L2228, , SEGGER
Tool/software:
Hello,
I've got a problem with the SysTick timer on a MSPM0L1228S.
The timer is counting, but the callback will never be called.
I created a simple Test Program. Which I tested also on an LP-MSPM0L2228 and it works fine. The Technical Reference Manual is the same for both, so I assumed that they will behave the same.
Can you help me out, what is the difference between these devices? Or what did I wrong?
Config for the SysTick is completely in code. In Syscfg is no SysTick added. SDK version is 2.02.00.05.
#include "ti_msp_dl_config.h" #include "stdio.h" int main(void) { SYSCFG_DL_init(); /* Initialize the period to 1.00 ms */ DL_SYSTICK_init(32000); DL_SYSTICK_enableInterrupt(); DL_SYSTICK_enable(); while (1) { delay_cycles(32000000); printf("systick: %d\n", DL_SYSTICK_getValue()); } } /* SysTick_Handler(); * interrupt handler for sysTick Timer. */ void SysTick_Handler(void) { DL_GPIO_togglePins(GPIO_GRP_0_PORT, GPIO_GRP_0_PIN_A13_PIN); }
Regards,
Timo