forked from Elmue/CANable-2.5-firmware-Slcan-and-Candlelight
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuild_Slcan.cmd
More file actions
37 lines (28 loc) · 1.3 KB
/
Build_Slcan.cmd
File metadata and controls
37 lines (28 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@echo You must have MingW and the STM32 Cube CLT installed.
@echo Find a detailed description on https://netcult.ch/elmue/CANable Firmware Update
@REM Copy all BIN files after compiling into this directory:
@REM The firmware updater will convert them automatically into DFU files.
@set COPY_DIRECTORY="C:\Program Files (x86)\HUD ECU Hacker\Driver\CANable Firmware Update\Firmware\"
@echo:
@echo Clean up: Delete build directories
@echo The compiler fails to correctly apply changes in the sourcecode, so everything must be built from scratch each time.
@if exist Build_STM32G431xx_Slcan_MksMakerbase @rmdir /S /Q Build_STM32G431xx_Slcan_MksMakerbase
@if exist Build_STM32G431xx_Slcan_Openlightlabs @rmdir /S /Q Build_STM32G431xx_Slcan_Openlightlabs
@echo:
@echo Build Slcan MksMakerbase firmware for STM32G431
@make -s -f Make_G431_Slcan_MksMakerbase
@copy /Y "Build_STM32G431xx_Slcan_MksMakerbase\*.bin" %COPY_DIRECTORY%
@echo:
@echo Finished.
@pause
@echo:
@echo ===================================================================
@echo ===================================================================
@echo:
@echo:
@echo Build Slcan Openlightlabs firmware for STM32G431
@make -s -f Make_G431_Slcan_Openlightlabs
@copy /Y "Build_STM32G431xx_Slcan_Openlightlabs\*.bin" %COPY_DIRECTORY%
@echo:
@echo Finished.
@pause