Created
January 8, 2023 10:29
-
-
Save vinhjaxt/a55f032b3fd18193c7eb3ac9f838d698 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://docs.espressif.com/projects/esp8266-rtos-sdk/en/latest/get-started/windows-setup.html | |
https://dl.espressif.com/dl/esp32_win32_msys2_environment_and_toolchain-20181001.zip | |
Download esp8266 toolchains: | |
https://dl.espressif.com/dl/xtensa-lx106-elf-gcc8_4_0-esp-2020r3-win32.zip | |
mingw32.exe | |
mkdir -p ~/esp | |
cd ~/esp | |
git clone --depth 1 --branch master --recursive https://github.com/espressif/ESP8266_RTOS_SDK.git | |
edit ~/.bashrc | |
export IDF_PATH=/home/$USER/esp/ESP8266_RTOS_SDK | |
export PATH=$PATH:/home/$USER/xtensa-lx106-elf/bin | |
python -m pip install --user -r $IDF_PATH/requirements.txt | |
make menuconfig | |
/dev/ttyUSB0 => /COM7 | |
python ~/esp/ESP8266_RTOS_SDK/components/esptool_py/esptool/esptool.py --chip esp8266 --port /COM7 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size 2MB 0x0 /home/vinhn/esp/hello_world/build/bootloader/bootloader.bin 0x10000 /home/vinhn/esp/hello_world/build/hello-world.bin 0x8000 /home/vinhn/esp/hello_world/build/partitions_singleapp.bin | |
python ~/esp/ESP8266_RTOS_SDK/tools/idf_monitor.py --port /COM7 --baud 74880 ./build/hello-world.elf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment