logging: startup: esp32: startup log messages format unification
Unification of startup log messages format while using SIMPLEBOOT. Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
This commit is contained in:
parent
5ee4284320
commit
f86314ecb6
4 changed files with 29 additions and 22 deletions
|
@ -46,6 +46,9 @@
|
|||
#include <esp_app_format.h>
|
||||
|
||||
#include <zephyr/sys/printk.h>
|
||||
#include "esp_log.h"
|
||||
|
||||
#define TAG "boot.esp32s3"
|
||||
|
||||
#if CONFIG_ESP_SPIRAM
|
||||
extern int _ext_ram_bss_start;
|
||||
|
@ -161,18 +164,18 @@ void IRAM_ATTR __esp_platform_start(void)
|
|||
esp_err_t err = esp_psram_init();
|
||||
|
||||
if (err != ESP_OK) {
|
||||
printk("Failed to Initialize external RAM, aborting.\n");
|
||||
ESP_EARLY_LOGE(TAG, "Failed to Initialize external RAM, aborting.");
|
||||
abort();
|
||||
}
|
||||
|
||||
if (esp_psram_get_size() < CONFIG_ESP_SPIRAM_SIZE) {
|
||||
printk("External RAM size is less than configured, aborting.\n");
|
||||
ESP_EARLY_LOGE(TAG, "External RAM size is less than configured, aborting.");
|
||||
abort();
|
||||
}
|
||||
|
||||
if (esp_psram_is_initialized()) {
|
||||
if (!esp_psram_extram_test()) {
|
||||
printk("External RAM failed memory test!");
|
||||
ESP_EARLY_LOGE(TAG, "External RAM failed memory test!");
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue