Skip to content

Error compiling for board Adafruit ESP32 Feather. #2352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hackerspace09 opened this issue Jan 19, 2019 · 8 comments
Closed

Error compiling for board Adafruit ESP32 Feather. #2352

hackerspace09 opened this issue Jan 19, 2019 · 8 comments
Labels
Status: Stale Issue is stale stage (outdated/stuck)

Comments

@hackerspace09
Copy link

hackerspace09 commented Jan 19, 2019

I am trying to build an IR camera and am having trouble compiling for board Adafruit ESP32 Feather.

Arduino: 1.8.8 (Windows 7), Board: "Adafruit ESP32 Feather, 80MHz, 921600, Debug", esp32 1.0.0
Error compiling for board Adafruit ESP32 Feather.

Hello, I'm completely new to this but trying to make progress. I installed SiLabs CP2104 Driver. Then loaded ESP32 1.0.1 in board manager. I was unable to find Adafruit ESP32 Feather. I found post "Compile error on latest commit #866" with the same problem. I uninstalled ESP32 1.0.1 then loaded ESP32 1.0.0 in board manager. I restarted IDE and I was able to find Adafruit ESP32 Feather. :) However, I'm still having trouble compiling for board Adafruit ESP32 Feather. Any help is greatly appreciated.

Arduino: 1.8.8 (Windows 7), Board: "Adafruit ESP32 Feather, 80MHz, 921600, Debug"

C:\Users\M1\AppData\Local\Temp\arduino_build_21702/arduino.ar(main.cpp.o): In function `loopTask(void*)':

C:\Users\M1\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/main.cpp:15: undefined reference to `setup()'

