ESP32S3 build with IDF failing

cindyxyi
Posts: 2
Joined: Thu Mar 07, 2024 7:46 am

ESP32S3 build with IDF failing

Postby cindyxyi » Thu Mar 07, 2024 8:06 am

Hi,

I'm trying to build and flash on to the ESP32-S3-Eye board, following these instructions on ESP-DL:
https://docs.espressif.com/projects/esp ... h-tvm.html

I went the the ESP-IDF page and followed their installation steps here: https://docs.espressif.com/projects/esp ... requisites

I tried using both the IDF v5.3 dev version and the IDF v5.0 stable version but I got the following error when I try to run

Code: Select all

idf.py build
in my

Code: Select all

new_project
folder generated by following the ESP-DL steps.

Code: Select all

/<folderpathhere>/new_project/components/tvm_model/model/codegen/host/src/default_lib3.c:5:55: error: expected declaration specifiers or '...' before '*' token
    5 | int32_t tvmgen_default_esp_main_64(int8_t* esp_64_i0, * esp_64_i0) {
      |                                                       ^
[14/62] Completed 'bootloader'
ninja: build stopped: subcommand failed.
The same

Code: Select all

idf.py build
command is working locally for the other examples in the ESP-WHO git (https://github.com/espressif/esp-who).

Would anyone have any ideas for how to fix this? Thanks in advance

liaifat85
Posts: 200
Joined: Wed Dec 06, 2023 2:46 pm

Re: ESP32S3 build with IDF failing

Postby liaifat85 » Thu Mar 07, 2024 4:26 pm

Look into the generated C code in the default_lib3.c file. Check if there are any errors in the code, such as incorrect pointer declarations or syntax issues.

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

Re: ESP32S3 build with IDF failing

Postby chegewara » Thu Mar 07, 2024 5:37 pm

int32_t tvmgen_default_esp_main_64(int8_t* esp_64_i0, * esp_64_i0) <--- 2nd parameter, its pointer to what type? missing type in fn definition

cindyxyi
Posts: 2
Joined: Thu Mar 07, 2024 7:46 am

Re: ESP32S3 build with IDF failing

Postby cindyxyi » Thu Mar 07, 2024 6:47 pm

Thanks for the help! I went into all the files that were failing and changed the lines that were failing to follow this format:

Code: Select all

int32_t tvmgen_default_esp_main_64(int8_t* esp_64_i0, int8_t* esp_64_i1) 
and it seems to be working now :)

MicroController
Posts: 1707
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: ESP32S3 build with IDF failing

Postby MicroController » Thu Mar 07, 2024 10:47 pm

chegewara wrote:
Thu Mar 07, 2024 5:37 pm
int32_t tvmgen_default_esp_main_64(int8_t* esp_64_i0, * esp_64_i0) <--- 2nd parameter, its pointer to what type? missing type in fn definition
Plus, both parameters have the same name. Something definitely went wrong when the code was generated.

Who is online

Users browsing this forum: No registered users and 100 guests