I’ve run into an issue with my code where it runs in Arduino, but immediately crashes when ran in PlatformIO with the following text:
rst:0x10 (RTCWDT_RTC_RESET),boot:0x1a (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
mode:DIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:13132
load:0x40080400,len:3036
entry 0x400805e4
I found if I update the ESP32 board in Arduino from 1.0.6 to the newest version of 2.0.11 I get the same error from PlatformIO. I’m trying to downgrade the Arduino core in my PlatformIO project, but changing my framework to arduino@1.0.6 doesn’t seem to work; resulting in the following error:
PLATFORM: Espressif 32 (6.3.2) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- tool-esptoolpy @ 1.40501.0 (4.5.1)
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Error: This board doesn't support arduino@1.0.6 framework!
========================== [FAILED] Took 0.86 seconds ==========================
Are the versions for Arduino in PlatformIO different than the versions in the arduino IDE, or should I be changing something else?
platformio.ini:
main.cpp/ino