espressif / esp-adf

Espressif Audio Development Framework
Other
1.55k stars 686 forks source link

lcd_camera- undefined reference to `app_main' (AUD-5811) #1304

Open mrmonteith opened 1 week ago

mrmonteith commented 1 week ago

Environment

Problem Description

idf.py build - on lcd_camera receives error - undefined reference to `app_main'

// Detailed problem description goes here. [1/1] cmd.exe /C "cd /D C:\Users\micha\esp\lcd_camera\buil...sers/micha/esp/lcd_camera/build/bootloader/bootloader.bin" Bootloader binary size 0x5260 bytes. 0x2da0 bytes (36%) free. [2/4] Linking CXX executable lcd_camera.elf FAILED: lcd_camera.elf cmd.exe /C "cd . && C:\Espressif\tools\xtensa-esp-elf\esp-13.2.0_20240530\xtensa-esp-elf\bin\xtensa-esp32s3-elf-g++.exe -mlongcalls -fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero -fno-builtin-stpcpy -fno-builtin-strncpy -Wl,--cref -Wl,--defsym=IDF_TARGET_ESP32S3=0 -Wl,--Map=C:/Users/micha/esp/lcd_camera/build/lcd_camera.map -Wl,--no-warn-rwx-segments -fno-rtti -fno-lto -Wl,--gc-sections -Wl,--warn-common -T esp32s3.peripherals.ld -T esp32s3.rom.ld -T esp32s3.rom.api.ld -T esp32s3.rom.libgcc.ld -T esp32s3.rom.wdt.ld -T esp32s3.rom.version.ld -T esp32s3.rom.newlib.ld -T memory.ld -T sections.ld @CMakeFiles\lcd_camera.elf.rsp -o lcd_camera.elf && cd ." C:/Espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: esp-idf/freertos/libfreertos.a(app_startup.c.obj):(.literal.main_task+0x28): undefined reference to app_main' C:/Espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: esp-idf/freertos/libfreertos.a(app_startup.c.obj): in functionmain_task': C:/Espressif/frameworks/esp-idf-v5.3-2/components/freertos/app_startup.c:206:(.text.main_task+0xd8): undefined reference to `app_main' collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ninja failed with exit code 1, output of the command is in the C:\Users\micha\esp\lcd_camera\build\log\idf_py_stderr_output_16324 and C:\Users\micha\esp\lcd_camera\build\log\idf_py_stdout_output_16324

Expected Behavior

Exit 0

Actual Behavior

Exit 1

Steps to Reproduce

cd %userprofile%\esp\lcd_camera idf.py set-target esp32s3 idf.py menuconfig idf.py build

// If possible, attach a picture of your setup/wiring here. At this point wiring is irrelevant

Code to Reproduce This Issue

lcd_camera example code

sdkconfig.json

Debug Logs

Debug log goes here. It should contain the backtrace, as well as the reset source if it is a crash.
Please copy the plaintext here for us to search the error log. Or attach the complete logs and leave the main part here if the log is *too* long.

Other Items If Possible

idf_py_stdout_output_16324.txt idf_py_stderr_output_16324.txt

shootao commented 2 days ago

Hi @mrmonteith In your audio board, you need to enable FUNC_LCD_SCREEN_EN and FUNC_CAMERA_EN ref link