Page 1 of 1

esp_restart() and uart reset bug

Posted: Wed Feb 14, 2018 4:51 pm
by urbanze
After using the esp_restart() function that restarts both cores, specifically in my project, UART2 stops working, causing the GSM module connected to this UART not to work properly.

I have seen several github reports about this problem. How can I completely restart all UART channels? Or even make a more complete software restart...

Re: esp_restart() and uart reset bug

Posted: Fri Feb 23, 2018 8:42 pm
by urbanze
Anyone help? I need know a solution about this uart2 + sw rst bug...

Re: esp_restart() and uart reset bug

Posted: Fri Feb 23, 2018 8:52 pm
by WiFive
Your idf version has uart reset fix?

https://github.com/espressif/esp-idf/co ... 80f2881a2a

Re: esp_restart() and uart reset bug

Posted: Sat Feb 24, 2018 12:29 pm
by urbanze
WiFive wrote:Your idf version has uart reset fix?

https://github.com/espressif/esp-idf/co ... 80f2881a2a
This update is from November and I'm using the latest version (3.0-rc1 December). So I think so, have the correction.

Why does this still occur? How to fix? I need sw rst running :(

Re: esp_restart() and uart reset bug

Posted: Sat Feb 24, 2018 3:17 pm
by PaulFreund
I had a similar problem (https://esp32.com/viewtopic.php?f=2&t=4725) which was resolved with this commit https://github.com/espressif/esp-idf/co ... fb61431339.

Re: esp_restart() and uart reset bug

Posted: Mon Feb 26, 2018 3:01 pm
by urbanze
PaulFreund wrote:I had a similar problem (https://esp32.com/viewtopic.php?f=2&t=4725) which was resolved with this commit https://github.com/espressif/esp-idf/co ... fb61431339.

I'm testing this "new update" and it's still not working. I do not know if these changes were made to the Arduino Core UART (I'm using UART and WiFi from Arduino Core), however, it does not work and UART2 is still bugged.

Maybe I will test the IDF UART in the future if this update did not affect the Ard-Core UART, so I will be forced to test it.

Any ideas for a solution to this if the update affected the Ard-Core UART?

Re: esp_restart() and uart reset bug

Posted: Mon Feb 26, 2018 6:23 pm
by WiFive
Yes you should always specify which code base

https://github.com/espressif/arduino-esp32/issues/1145

Re: esp_restart() and uart reset bug

Posted: Mon Feb 26, 2018 8:34 pm
by urbanze
WiFive wrote:Yes you should always specify which code base

https://github.com/espressif/arduino-esp32/issues/1145
When do you think this correction will occur in Ard-Core? If it takes too long, I'll use the IDF-UART.