esp32 build error

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
skylin008
Posts: 54
Joined: Wed Mar 11, 2015 6:21 am

esp32 build error

Post by skylin008 » Mon Jul 10, 2017 6:34 am

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!

Online
User avatar
Roberthh
Posts: 1401
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: esp32 build error

Post by Roberthh » Mon Jul 10, 2017 5:32 pm

After cloning the esp-idf, did you issue the follwoing command:
git submodule update --init

skylin008
Posts: 54
Joined: Wed Mar 11, 2015 6:21 am

Re: esp32 build error

Post by skylin008 » Tue Jul 11, 2017 1:10 am

Yes,I had did it.

rogierlodewijks
Posts: 5
Joined: Sat Jul 15, 2017 7:13 pm

Re: esp32 build error

Post by rogierlodewijks » Sat Jul 15, 2017 7:20 pm

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!

Online
User avatar
Roberthh
Posts: 1401
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: esp32 build error

Post by Roberthh » Sun Jul 16, 2017 6:17 am

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.

Post Reply