C:\Users\M1\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\cores\esp32/main.cpp:17: undefined reference to `loop()'

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Adafruit ESP32 Feather.
void setup() {
}

void loop() {
}


### Debug Messages: None

How do I access the debug serial output?

@bertmelis
Copy link
Contributor

So after 5 minutes scrolling down, I still didn't see the failing sketch.

You could also just paste in the error message itself: the linker doesn't find the void setup() and void loop() functions.

@hackerspace09
Copy link
Author

thank you I will try that next time, I didn't want to leave anything out.
Total noob error, didn't add a sketch. Got it now but a new error.

Unable to cache built core, please tell esp32 maintainers to follow http://goo.gl/QdCUjo
Linking everything together...
"C:\Users\M1\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0/bin/xtensa-esp32-elf-gcc" -nostdlib "-LC:\Users\M1\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0/tools/sdk/lib" "-LC:\Users\M1\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0/tools/sdk/ld" -T esp32_out.ld -T esp32.common.ld -T esp32.rom.ld -T esp32.peripherals.ld -T esp32.rom.spiram_incompatible_fns.ld -u ld_include_panic_highint_hdl -u call_user_start_cpu0 -Wl,--gc-sections -Wl,-static -Wl,--undefined=uxTopUsedPriority -u __cxa_guard_dummy -u __cxx_fatal_exception -Wl,--start-group "C:\Users\M1\AppData\Local\Temp\arduino_build_167130\sketch\interpolation.cpp.o" "C:\Users\M1\AppData\Local\Temp\arduino_build_167130\sketch\thermal_cam_interpolate.ino.cpp.o" "C:\Users\M1\AppData\Local\Temp\arduino_build_167130\libraries\Adafruit_GFX_Library\Adafruit_GFX.cpp.o" "C:\Users\M1\AppData\Local\Temp\arduino_build_167130\libraries\Adafruit_GFX_Library\Adafruit_SPITFT.cpp.o" "C:\Users\M1\AppData\Local\Temp\arduino_build_167130\libraries\Adafruit_GFX_Library\glcdfont.c.o" "C:\Users\M1\AppData\Local\Temp\arduino_build_167130\libraries\Adafruit_ILI9341\Adafruit_ILI9341.cpp.o" "C:\Users\M1\AppData\Local\Temp\arduino_build_167130\libraries\SPI\SPI.cpp.o" "C:\Users\M1\AppData\Local\Temp\arduino_build_167130\libraries\Wire\Wire.cpp.o" "C:\Users\M1\AppData\Local\Temp\arduino_build_167130\libraries\Adafruit_AMG88xx_Library\Adafruit_AMG88xx.cpp.o" "C:\Users\M1\AppData\Local\Temp\arduino_build_167130/arduino.ar" -lgcc -lopenssl -lbtdm_app -lfatfs -lwps -lcoexist -lwear_levelling -lesp_http_client -lhal -lnewlib -ldriver -lbootloader_support -lpp -lmesh -lsmartconfig -ljsmn -lwpa -lethernet -lphy -lapp_trace -lconsole -lulp -lwpa_supplicant -lfreertos -lbt -lmicro-ecc -lcxx -lxtensa-debug-module -lmdns -lvfs -lsoc -lcore -lsdmmc -lcoap -ltcpip_adapter -lc_nano -lesp-tls -lrtc -lspi_flash -lwpa2 -lesp32 -lapp_update -lnghttp -lspiffs -lespnow -lnvs_flash -lesp_adc_cal -llog -lsmartconfig_ack -lexpat -lm -lc -lheap -lmbedtls -llwip -lnet80211 -lpthread -ljson -lstdc++ -Wl,--end-group -Wl,-EL -o "C:\Users\M1\AppData\Local\Temp\arduino_build_167130/thermal_cam_interpolate.ino.elf"
"C:\Users\M1\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0/tools/gen_esp32part.exe" -q "C:\Users\M1\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0/tools/partitions/default.csv" "C:\Users\M1\AppData\Local\Temp\arduino_build_167130/thermal_cam_interpolate.ino.partitions.bin"
"C:\Users\M1\AppData\Local\Arduino15\packages\esp32\tools\esptool\2.3.1/esptool.exe" --chip esp32 elf2image --flash_mode dio --flash_freq 40m --flash_size 4MB -o "C:\Users\M1\AppData\Local\Temp\arduino_build_167130/thermal_cam_interpolate.ino.bin" "C:\Users\M1\AppData\Local\Temp\arduino_build_167130/thermal_cam_interpolate.ino.elf"
esptool.py v2.3.1

Using library Adafruit_GFX_Library at version 1.3.6 in folder: C:\Users\M1\Documents\Arduino\libraries\Adafruit_GFX_Library
Using library Adafruit_ILI9341 at version 1.1.0 in folder: C:\Users\M1\Documents\Arduino\libraries\Adafruit_ILI9341
Using library SPI at version 1.0 in folder: C:\Users\M1\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\libraries\SPI
Using library Wire at version 1.0 in folder: C:\Users\M1\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\libraries\Wire
Using library Adafruit_AMG88xx_Library at version 1.0.4 in folder: C:\Users\M1\Documents\Arduino\libraries\Adafruit_AMG88xx_Library
"C:\Users\M1\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0/bin/xtensa-esp32-elf-size" -A "C:\Users\M1\AppData\Local\Temp\arduino_build_167130/thermal_cam_interpolate.ino.elf"
Sketch uses 206996 bytes (15%) of program storage space. Maximum is 1310720 bytes.
Global variables use 15236 bytes (4%) of dynamic memory, leaving 312444 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.3.1
Connecting.....................................................

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

@bertmelis
Copy link
Contributor

There are plenty of issues with failed connections. Install the latest driver for the USB chip of your board.

What could help: attach the board before starting Windows.

@hackerspace09
Copy link
Author

i am trying to build an IR camera and was using adafrut parts, but i got a TJC3224T024_001 and that is not the wright part. So I need help finding the librarys

@hackerspace09
Copy link
Author

thank you

@1TekPro
Copy link

1TekPro commented Jan 28, 2019

@hackerspace09 http://www.meeedstudio.com/article-66.html

This should work with all 3 revisions of the board.

@stale
Copy link

stale bot commented Aug 1, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Aug 1, 2019
@stale
Copy link

stale bot commented Aug 15, 2019

This stale issue has been automatically closed. Thank you for your contributions.

@stale stale bot closed this as completed Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale Issue is stale stage (outdated/stuck)
Projects
None yet
Development

No branches or pull requests

3 participants