Getting Started - Jamal-Ra-Davis/Daftpunk_Speaker_IDF GitHub Wiki
Download project
- Project can be downloaded via cloning the repo or by downloading it as a zip file
- To download, navigate to "Code" page of github repo, click the "Code" button in the top right, and click to the "Download Zip" option
- Extract the zip file at your desired location
ESP-IDF (v4.4) Installation
-
(Online installer doesn't have v4.4.6 anymore, need to use offline installer: https://github.com/espressif/idf-installer/releases/download/offline-4.4.6/esp-idf-tools-setup-offline-4.4.6.exe)
-
(Need to update screenshots for offline installer)
-
Refer to Standard Setup of Toolchain for Windows to install version v4.4 of ESP-IDF
-
Recommend using Universal Online Installer:
-
Follow installer instructions
-
Select v4.4.X as the version to install
-
Choose
Full Installation
with default settings and install
Menuconfig Setup
-
With ESP-IDF installed, open ESP-IDF command shell and navigate to
Daftpunk_Speaker_IDF
directory -
Run
idf.py menuconfig
to open config settings -
Change partition table size:
-
Navigate to and select
Partition Table
->Partition Table (*)
->Single factory app (large), no OTA
-
-
Set I2S config and pin mappings:
-
Navigate to
A2DP Example Configuration
-
Select
A2DP Sink Output
and chooseExternal I2S Codec
-
Set
I2S LRCK (WS) GPIO
to25
-
Set
I2S BCK GPIO
to26
-
Set
I2S DATA GPIO
to22
-
-
Navigate to
Display Type
->Type of display to use
and select eitherDevelopment board display
orForm-factor display
depending on what is being used -
Press
S
to save config settings and thenQ
to exit menuconfig
Building and Flashing Code
-
Run
idf.py build
to build code and verify that it builds successfully. If successful, output should be similar to the following: -
Connect device via USB and make note of the serial port that enumerates when it's connected. Note: In my case, it enumerates as
COM4
. -
To flash device, run
idf.py -p (PORT) flash monitor
where(PORT)
is the serial port that was determined in the previous step -
If flashing was successful, the system should execute it's boot sequence and you should see corresponding logs
Install Python Dependencies for Command Shell
pip install crc16
pip install alive_progress
pip install pyyaml
-> From CMD, run py -m pip install * -> Install visual studio code (https://visualstudio.microsoft.com/downloads/) -> Install python extension in Vs code -> error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/ --> https://visualstudio.microsoft.com/visual-cpp-build-tools/