rrivirr / rriv

GNU General Public License v3.0
1 stars 9 forks source link

Log on Reset feature / Debug wake reset #90

Open ZavenArra opened 2 years ago

ZavenArra commented 2 years ago

Ken - profile the exact location of the hang that causes reset on wake Zaven - implement log on reset bit in EEPROM, and fix the hang once profiled.

ZavenArra commented 1 year ago

@kenchong48 Did we determine the location of this hang, or can you provide me with a hardware configuration that replicates this ?

kenchong48 commented 1 year ago

@ZavenArra No, haven't had time to explore this. To replicate I think you can just log data periodically. My current solution is to reset upon reaching a certain file size. So, trying to log past that file size should cause the issue to arise. I set it to reset if it sees a file size over 100000 bytes

ZavenArra commented 1 year ago

We think that when the file gets too big it might be resetting. We also think that if a new file needs to be created, it does not log to it on that cycle. A side effect of this is that we end up missing the logging cycle that would otherwise have occurred.

kenchong48 commented 1 year ago

Happening on at least my branch, might be an issue I've introduced though: https://github.com/kenchong48/rriv/tree/methaneUpdate