Page 1 of 1

esp32 build error

Posted: Mon Jul 10, 2017 6:34 am
by skylin008
Hello everyone !
When build the esp32 firmware ,the error as follow:
/home/ubuntu/esp/esp-idf//components/esp32/ipc.c: In function 'esp_ipc_init':
/home/ubuntu/esp/esp-idf//components/esp32/ipc.c:83:58: error: 'CONFIG_IPC_TASK_STACK_SIZE' undeclared (first use in this function)
xTaskCreatePinnedToCore(ipc_task, task_names, CONFIG_IPC_TASK_STACK_SIZE, (void*) i,
^
/home/ubuntu/esp/esp-idf//components/esp32/ipc.c:83:58: note: each undeclared identifier is reported only once for each function it appears in
make: *** [build//home/ubuntu/esp/esp-idf//components/esp32/ipc.o] Error 1

How sloves this issue! Thank you!

Re: esp32 build error

Posted: Mon Jul 10, 2017 5:32 pm
by Roberthh
After cloning the esp-idf, did you issue the follwoing command:
git submodule update --init

Re: esp32 build error

Posted: Tue Jul 11, 2017 1:10 am
by skylin008
Yes,I had did it.

Re: esp32 build error

Posted: Sat Jul 15, 2017 7:20 pm
by rogierlodewijks
Can confirm. Just downloaded latest micropython-esp32 and idf, same issue.

Solution (or hack maybe):
I added `#define CONFIG_IPC_TASK_STACK_SIZE 1024` manually to `sdkconfig.h` in the esp32 dir. Then it woudl compile correctly!

Re: esp32 build error

Posted: Sun Jul 16, 2017 6:17 am
by Roberthh
Does the hash of the espidf match the one expected by the esp32 build? If not, there is a warning printed. Try to checkout the expected esp-idf build. For that, go to the esp-idf directory and issue:

Code: Select all

git checkout 9b955f4c9f1b32652ea165d3e4cdaad01bba170e
and then, issue the command:

Code: Select all

git submodule update --init
in both the esp-idf and the esp32 source directory. One of both is nto required, but i forgot, which one.