Skip to content

Commit

Permalink
Add a local copy of esptool.exe 4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulZC committed Aug 19, 2024
1 parent de4184c commit fc0d44e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
7 changes: 1 addition & 6 deletions Firmware/RTK_mosaic-X5_Firmware/ESP32_FLASHER.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
@echo off
::Update this variable to reflect your project filename
::for example: Qwiic_BMP384_v10.ino -> set PTITLE=Qwiic_BMP384_v10
::Omit anything before the fileextension
set PTITLE=RTK_mosaic-X5_Firmware
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Expand All @@ -23,8 +20,6 @@ for /f "tokens=2 delims=(" %%a in ('wmic path win32_pnpentity get caption /forma
set BOOTLOADER="build\bootloader\bootloader.bin"
set PARTITIONS="build\partition_table\partition-table.bin"
set FIRMWARE="build\%PTITLE%.bin"
::set ESPTOOL="C:\Users\public\Documents\GitHub\qcvault-live\UTILITIES\Espressif\esptool.exe"
::set ESPTOOL="C:\Program Files (x86)\Arduino\hardware\espressif\esp32\tools\esptool\esptool.exe"
set ESPTOOL="C:\Users\%USERNAME%\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.5.1\esptool.exe"
set ESPTOOL="esptool.exe"

call %ESPTOOL% --chip esp32 -p %COMPORT% -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 %BOOTLOADER% 0x10000 %FIRMWARE% 0x8000 %PARTITIONS%
4 changes: 1 addition & 3 deletions Firmware/RTK_mosaic-X5_Firmware/ESP32_FLASH_ERASE.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ for /f "tokens=2 delims=(" %%a in ('wmic path win32_pnpentity get caption /forma

:erase

::set ESPTOOL="C:\Users\public\Documents\GitHub\qcvault-live\UTILITIES\Espressif\esptool.exe"
::set ESPTOOL="C:\Program Files (x86)\Arduino\hardware\espressif\esp32\tools\esptool\esptool.exe"
set ESPTOOL="C:\Users\%USERNAME%\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.5.1\esptool.exe"
set ESPTOOL="esptool.exe"

call %ESPTOOL% --chip esp32 -p %COMPORT% -b 460800 erase_flash
Binary file added Firmware/RTK_mosaic-X5_Firmware/esptool.exe
Binary file not shown.

0 comments on commit fc0d44e

Please sign in to comment.