Hi,
I'm reading the LPC18xx user manual and it says that to determine the cause of core reset, we can use the flag in internal RAM. What location/address is this flag? So far, using the event router, I haven't been successful in determining the cause of core reset and I thought I'd like to try the flag in internal RAM. I've actually opened a question here a few days ago but haven't received a reply: https://community.nxp.com/thread/436767
I would appreciate a reply on this as soon as possible as it is delaying my development progress. Thank you.
Solved! Go to Solution.
Hello Vivien,
You can use any address from internal RAM to "allocate a token", basically, what section
14.5.1 Determine the cause of a core reset
describes is the way to change this value depending the reset source. It uses the first "token" (0xAA55FF01) to signal when RESET by external pin is used and the second "token" (0xAA55FF02) to signal when RGU causes the reset event. However, it is not limited to use only these values.
Regards,
Isaac
Hello Vivien,
You can use any address from internal RAM to "allocate a token", basically, what section
14.5.1 Determine the cause of a core reset
describes is the way to change this value depending the reset source. It uses the first "token" (0xAA55FF01) to signal when RESET by external pin is used and the second "token" (0xAA55FF02) to signal when RGU causes the reset event. However, it is not limited to use only these values.
Regards,
Isaac
Hi,
Thanks for your reply. I figured that out too.