Programs don't run on ESP32 with PlatformIO

Using VSCode and PlatformIO to program my ESP32-WROVER-E-N16R8, my “hello world” application does not run after reset. But it works just fine if I program it in Arduino… This is the code and serial debug output:

Any guidance would be greatly appreciated.

One more thing to note, I had previously gotten an example project running on the esp32, programmed with PlatformIO in VScode. But now I get the above results.

Same result with platform-espressif32/examples/espidf-hello-world at develop · platformio/platform-espressif32 · GitHub and using the upload + monitor project task?

Thanks a ton! I was using ESP-IDF to flash instead of PlatformIO. Hello World is now working!


Next, getting the actual project I was working towards to work. I stumbled through updating the flash size to 16M, altered the partitions.csv file, menuconfig, and platformio.ini, but the app is unable to open files and goes into a reboot loop:

ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
mode:DIO, clock div:2
ho 0 tail 12 room 4
entry 0x40080694
␛[0;32mI (29) boot: ESP-IDF 4.4.1 2nd stage bootloader␛[0m
␛[0;32mI (29) boot: compile time 09:11:49␛[0m
␛[0;32mI (29) boot: chip revision: 3␛[0m
␛[0;32mI (32) boot_comm: chip revision: 3, min. bootloader chip revision: 0␛[0m
␛[0;32mI (39) boot.esp32: SPI Speed : 40MHz␛[0m
␛[0;32mI (43) boot.esp32: SPI Mode : DIO␛[0m
␛[0;32mI (48) boot.esp32: SPI Flash Size : 16MB␛[0m
␛[0;32mI (53) boot: Enabling RNG early entropy source…␛[0m
␛[0;32mI (58) boot: Partition Table:␛[0m
␛[0;32mI (62) boot: ## Label Usage Type ST Offset Length␛[0m
␛[0;32mI (69) boot: 0 nvs WiFi data 01 02 00009000 00006000␛[0m
␛[0;32mI (76) boot: 1 phy_init RF data 01 01 0000f000 00001000␛[0m
␛[0;32mI (84) boot: 2 factory factory app 00 00 00010000 00100000␛[0m
␛[0;32mI (91) boot: 3 storage Unknown data 01 82 00110000 00e00000␛[0m
␛[0;32mI (99) boot: End of partition table␛[0m
␛[0;32mI (103) boot_comm: chip revision: 3, min. application chip revision: 0␛[0m
␛[0;32mI (110) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=0f308h ( 62216) map␛[0m
␛[0;32mI (141) esp_image: segment 1: paddr=0001f330 vaddr=3ffb0000 size=00ce8h ( 3304) load␛[0m
␛[0;32mI (143) esp_image: segment 2: paddr=00020020 vaddr=400d0020 size=20bech (134124) map␛[0m
␛[0;32mI (196) esp_image: segment 3: paddr=00040c14 vaddr=3ffb0ce8 size=017dch ( 6108) load␛[0m
␛[0;32mI (198) esp_image: segment 4: paddr=000423f8 vaddr=40080000 size=0d5c8h ( 54728) load␛[0m
␛[0;32mI (224) esp_image: segment 5: paddr=0004f9c8 vaddr=50000000 size=00010h ( 16) load␛[0m
␛[0;32mI (231) boot: Loaded app from partition at offset 0x10000␛[0m
␛[0;32mI (231) boot: Disabling RNG early entropy source…␛[0m
␛[0;32mI (244) cpu_start: Pro cpu up.␛[0m
␛[0;32mI (244) cpu_start: Starting app cpu, entry point is 0x4008257c␛[0m
␛[0;32mI (230) cpu_start: App cpu up.␛[0m
␛[0;32mI (258) cpu_start: Pro cpu start user code␛[0m
␛[0;32mI (258) cpu_start: cpu freq: 160000000␛[0m
␛[0;32mI (259) cpu_start: Application information:␛[0m
␛[0;32mI (263) cpu_start: Project name: ilda-test␛[0m
␛[0;32mI (268) cpu_start: App version: 1␛[0m
␛[0;32mI (273) cpu_start: Compile time: Jul 14 2022 09:09:11␛[0m
␛[0;32mI (279) cpu_start: ELF file SHA256: 0e8e3a8e21608261…␛[0m
␛[0;32mI (285) cpu_start: ESP-IDF: 4.4.1␛[0m
␛[0;32mI (290) heap_init: Initializing. RAM available for dynamic allocation:␛[0m
␛[0;32mI (297) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM␛[0m
␛[0;32mI (303) heap_init: At 3FFB2E38 len 0002D1C8 (180 KiB): DRAM␛[0m
␛[0;32mI (309) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM␛[0m
␛[0;32mI (315) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM␛[0m
␛[0;32mI (322) heap_init: At 4008D5C8 len 00012A38 (74 KiB): IRAM␛[0m
␛[0;32mI (329) spi_flash: detected chip: generic␛[0m
␛[0;32mI (333) spi_flash: flash io: dio␛[0m
␛[0;32mI (338) cpu_start: Starting scheduler on PRO CPU.␛[0m
␛[0;32mI (0) cpu_start: Starting scheduler on APP CPU.␛[0m
␛[0;31mE (9164) gzip: Failed to open file␛[0m
␛[0;31mE (9944) gzip: Failed to open file␛[0m
␛[0;31mE (10724) gzip: Failed to open file␛[0m
␛[0;31mE (11504) gzip: Failed to open file␛[0m
Error message ESP_OK
Ret code is 0
Guru Meditation Error: Core 1 panic’ed (LoadProhibited). Exception was unhandled.

Core 1 register dump:
PC : 0x400810a2 PS : 0x00060033 A0 : 0x8008120f A1 : 0x3ffb0ca0
A2 : 0x3ffb7734 A3 : 0x00000000 A4 : 0x00000000 A5 : 0x3ffb5b20
A6 : 0x3ffb7824 A7 : 0x00000000 A8 : 0x3ffb7824 A9 : 0x3ffb0c80
A10 : 0x3ff5f000 A11 : 0xe1f40c00 A12 : 0x800895bd A13 : 0x3ffb6ad0
A14 : 0x00000003 A15 : 0x00060823 SAR : 0x00000020 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000004 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000

Backtrace:0x4008109f:0x3ffb0ca00x4008120c:0x3ffb0d10 0x40083479:0x3ffb0d30 0x400f0363:0x3ffb6b30 0x400dd21b:0x3ffb6b50 0x40087d86:0x3ffb6b70 0x40089309:0x3ffb6b90

ELF file SHA256: 0e8e3a8e21608261

The code I am trying to execute here: GitHub - KrisCote/LaserShow: ESP32

This project has a filesystem, did you upload it in accordance to the “Upload Filesystem Image” project task?

That was it too, thanks for helping me with the learning curve!