forked from EBiCS/EBiCS_Firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStart_Compiling.bat
More file actions
30 lines (22 loc) · 801 Bytes
/
Start_Compiling.bat
File metadata and controls
30 lines (22 loc) · 801 Bytes
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
set eclipsepath=%~1
set stmpath=%~2
set flashoption=%~3
PATH = %PATH%;%eclipsepath%\plugins\fr.ac6.mcu.externaltools.arm-none.win32_1.17.0.201812190825\tools\make;%eclipsepath%\plugins\fr.ac6.mcu.externaltools.arm-none.win32_1.17.0.201812190825\tools\compiler\bin;%stmpath%\STM32 ST-LINK Utility\ST-LINK Utility
IF NOT exist Debug (md Debug)
cd Debug
make -f ..\make\Makefile clean
cd..\make
copy *.* ..\Debug
cd ..\Debug
md Drivers\STM32F1xx_HAL_Driver\Src
md startup
md src
copy subdir_drivers.mk Drivers\STM32F1xx_HAL_Driver\Src\subdir.mk
copy subdir_src.mk Src\subdir.mk
copy subdir_startup.mk startup\subdir.mk
copy STLINK_FLASH.ld ..\STM32F103C6Tx_FLASH.ld
copy STLINK_system_stm32f1xx.c ..\Src\system_stm32f1xx.c
make all
ST-LINK_CLI.exe -c SWD SWCLK=8 -P LishuiFOC_01.hex -V
pause
exit