Hey guys,
I am using Bezier Clock code example, everything works fine, But when I set the time of this month say for example RTC_DEFAULT_TIME =1702941840. Then the program doesn't run and I see a white screen. Can someone explain me why this happens and the solution?
I see that the program gets stuck at cyhal_rtc_write( &Rtc, &dateTime );
Looks like it is december that is causing the problem, whenever I set december as the month no matter which year, this occurs.
Update: So what I saw is that int tm_mon takes value from [0, 11], and the program is assigning 12 to it if December. So this is causing the error.
Thanks.