esp_restart() and uart reset bug

User avatar
urbanze
Posts: 295
Joined: Sat Jun 10, 2017 9:55 pm
Location: Brazil

esp_restart() and uart reset bug

Postby urbanze » Wed Feb 14, 2018 4:51 pm

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...

User avatar
urbanze
Posts: 295
Joined: Sat Jun 10, 2017 9:55 pm
Location: Brazil

Re: esp_restart() and uart reset bug

Postby urbanze » Fri Feb 23, 2018 8:42 pm

Anyone help? I need know a solution about this uart2 + sw rst bug...

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: esp_restart() and uart reset bug

Postby WiFive » Fri Feb 23, 2018 8:52 pm

Your idf version has uart reset fix?

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

User avatar
urbanze
Posts: 295
Joined: Sat Jun 10, 2017 9:55 pm
Location: Brazil

Re: esp_restart() and uart reset bug

Postby urbanze » Sat Feb 24, 2018 12:29 pm

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 :(

PaulFreund
Posts: 45
Joined: Wed Nov 15, 2017 9:07 pm

Re: esp_restart() and uart reset bug

Postby PaulFreund » Sat Feb 24, 2018 3:17 pm

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.

User avatar
urbanze
Posts: 295
Joined: Sat Jun 10, 2017 9:55 pm
Location: Brazil

Re: esp_restart() and uart reset bug

Postby urbanze » Mon Feb 26, 2018 3:01 pm

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?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: esp_restart() and uart reset bug

Postby WiFive » Mon Feb 26, 2018 6:23 pm

Yes you should always specify which code base

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

User avatar
urbanze
Posts: 295
Joined: Sat Jun 10, 2017 9:55 pm
Location: Brazil

Re: esp_restart() and uart reset bug

Postby urbanze » Mon Feb 26, 2018 8:34 pm

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.

Who is online

Users browsing this forum: Majestic-12 [Bot], StuartsProjects and 101 guests