jomjol / AI-on-the-edge-device

Easy to use device for connecting "old" measuring units (water, power, gas, ...) to the digital world
https://jomjol.github.io/AI-on-the-edge-device-docs/
5.67k stars 612 forks source link

stack overflow with platformio espressif32 v3.0.0 #104

Closed LineF closed 3 years ago

LineF commented 3 years ago

Hi jomjol,

in platformio there is an new Espressif32 platform release: v3.0.0 Your code compiles well with it, but when running the code I get an endless bootloop because of a stack overflow condition:

␛[0m ␛[0;32mI (4093) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 ␛[0m ␛[0;32mI (4243) camera: Detected OV2640 camera␛[0m ␛[0;32mI (4243) camera: Allocating 1 frame buffers (150 KB total)␛[0m ␛[0;32mI (4263) camera: Allocating 150 KB frame buffer in OnBoard RAM␛[0m ␛[0;32mI (4863) connect_wlan_main: Initializing SD card␛[0m Name: SU02G Type: SDSC Speed: 20 MHz Size: 1886MB ␛[0;32mI (4913) server_ota: Start CheckOTAUpdateCheck ...␛[0m Start CheckOTAUpdateCheck ... ␛[0;32mI (4923) server_ota: SHA-256 for the partition table: : 9d4a2809ae90fb20709a8ca3dd3ac3462e1e73286bcd31b689060c91de06fa3a␛[0m ␛[0;32mI (4983) server_ota: SHA-256 for bootloader: : d82acf144af756f88a266a82c5165173d7e758bca3dcec5edbd36e1224df3f72␛[0m ␛[0;32mI (5713) server_ota: SHA-256 for current firmware: : 9a60d6b47b43eb789267da5abe413e23fd9788e3ecd12dfd8c4cf89ebc44069a␛[0m CheckOTAUpdate Partition: ESP_OK file loaded ssid = "xxxxxxxxxx" password = "xxxxxxxxxxx" hostname = "watermeter" ;hostname is optionalfile loaded

ERROR A stack overflow in task main has been detected.

Backtrace:0x4008fc8e:0x3ffc27a0 0x4009034d:0x3ffc27c0 0x4009063d:0x3ffc27e0 0x40091641:0x3ffc2860 0x40090730:0x3ffc2890 0x400906e6:0x3ffc28b0 0x4020a6ce:0x3ff000dc |<-CORRUPTED

ELF file SHA256: 9cf3c5e6d996122f

Rebooting... ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 .......

So at the moment only the previous release can be recommended...

Greetings, Martin

jomjol commented 3 years ago

Hi Martin, I can confirm the problem. It seems to be located in the wifi module. It will take some time to debug and upgrade. Best regards, jomjol

jomjol commented 3 years ago

Changes are bigger than expected (beyond wlan-code). For the time beeing I have pinned the espressif version to v2.1.0 in the configuration file

pesor commented 3 years ago

@jomjol

Sorry how do I do that, I see no update in the code section about this.

jomjol commented 3 years ago

@pesor: I only updated it for the rolling branche - sorry. Now it is also in the master!

It is only a minor change in the platform.ini: espressif32@2.1.0

jomjol commented 3 years ago

see above