Closed cpainchaud closed 3 years ago
I know that PIO can use the development version of this repo. Please check in their docs how to do it and try against that. I added a fix exactly for redirects
platform = https://github.com/platformio/platform-espressif32.git should do it, i will give it a try !
Nope :/
Arduino IDE Version : 10805 ESP SDK version: v3.3.4-436-g0bfff0b25
Guru Meditation Error: Core 1 panic'ed (InstrFetchProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x00000000 PS : 0x00060230 A0 : 0x800f18dc A1 : 0x3ffe7e60
A2 : 0x3ffe7f7c A3 : 0x00000000 A4 : 0x02586b9c A5 : 0x3ffc6cfc
A6 : 0x00000000 A7 : 0x3ffe7fb0 A8 : 0x801959e1 A9 : 0x3ffe7e40
A10 : 0x3ffddc40 A11 : 0x3ffe7e80 A12 : 0x3ffde88c A13 : 0x0000000a
A14 : 0x00000000 A15 : 0xff000000 SAR : 0x00000008 EXCCAUSE: 0x00000014
EXCVADDR: 0x00000000 LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0x00000000
0 0x00000000:0x3ffe7e60 in ?? ??:0
1 0x400f18d9:0x3ffe7e80 in HTTPClient::connect() at /packages/framework-arduinoespressif32/libraries/HTTPClient/src/HTTPClient.cpp:925
2 0x400f1a4b:0x3ffe7eb0 in HTTPClient::sendRequest(char const, unsigned char, unsigned int) at /framework-arduinoespressif32/libraries/HTTPClient/src/HTTPClient.cpp:925
3 0x400f1bc7:0x3ffe7f00 in HTTPClient::GET() at /framework-arduinoespressif32/libraries/HTTPClient/src/HTTPClient.cpp:925
There was something weird so I decided to wipe .pio and PIO's framework directory to ensure it was not mixing frameworks parts... and i am afraid it's really not fixed
Took me a while but I figured it out :) fixed in the commit above
Hardware:
Board: ESP32 Dev Module Arduino IDE Version : 10805 ESP SDK version: v3.3.4-432-g7a85334d8 IDE name: PIO Flash Frequency: 40Mhz PSRAM enabled: no Upload Speed: 115200 Computer OS: Windows 10
Description:
Crash happens when downloading URL with http.setFollowRedirects(followRedirects_t::HTTPC_STRICT_FOLLOW_REDIRECTS); This URL indeeds forward the client once to the read URL where the binary file is. Note that the crash does not occur if I give it the relocated URL directly.
Sketch: (leave the backquotes for code formatting)
Debug Messages: