TheFin / er9x

Automatically exported from code.google.com/p/er9x
0 stars 0 forks source link

Turn on MCUCR register and store. #202

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Erez, could you help me out in trying to diagnose cpu rebooting problems?  
Someone on AVRfreaks says you can set the the MCUCR register in the FW so that 
it records the reason for the reboot (watchdog, brownout, etc).  This could be 
extremely helpful for a lot of reasons.  Basically, the reason for last reboot 
could be accessed from the menu somewhere.

 - Steven

Original issue reported on code.google.com by steven%c...@gtempaccount.com on 20 Dec 2010 at 6:47

GoogleCodeExporter commented 9 years ago
I'll look into it

Original comment by erezra...@gmail.com on 20 Dec 2010 at 7:33

GoogleCodeExporter commented 9 years ago
Well, it seems that this only works with an in-system debugger (which I don't 
have)

I haven't had any problems with rebooting and I use a 2S lipo.   Can you gather 
statistics from the people who have problems?

Original comment by erezra...@gmail.com on 21 Dec 2010 at 8:21

GoogleCodeExporter commented 9 years ago

Original comment by erezra...@gmail.com on 30 Dec 2010 at 11:58

GoogleCodeExporter commented 9 years ago
No longer necessary anyway.  Although potentially useful for diagnosing 
future causes of reboots (so file it away somewhere in your head :O)

Original comment by steven%c...@gtempaccount.com on 30 Dec 2010 at 6:20