Close

9) Flash and build ESP32

A project log for VinyGo, a stereo vinyl recorder

For artists, vinyl stores, recording studios, or music lovers

mras2anmras2an 08/29/2021 at 19:440 Comments
    Cf tuto: Get Started esp32 — ESP-IDF Programming Guide latest documentation

9.1) On GNU/Linux

$ cd VinyGo/03_Software/ESP32/

$ export IDF_PATH=$PATH/esp-idf/

$ export PATH="$PATH:$HOME/Project/esp32/xtensa-esp32-elf/bin"

$ make

9.2) Flash ESP32

9.2.1) On GNU/Linux

link on binaries: https://github.com/Mras2an/VinyGo/tree/master/03_Software/ESP32/build

$ python esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 $PATH/bootloader.bin 0x10000 $PATH/VinyGo.bin 0x8000 $PATH/customPart.bin

9.2.2) Via Wifi (only if you have already done 9.2.1)

( https://www.python.org/downloads/release/python-2712/ )

On your PC execute the commands:

GNU/Linux

$ python  $PATH/update_firmware.py 192.168.52.1 $PATH/VinyGo.bin

Windows

C:\Users\Desktop\VinyGo>py update_firmware.py 192.168.52.1 VinyGo.bin

or

C:\Users\Desktop\VinyGo>python update_firmware.py 192.168.52.1 VinyGo.bin

connecting to 192.168.52.1...

connected, socket = <socket._socketobject object at 0x02582EA0>

sending 'start OTA' command to target...

sending fragment 1 of 125 (4096 bytes)

...

Discussions