Yuri D'Elia
9663653671
xfdump_erase: remove redundant XFLASH_SPI_ENTER()
2021-06-12 12:05:02 +02:00
Yuri D'Elia
3187b96ca4
xfdump: report to the host that a dump is available
...
As suggested by @3d-gussner, announce to the host that a dump is
available for retrieval using an action "dump_available".
Any kind of dump is announced (even if manually triggered).
To avoid reading from xflash twice, remove some duplication and return
the crash reason directly in xfdump_check_state().
2021-06-11 19:21:51 +02:00
Yuri D'Elia
31f416fd5e
Rename dump_crash_source to dump_crash_reason
2021-06-10 17:35:49 +02:00
Yuri D'Elia
c375610668
Move "WDR dump" inside EMERGENGENCY_DUMP
2021-06-10 17:02:41 +02:00
Yuri D'Elia
0362b6484f
xfdump_full_dump_and_reset: set a guaranteed minimum WDT
...
Just prior to dumping, reset the WDT to a known-safe (and not too long)
interval that guarantees a complete dump.
2021-06-10 16:30:39 +02:00
Voinea Dragos
1e786c7f55
WDR crash initial
2021-06-09 13:59:26 +03:00
Yuri D'Elia
c2e64c8c6e
xfdump: fix another off-by-one static size check
2021-06-08 19:08:03 +02:00
Yuri D'Elia
56d0848ea9
xfdump: fix size check
2021-06-08 18:43:32 +02:00
Yuri D'Elia
9d3b19b637
xfdump: defensive static checks to ensure dump location always fits
2021-06-08 18:29:55 +02:00
Yuri D'Elia
c331c07b16
xfdump: reuse standard definitions for SRAM size/offset
2021-06-08 17:53:06 +02:00
Yuri D'Elia
1a88e339bf
xfdump: fix build with XFLASH_DUMP disabled
2021-06-08 17:17:18 +02:00
Yuri D'Elia
a6e372e696
Typo
2021-06-08 17:14:22 +02:00
Yuri D'Elia
6dfef76346
xfdump: implement dump-to-xflash functionality
...
Update xflash_layout to include information about the dump, which sits
at the end of xflash.
2021-06-08 15:28:02 +02:00