Hi Everyone,
I am new to ESP32/PlatformIO and was hoping I could get some help. When I try to upload my project, I am getting the following error:
Archiving .pioenvs\esp32_8MB_wifi\libFrameworkArduino.a
Linking .pioenvs\esp32_8MB_wifi\firmware.elf
c:/users/bookbinder/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pioenvs\esp32_8MB_wifi\libFrameworkArduino.a(main.cpp.o):(.literal._Z8loopTaskPv+0x8): undefined reference to `setup()'
c:/users/bookbinder/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pioenvs\esp32_8MB_wifi\libFrameworkArduino.a(main.cpp.o):(.literal._Z8loopTaskPv+0xc): undefined reference to `loop()'
c:/users/bookbinder/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pioenvs\esp32_8MB_wifi\libFrameworkArduino.a(main.cpp.o): in function `loopTask(void*)':
C:/Users/bookbinder/.platformio/packages/framework-arduinoespressif32@3.20006.221224/cores/esp32/main.cpp:42: undefined reference to `setup()'
c:/users/bookbinder/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Users/bookbinder/.platformio/packages/framework-arduinoespressif32@3.20006.221224/cores/esp32/main.cpp:48: undefined reference to `loop()'
collect2.exe: error: ld returned 1 exit status
*** [.pioenvs\esp32_8MB_wifi\firmware.elf] Error 1
The following is my platformio.ini file:
;This file was generated by ESP3D-Configurator V1.0.0-a22
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
src_dir = esp3d
build_dir = .pioenvs
lib_dir = libraries
libdeps_dir = .piolibdeps
data_dir = esp3d/data
default_envs = esp32_8MB_wifi
[env:esp32_8MB_wifi]
platform = espressif32@6.0.1
board = esp32dev
framework = arduino
monitor_speed = 115200
monitor_echo = yes
monitor_filters = send_on_enter, colorize, esp32_exception_decoder
; set frequency to 240MHz
;board_build.f_cpu = 240000000L
; set frequency to 80MHz
;board_build.f_flash = 80000000L
;board_build.flash_mode = qio
upload_speed = 460800
extra_scripts = pre:platformIO/extra_script.py
board_upload.flash_size = 8MB
board_build.partitions = default_8MB.csv
build_flags = -DCORE_DEBUG_LEVEL=0
Thanks!