Search found 4 matches

by Gondola
Mon Apr 30, 2018 3:02 pm
Forum: General Discussion
Topic: ESP32 IRAM Timer ISR Cache Access Failure
Replies: 10
Views: 12160

Re: ESP32 IRAM Timer ISR Cache Access Failure

Alright,

I pinned the UART_handler task to Core 0 using:

Code: Select all

xTaskCreatePinnedToCore(&UART_handler, "uart_task", 8192, NULL, configMAX_PRIORITIES-1, NULL,0);
Now I no longer see the Cache Access Error. I am not quite sure why this works.
by Gondola
Mon Apr 30, 2018 2:23 pm
Forum: General Discussion
Topic: ESP32 IRAM Timer ISR Cache Access Failure
Replies: 10
Views: 12160

Re: ESP32 IRAM Timer ISR Cache Access Failure

No, the handler is not pinned to any specific core:

Code: Select all

xTaskCreate(&UART_handler, "uart_task", 8192, NULL, configMAX_PRIORITIES-1, NULL);
What is the reason why I would need to pin it to a specific one?
by Gondola
Mon Apr 30, 2018 1:42 pm
Forum: General Discussion
Topic: ESP32 IRAM Timer ISR Cache Access Failure
Replies: 10
Views: 12160

Re: ESP32 IRAM Timer ISR Cache Access Failure

I am not using PSRAM. I am using the ESP-WROOM-32. For some additinoal information I will post the timer initialization, ISR, and Task that is being notified. volatile int counter = 0; #define DETECT_LENGTH 10 void IRAM_ATTR timer_group0_isr(void *para) { int timer_idx = (int) para; uint32_t intr_st...
by Gondola
Sat Apr 28, 2018 12:13 am
Forum: General Discussion
Topic: ESP32 IRAM Timer ISR Cache Access Failure
Replies: 10
Views: 12160

ESP32 IRAM Timer ISR Cache Access Failure

My question is about IRAM safe functions. Within my Timer ISR I am only calling one function. This function is: xTaskNotifyGiveFromISR(). https://www.freertos.org/vTaskNotifyGiveFromISR.html However, when my device boots and starts connecting to WiFi I receive a Guru Meditation Error: Core 1 panic'e...