3#include "main-header.h"
5#include "function-instr.h"
14static const char *get_reset_source_text(
int res) {
15 const char *txt = NULL;
17 if (res == HAL_RESET_WATCHDOG) {
19 }
else if (res == HAL_RESET_POWER) {
21 }
else if (res == HAL_RESET_SLEEP) {
23 }
else if (res == HAL_RESET_FAULT) {
25 }
else if (res == HAL_RESET_SOFTWARE) {
27 }
else if (res == HAL_RESET_PIN) {
38 IPLOG(
"Application base: %p\r\n", get_app_header());
39 IPLOG(
"Build # %i\r\n", CNW_BUILD_VERSION);
40 IPLOG(
"Last PC: %p\r\n", constants()->last_return_address);
41 IPLOG(
"Failing address: %p\r\n", constants()->failing_address);
42 IPLOG(
"CFSR: %p\r\n", constants()->CFSR);
43 IPLOG(
"Reset Source: %p (%s)\r\n", loader_get_last_reset_cause(), get_reset_source_text(loader_get_last_reset_cause()));
void print_boot_info()
print startup information