fix(esp_eth): make openeth ISR log DRAM-safe

Keep the ISR from touching flash-resident log strings while cache is disabled.

Closes #18644
This commit is contained in:
Dhimas Ardinata
2026-05-24 22:29:54 +07:00
committed by Guilherme Ferreira
parent f90cd7dd78
commit 069834537c

View File

@@ -28,7 +28,7 @@
#include "esp_mac.h"
#include "esp_eth_mac_openeth.h"
static const char *TAG = "opencores.emac";
ESP_LOG_ATTR_TAG_DRAM(TAG, "opencores.emac");
// Driver state structure
typedef struct {
@@ -63,7 +63,7 @@ static IRAM_ATTR void emac_opencores_isr_handler(void *args)
}
if (status & OPENETH_INT_BUSY) {
ESP_EARLY_LOGW(TAG, "%s: RX frame dropped (0x%" PRIx32 ")", __func__, status);
ESP_DRAM_LOGW(TAG, "RX frame dropped (0x%" PRIx32 ")", status);
}
// Clear interrupt