ESP32-A1S make problem

User avatar
shabtronic
Posts: 49
Joined: Sun Nov 03, 2019 1:33 pm

ESP32-A1S make problem

Postby shabtronic » Wed Nov 13, 2019 5:04 am

I'm guessing the ESP32-A1S board is not offically supported?

I'm using donny681 ADF branch - and just can't get it to compile or configure.

get-started\play_mp3\idf.py menuconfig - blows out with a error, intially CMakelists.txt is missing.

when I copy that from the original ADF master, I get:

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/zzz/.espressif/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a5-5.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
Build flags: -mlongcalls
Id flags:

The output was:
1
c:/zzz/.espressif/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a5-5.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: cannot find crt1-sim.o: No such file or directory
c:/zzz/.espressif/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a5-5.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: cannot find _vectors.o: No such file or directory
c:/zzz/.espressif/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a5-5.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: cannot find -lsim
c:/zzz/.espressif/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a5-5.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: cannot find -lhandlers-sim
c:/zzz/.espressif/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a5-5.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: cannot find -lhal
collect2.exe: error: ld returned 1 exit status
Any ideas or help getting this working would be awesome!

thanks in advance

Shabby!

glennhuber
Posts: 2
Joined: Mon Mar 13, 2017 3:03 pm

Re: ESP32-A1S make problem

Postby glennhuber » Thu Nov 21, 2019 3:56 pm

Any progress?

Thanks.

User avatar
shabtronic
Posts: 49
Joined: Sun Nov 03, 2019 1:33 pm

Re: ESP32-A1S make problem

Postby shabtronic » Thu Nov 21, 2019 10:23 pm

Hi Glenn

No progress on this at the moment - I've put in on the back burner for the next week or so - working on other stuff. Maybe I've totally messed up my espressif install or something - but it seems like that A1S build is out of sync with the main ADF stuff - and it's moved on too much. There's no IDF.py in that branch - so you can't run IDF.py menuconfig to even compile the examples.

I think it requires writing a A1S board codec driver inline with the current ADF branch - don't known how much work that is. I did find another more recent A1S branch - that has a board driver - but that didn't work again because the official ADF had moved too far ahead. I'm hoping it's a case of simply taking that driver code and plugging it into the ADF and it's build system. Currently I don't have the time to do this, because of my other projects. I'll post a link to the other branch when I remember where I put the damn link :)

Sucks really - that A1S board is a dream board for my projects :( - now it's a dust collector :)

If I manage to get it working at all - I'll post the code on here.

Shabby
[Edit]
I think this is the other branch I found:

https://github.com/phkehl/esp32-a1s-audio_hal

User avatar
shabtronic
Posts: 49
Joined: Sun Nov 03, 2019 1:33 pm

Re: ESP32-A1S make problem

Postby shabtronic » Sat Nov 23, 2019 2:07 pm

Finally got my A1S working - yaay!!!

This was my error - I used these to setup ADF/IDF

https://docs.espressif.com/projects/esp ... setup.html
esp-idf-tools-setup-2.1.exe

and they work great for the current ADF/IDF setup - but not for the older versions with my windows setup


so I started from scratch using this instead:

https://docs.espressif.com/projects/esp ... hain-setup

https://dl.espressif.com/dl/esp32_win32 ... 181001.zip

once you've unzipped that to the dir of your choice

in dir msys2/etc/profile.d
you need to create 2 files (using note pad)

export_idf_path.sh which should contain:
export IDF_PATH="C:/????/msys32/home/user/esp/esp-adf/esp-idf"

and

export_adf_path.sh which should contain:
export ADF_PATH="C:/????/msys32/home/user/esp/esp-adf"

???? is where u unzipped esp32_win32_msys2_environment_and_toolchain-20181001.zip

open msys32/mingw32.exe and get a mingw window

type in the following:

mkdir -p ~/esp
cd esp
git clone --recursive https://github.com/donny681/esp-adf
cd esp-adf
cd ai-examples
cd player
cd pipeline_sdcard_mp3

make menuconfig

select the a1s board

make

copy test.mp3 onto flash card - whack it into ur A1S board

make flash ESPPORT=COM5 ( or whatever ur a1s board com? is when u plug it into ur pc)

make monitor ESPPORT=COM5

it should play test.mp3 and dump out some logging!

Super happy now - my A1S is now usable!

Who is online

Users browsing this forum: No registered users and 31 guests