Page 1 of 1

ESP32S3 build with IDF failing

Posted: Thu Mar 07, 2024 8:06 am
by cindyxyi
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

Re: ESP32S3 build with IDF failing

Posted: Thu Mar 07, 2024 4:26 pm
by liaifat85
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.

Re: ESP32S3 build with IDF failing

Posted: Thu Mar 07, 2024 5:37 pm
by chegewara
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

Re: ESP32S3 build with IDF failing

Posted: Thu Mar 07, 2024 6:47 pm
by cindyxyi
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 :)

Re: ESP32S3 build with IDF failing

Posted: Thu Mar 07, 2024 10:47 pm
by MicroController
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.