Page 1 of 1

Problem with github project

Posted: Tue Nov 29, 2022 7:26 am
by fraydi
Dear
I have problem with main and forked repo grom below link:
https://github.com/salakrzy/DTSU666_CHI ... translator
I have issue with freeRTOS. How to make it working? Thx for help. I'm begginer in ESP-IDF...

Code: Select all

FAILED: DTSU666H_translator.elf
cmd.exe /C "cd . && C:\Espressif\tools\xtensa-esp32-elf\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -mlongcalls -Wno-frame-address @CMakeFiles\DTSU666H_translator.elf.rsp -o DTSU666H_translator.elf && cd ."
c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/freertos/libfreertos.a(port_common.c.obj):(.literal.main_task+0x1c): undefined reference to app_main' c:/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/freertos/libfreertos.a(port_common.c.obj): in function main_task':
C:/Espressif/frameworks/esp-idf-v4.4.3/components/freertos/port/port_common.c:135: undefined reference to `app_main'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

Re: Problem with github project

Posted: Tue Nov 29, 2022 8:59 am
by chegewara

Re: Problem with github project

Posted: Tue Nov 29, 2022 1:27 pm
by fraydi
chegewara wrote:
Tue Nov 29, 2022 8:59 am
Did you follow the docs:
https://docs.espressif.com/projects/ard ... onent.html
Yes ofcourse. Main project need to download Arduino library, forked project has already implented inside. I have same problem in both of them.

Re: Problem with github project

Posted: Thu Dec 01, 2022 12:16 am
by chegewara
It looks like you dont have enabled this option in menuconfig, thats why i am asking.

Code: Select all

Autostart Arduino setup and loop on boot
You have either enable it and use setup and loop, like in arduino, or disable it and use

Code: Select all

void app_main()
OR
extern "C" app_main()
like in esp-idf.