gfroerli / firmware

Firmware for the water temperature sensor project
GNU General Public License v3.0
6 stars 1 forks source link

Switch from panic-halt to panic-persist #89

Closed dbrgn closed 3 years ago

dbrgn commented 3 years ago

On boot, when a panic message is found, print it to serial and carry on.

panic_000

dbrgn commented 3 years ago

We can try to print it before resetting, but is there any advantage over printing it after resetting?

(Of course, not resetting at all would be unsound, but I don't think that's what you meant.)

rnestler commented 3 years ago

We can try to print it before resetting, but is there any advantage over printing it after resetting?

We wouldn't need the 1k of dedicated RAM, but other than that not really, also we don't really know if we are in a state where printing to UART still works before resetting.