Firmware repository for PhotoVault
Clone the project repo resursivly to clone all the git submodules
git clone --recurse-submodules git@github.com:ThenujaL/PhotoVault-Firmware.git
- Install the toolchain here
- Run
install.batinsidePhotoVault-Firmware\esp-idf. This will install all build and other dependencies - Run
export.batinsidePhotoVault-Firmware\esp-idf. This will set all the environment variables. NOTE: this step must be done everytime you reopen the project environment
-
Install CMake & Ninja build
Homebrew
brew install cmake ninja dfu-utilMacports
sudo port install cmake ninja dfu-utilIt is strongly recommended to also install ccache for faster builds. If you have Homebrew, this can be done via
brew install ccacheorsudo port install ccacheon MacportsApple M1 Users - If you use Apple M1 platform and see an error like this:
WARNING: directory for tool xtensa-esp32-elf version esp-2021r2-patch3-8.4.0 is present, but tool was not found ERROR: tool xtensa-esp32-elf has no installed versions. Please run 'install.sh' to install it.Or
zsh: bad CPU type in executable: ~/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gccThen you need to install Apple Rosetta 2 by running
/usr/sbin/softwareupdate --install-rosetta --agree-to-license -
Install Python 3 Homebrew
brew install python3Macports
sudo port install python38 -
Install the tools
cd PhotoVault-Firmware/esp-idf ./install.sh esp32This will install the tools used by ESP-IDF, such as the compiler, debugger, Python packages, etc, for projects supporting ESP32
-
Set the environment variables NOTE: this step must be done everytime you reopen the project environment
. PhotoVault-Firmware/esp-idf/export.sh
Sources:
-
cd in to
PhotoVault-Firmware/examples/get-started/hello_world -
Connect the ESP32 board
-
Run
idf.py buildto build the sample project -
Flash the build to the board
idf.py -p <PORT> flash
ex:idf.py -p COM3 flashTo see the port number on your machine, follow the corresponsing Windows or Mac/Linux instructions.
-
View serial output
Runidf.py -p <PORT> monitor
ex:idf.py -p COM3 monitor
If you see Hello world! being printed, you have successfully configured the board.