-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32 S2 crash in static void IRAM_ATTR uart_intr_handle() #55
Comments
i dont have a S2 for testing interesting that it is running on ESP32 which ESP32 Hardware Core Version? |
S2 Mini V1.0.0, Hailege 3pcs ESP32 S2 Mini WiFi Development Board WIFI IOT Wireless Board Based on ESP32-S2FN4R2 ESP32-S2 4MB Flash Type-C MicroPython Arduino Compatible I have no exception shown, |
I need the version of your ESP32 arduino core version |
I use 2.0.16 |
did you had a look at #44 ? there are several reasons for crashing. It's hard to get the right one without exception decoder there are several known issues, but i had no time for fix |
Yes I use this topic and done some test since 3 days. If I remove If I return in ISR uart, then crash. static void IRAM_ATTR uart_intr_handle(void *arg) return; |
ESP_ERROR_CHECK(uart_isr_register(uart_num, uart_intr_handle, NULL, ESP_INTR_FLAG_IRAM, 0 /handle_console/)); this call register the function uart_intr_handle to the Interrupt you could try to register the function without ESP_INTR_FLAG_IRAM |
Same crash without ESP_INTR_FLAG_IRAM. I try to have very simple uart_intr_handle with minimum code, |
What about that for minimum code
|
One more, info, |
Ok lets try to work it out.
please uncomment the following lines/functions one by one and report back
the first 2 are working with the Timer, and i'am sure it is more or less a Timer Problem, but who knows |
Test comment this line: disable_receiving(); line321 => reboot |
On more info, So for me the hardware, and wire is ok. |
I add a rtc_get_reset_reason, print_reset_reason, and the cause is SW_RESET, RESET_REASON = 3 |
And all 3 disabled together? |
here is the answer: Link in the last comment could you try to change: to rxbuf[buffer_index] = READ_PERI_REG(UART_FIFO_AHB_REG(1)); // read all bytes But there seems to be a bigger issue with the UART Periph on S2. So maybe its not crashing any more but UART is not read correctly |
all 3 together, same, reboot |
OK, the problem is here:
OK Running with that and fix use of TIMER_1 |
Nice to hear. What did u change? is it still working on esp32 (without S2)? |
Here the code for ESP32 and ESP32_S2
|
Fixed |
OK, i have some questions: u used PIN16/17 on the S2 -> why? are 25/26 not working? and u changed:
|
I use 25/26 because I use an ESP32 S2 Mini Lolin, and no 25/26 pin. |
Crash with ESP32 S2 mini.
(Code is running on ESP32)
Someone have test on ESP32 S2 ?
Any idea how to solve that ?
The text was updated successfully, but these errors were encountered: