This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
.\flash8051 -tif c2 -erase -upload firmware.hex
@echo off
setlocal
REM Путь к flash8051 (соседняя папка c8051)
set FLASH_TOOL=%~dp0..\c8051\flash8051.exe
REM Путь к HEX файлу (лежит рядом с bat)
set HEX_FILE=%~dp0firmware.hex
echo Using tool: %FLASH_TOOL%
echo Flashing: %HEX_FILE%
echo.
"%FLASH_TOOL%" -tif c2 -erase -upload "%HEX_FILE%"
echo.
echo Done.
pause