Skip to content

Commit e61b896

Browse files
committed
opinion(esp32s3): logging system
Signed-off-by: Xiaosheng An <x.an@inx-systems.com>
1 parent 808549f commit e61b896

4 files changed

Lines changed: 6 additions & 2 deletions

File tree

target/os-arch/esp32s3_freertos-xtensa/target_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,6 +1595,7 @@ void app_main(void)
15951595
#if EHS_ESP32_ENABLE_LOGS != 1
15961596
esp_log_level_set("*", ESP_LOG_NONE);
15971597
#endif
1598+
esp_log_level_set("esp32_ehs", ESP_LOG_DEBUG);
15981599
// Set callback function for notifying about file systems status
15991600
ehs_filesystem_initalised_callback = EhsFilesystemInitalised;
16001601

target/os-arch/esp32s3_freertos-xtensa/target_specific.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
#ifndef EHSStdioPrintf
4545
#define EhsStdioPrintf(x, y, z, ...) {if (strcmp(z,"Error") == 0) ESP_LOGE(TS_TAG, x, y, z, __VA_ARGS__);else if (strcmp(z,"Warning") == 0) ESP_LOGW(TS_TAG, x, y, z, __VA_ARGS__);else if (strcmp(z,"Info")) ESP_LOGI(TS_TAG, x, y, z, __VA_ARGS__);else ESP_LOGD(TS_TAG, x, y, z, __VA_ARGS__);}
46-
#define EhsStdioSimplePrintf(...) ESP_LOGD(TS_TAG, __VA_ARGS__)
46+
#define EhsStdioSimplePrintf(...) ESP_LOGI(TS_TAG, __VA_ARGS__)
4747
#endif
4848

4949
/* math functions not implemented in Windows */

target/platform/esp32s3_freertos-xtensa-base-debug/config.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ EHS_DEBUGALL=yes
3838
EHS_DEBUG_TCPIP_CONSOLE=yes
3939

4040
# Runtime logger
41-
EHS_RUNTIME_LOGGER_ENABLED=no
41+
EHS_RUNTIME_LOGGER_ENABLED=yes
4242

4343
# Memory management (uncomment to disable linked-list based allocator)
4444
#EHS_MEMORY_MANAGMENT=none

target/platform/esp32s3_freertos-xtensa-community/config.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ EHS_SERIAL_CONSOLE_SUPPORT=yes
4242
# Memory management (uncomment to disable linked-list based allocator)
4343
#EHS_MEMORY_MANAGMENT=none
4444

45+
# Disable reboot after app load to allow debugging with OpenOCD
46+
EHS_TARGET_APPLOAD_RESTARTING_REBOOT=no
47+
4548

4649
#################################################################################################################
4750
# Feature Configuration

0 commit comments

Comments
 (0)