Hi@AKV
The following is my test process, the bare metal code is as follows, and RTD is 6.0.0.
And it works as expected.
IP_SWT_0->CR &= ~SWT_CR_WEN_MASK;
IP_SWT_0->CR |= SWT_CR_WND_MASK;
IP_SWT_0->WN = 16000;
IP_SWT_0->TO = 32000;
IP_SWT_0->SR = 0xA602;
IP_SWT_0->SR = 0xB480;
IP_SWT_0->CR |= SWT_CR_WEN_MASK;
void PitNotification(void)//1ms
{
if(s_time_since_last_refresh_ms>700)
{
IP_SWT_0->SR = 0xA602;
IP_SWT_0->SR = 0xB480;
/* Toggle the gpio pin to blink the LED when the Pit notification is called */
Siul2_Dio_Ip_TogglePins(LED_PORT, (1UL << LED_PIN));
s_time_since_last_refresh_ms = 0;
}
else
{
s_time_since_last_refresh_ms++;
}
}