I have a RA4M1 on which the RTC is not incrementing. The waveforms on the crystal are identical to one that does work. All the other functions of the processor also seem to work.
I know that anything is possible, but it is it at all likely that i have a processor where everything works except the RTC? Or should i continue looking for a hardware fault?
Hello Ian,
Thanks for reaching out to us!
As far I can understand from what you are saying you have some custom boards where the RTC is working properly and only one board has issues with the RTC, even though the same software is running on all the boards, right?
First of all could you please provide to us the FSP version you are using and the configurations you have made in rtc stack on FSP Configurator?
Thank you!
Best Regards,
IK
RCR1 is set to 0b11100100
RCR2 is set to 0b01000001
FSP is version 4.0.0 but the RTC stack is not used.
Do you follow the initialization of registers (as you do not use FSP APIs) ?
What clock do you use - sub-clock or LOCO ?
Ian,
Please let me inform you that there is also one case that the RTC counter cannot be read correctly.
Generally when you are using the RTC, set the PCLKB to a frequency that is greater or equal to the frequency of the RTC count source.
If this condition is not met, the RTC counter may be not read correctly.
Check also this.
en.na4.teamsupport.com/.../20012280
Additionally could you please provide to us more information? Like as mentioned what are the settings that you have done for the RTC? As mentioned what is the count source of it, have you followed the correct process to initialize the RTC from registers? We would appreciate it if you could provide to us, some sample code to help us in the debugging process.
Regards,