Hi,
I am facing one problem regarding my recent circuit. My board is reset's after every certain time interval. I am trying to identify the source of Reset whether it is internal or external. I haven't configure watchdog or low voltage detection bits n my software. I am trying to fetch value from RESF register but every time I get the value 0x00. It means it is not reset from internal source or controller changes this value to 0 as per datasheet. What are the steps for fetching RESF value.
Hi Pranao,
It might be that the RESF register is being cleared and you're not getting its right value. Please check Mike's response in this thread: https://renesasrulz.com/rl78/f/the-rl78-forum/14151/help-needed-in-identifying-the-reset-reason-if-watchdog-is-disabled
JBRenesasRulz Forum Moderator
https://renesasrulz.com/https://academy.renesas.com/https://en-support.renesas.com/knowledgeBase/
Hi JB,
Thank you. I appreciate your help, the link mentioned above, by Mike is very helpful. It solves my problem. now whenever microcontroller reset's I get RESF value equal to 0x04. It means the internal reset occurs due to RAM parity error. Could you please suggest a remedies to solve RAM parity error condition.
Usually this is due to reading before writing. After a reset, the RAM contents are garbage. Performing a read on uninitialized RAM would be a problem.
This links does not work anymore. Could you post here the answer?
Thx
Hi Oscar,
Can you please create a new post with your question ?
To troubleshoot periodic resets in your circuit, first, ensure a stable power supply within the microcontroller's recommended range. Check for default watchdog timer settings or Low Voltage Detection features in the datasheet. To identify the reset source, attempt reading the Reset Source Register (RESF) and interpret the value obtained. If consistently getting 0x00, consult the microcontroller's documentation for specific methods to read the RESF register. Additionally, inspect external hardware components for issues that might trigger resets. These steps should help pinpoint the source of the resets and guide further troubleshooting.