Make sure to print CPU Reset Cause when starting the software

This commit is contained in:
Harald Welte
2017-03-03 19:02:09 +01:00
parent 45ebe4591a
commit 7214b4747f
2 changed files with 3 additions and 0 deletions

View File

@@ -151,6 +151,7 @@ extern int main(void)
TRACE_INFO("Serial Nr. %08x-%08x-%08x-%08x\n\r",
g_unique_id[0], g_unique_id[1],
g_unique_id[2], g_unique_id[3]);
TRACE_INFO("Reset Cause: 0x%x\n\r", (RSTC->RSTC_SR & RSTC_SR_RSTTYP_Msk) >> RSTC_SR_RSTTYP_Pos);
board_main_top();