Unable to Flash tutorial examples onto LyraT board

jacksonjw12
Posts: 3
Joined: Fri May 10, 2019 3:42 am

Unable to Flash tutorial examples onto LyraT board

Postby jacksonjw12 » Fri May 10, 2019 3:51 am

I am unable to flash the example play_mp3 program onto my LyraT board. I am able to get ESP IDF example programs like blink to work, but I get compiler errors when I attempt to use the ESP ADF example. Im wondering if anyone can help me fix this. Sorry if this board is not meant for topics like this. Here is the output of 'make flash' for the play_mp3 example.

Code: Select all

Jacksons-MacBook-Pro-460:play_mp3 jacksonw$ make flash
Toolchain path: /Users/jacksonw/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a
Compiler version: 5.2.0
Python requirements from /Users/jacksonw/esp/esp-idf/requirements.txt are satisfied.

Project is not inside a git repository, will not use 'git describe' to determine PROJECT_VER.
App "play_mp3" version: 1
CC build/audio_hal/board/lyrat_v4_3/board_pins_config.o
In file included from /Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:3:0:
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c: In function 'get_input_set_id':
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.h:16:35: error: 'TOUCH_PAD_NUM9' undeclared (first use in this function)
 #define BUTTON_SET_ID             TOUCH_PAD_NUM9
                                   ^
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:100:12: note: in expansion of macro 'BUTTON_SET_ID'
     return BUTTON_SET_ID;
            ^
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.h:16:35: note: each undeclared identifier is reported only once for each function it appears in
 #define BUTTON_SET_ID             TOUCH_PAD_NUM9
                                   ^
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:100:12: note: in expansion of macro 'BUTTON_SET_ID'
     return BUTTON_SET_ID;
            ^
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c: In function 'get_input_play_id':
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.h:17:35: error: 'TOUCH_PAD_NUM8' undeclared (first use in this function)
 #define BUTTON_PLAY_ID            TOUCH_PAD_NUM8
                                   ^
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:105:12: note: in expansion of macro 'BUTTON_PLAY_ID'
     return BUTTON_PLAY_ID;
            ^
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c: In function 'get_input_volup_id':
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.h:18:35: error: 'TOUCH_PAD_NUM7' undeclared (first use in this function)
 #define BUTTON_VOLUP_ID           TOUCH_PAD_NUM7
                                   ^
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:110:12: note: in expansion of macro 'BUTTON_VOLUP_ID'
     return BUTTON_VOLUP_ID;
            ^
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c: In function 'get_input_voldown_id':
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.h:19:35: error: 'TOUCH_PAD_NUM4' undeclared (first use in this function)
 #define BUTTON_VOLDOWN_ID         TOUCH_PAD_NUM4
                                   ^
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:115:12: note: in expansion of macro 'BUTTON_VOLDOWN_ID'
     return BUTTON_VOLDOWN_ID;
            ^
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c: In function 'get_input_set_id':
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:101:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c: In function 'get_input_play_id':
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:106:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c: In function 'get_input_volup_id':
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:111:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c: In function 'get_input_voldown_id':
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c:116:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
/Users/jacksonw/esp/esp-adf/components/audio_hal/board/lyrat_v4_3/board_pins_config.c: At top level:
cc1: warning: unrecognized command line option '-Wno-frame-address'
cc1: some warnings being treated as errors
make[1]: *** [board/lyrat_v4_3/board_pins_config.o] Error 1
make: *** [component-audio_hal-build] Error 2


cassar.nicolas
Posts: 2
Joined: Sat May 11, 2019 3:15 pm

Re: Unable to Flash tutorial examples onto LyraT board

Postby cassar.nicolas » Sat May 11, 2019 3:19 pm

Hello,
I have the same problem today. Tell me if you find a solution please. I'am on linux and it's the first time I try to compile my project.

Thank you,

Nicolas

jacksonjw12
Posts: 3
Joined: Fri May 10, 2019 3:42 am

Re: Unable to Flash tutorial examples onto LyraT board

Postby jacksonjw12 » Mon May 13, 2019 2:59 am

It turns out that my problem was I was using the wrong environmental variable for the esp idf directory. You need to be using the esp idf repo that comes bundled within the esp adf repo. The tutorial is not super clear on that. Hope this helps!

cassar.nicolas
Posts: 2
Joined: Sat May 11, 2019 3:15 pm

Re: Unable to Flash tutorial examples onto LyraT board

Postby cassar.nicolas » Fri May 17, 2019 10:53 am

Hello,
thank you ! I found it too. On linux you have to use this : IDF_PATH = ~/esp/esp-adf/esp-idf/


best regards

Who is online

Users browsing this forum: No registered users and 5 guests