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


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

      image

  • Set I2S config and pin mappings:

    • Navigate to A2DP Example Configuration

    • Select A2DP Sink Output and choose External I2S Codec

    • Set I2S LRCK (WS) GPIO to 25

    • Set I2S BCK GPIO to 26

    • Set I2S DATA GPIO to 22

      image

  • Navigate to Display Type -> Type of display to use and select either Development board display or Form-factor display depending on what is being used

    image

  • Press S to save config settings and then Q 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:

    image

  • 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