uv-k5-firmware-custom/win_make.bat

33 lines
1.1 KiB
Batchfile
Raw Normal View History

2023-09-09 07:03:56 +00:00
:: download "gcc-arm-none-eabi-10.3-2021.10-win32.exe" for windows ..
:: https://developer.arm.com/downloads/-/gnu-rm
2023-09-09 07:03:56 +00:00
::
:: download "gnu_make-3.81.exe" for windows ..
:: https://gnuwin32.sourceforge.net/packages/make.htm
2023-09-09 07:03:56 +00:00
del /S /Q *.o >nul 2>nul
del /S /Q *.d >nul 2>nul
del /S /Q *.bin >nul 2>nul
"C:\Program Files (x86)\GnuWin32\bin\make"
del /S /Q *.o >nul 2>nul
del /S /Q *.d >nul 2>nul
2023-09-18 12:31:56 +00:00
:: If you have python installed, you can create a 'packed' .bin from the compiled firmware.bin file.
:: The Quangsheng windows upload-to-radio program requires a 'packed' .bin file.
::
:: if you don't have python installed, then comment out the python line(s) below, in which case you'll need
:: to upload the standard unpacked firmware.bin file another way.
::
2023-09-18 12:31:56 +00:00
:: I wrote a windows version of k5prog to do this easily in windows ..
:: https://github.com/OneOfEleven/k5prog-win
::python -m pip install --upgrade pip crcmod
::python3 -m pip install --upgrade pip crcmod
::python fw-pack.py firmware.bin 230921 firmware.packed.bin
::python3 fw-pack.py firmware.bin 230921 firmware.packed.bin
2023-09-09 07:03:56 +00:00
::arm-none-eabi-size firmware
pause