Problem with github project

fraydi
Posts: 3
Joined: Tue Nov 29, 2022 7:20 am

Problem with github project

Postby fraydi » Tue Nov 29, 2022 7:26 am

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

chegewara
Posts: 2364
Joined: Wed Jun 14, 2017 9:00 pm

Re: Problem with github project

Postby chegewara » Tue Nov 29, 2022 8:59 am


fraydi
Posts: 3
Joined: Tue Nov 29, 2022 7:20 am

Re: Problem with github project

Postby fraydi » Tue Nov 29, 2022 1:27 pm

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.

chegewara
Posts: 2364
Joined: Wed Jun 14, 2017 9:00 pm

Re: Problem with github project

Postby chegewara » Thu Dec 01, 2022 12:16 am

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.

Who is online

Users browsing this forum: No registered users and 10 guests