Code Monkey home page Code Monkey logo

esp32_burn_firmware's Introduction

ESP32_burn_firmware

batch file to burn firmware of ESP32

REM uses SPIFFS, ESP32-CAM used
REM 2021-04-13, FTBserver 1.5 firmware
REM burn test ok

:: To erase esp32 completely, do not rely on Arduino IDE and code upload, it has cluster and odd thing when uses FATFS, 
:: unless format SPIFFS or FATFS everytime on the fly
:: xiaolaba, 2020-MAR-02
:: Arduino 1.8.13, esptool and path,


set comport=COM5
set esptoolpath="C:\Users\user0\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.0.0/esptool.exe"
set project=FTBserver

:: erase whole flash of esp32
%esptoolpath% --chip esp32 ^
--port %comport% ^
--baud 921600 ^
erase_flash

pause

REM burn firmware
%esptoolpath% --chip esp32 ^
--port %comport% ^
--baud 921600 ^
--before default_reset ^
--after hard_reset ^
write_flash -z ^
--flash_mode dio ^
--flash_freq 80m ^
--flash_size detect ^
0xe000 boot_app0.bin ^
0x1000 bootloader_qio_80m.bin ^
0x10000 %project%.ino.bin ^
0x8000 %project%.ino.partitions.bin

pause

REM 0xe000 C:\Users\user0\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5/tools/partitions/boot_app0.bin 
REM 0x1000 C:\Users\user0\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5/tools/sdk/bin/bootloader_qio_80m.bin 
REM 0x10000 C:\Users\user0\AppData\Local\Temp\arduino_build_451008/FTBserver.ino.bin 
REM 0x8000 C:\Users\user0\AppData\Local\Temp\arduino_build_451008/FTBserver.ino.partitions.bin 



esp32_burn_firmware's People

Contributors

xiaolaba avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.