You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

250 lines
5.9 KiB

12 years ago
12 years ago
12 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. @ECHO off
  2. @ECHO ***** Batch file for BlHeli (from 4712) v.2 *****
  3. @ECHO ***** All Messages will be saved to MakeHex_Result.txt *****
  4. @ECHO ***** Start compile with any key - CTRL-C to abort *****
  5. Break ON
  6. @pause
  7. DEL MakeHex_Result.txt /Q
  8. rem ***** Adapt settings to your enviroment ****
  9. DEL Output\Hex\*.* /Q
  10. RMDIR Output\Hex
  11. DEL Output\*.* /Q
  12. RMDIR Output
  13. MKDIR Output
  14. MKDIR Output\Hex
  15. SET Revision=REV14_9
  16. SET SilabsPath=C:\SiLabs
  17. SET RaisonancePath=C:\Raisonance
  18. @ECHO Revision: %Revision% >> MakeHex_Result.txt
  19. @ECHO Path for Silabs IDE: %SilabsPath% >> MakeHex_Result.txt
  20. @ECHO Path for Raisonance IDE: %RaisonancePath% >> MakeHex_Result.txt
  21. @ECHO Start compile ..... >> MakeHex_Result.txt
  22. SET BESCNO=0
  23. SET BESCNAME=XP_3A
  24. call:compile
  25. SET BESCNAME=XP_7A
  26. call:compile
  27. SET BESCNAME=XP_7A_FAST
  28. call:compile
  29. SET BESCNAME=XP_12A
  30. call:compile
  31. SET BESCNAME=XP_18A
  32. call:compile
  33. SET BESCNAME=XP_25A
  34. call:compile
  35. SET BESCNAME=XP_35A_SW
  36. call:compile
  37. SET BESCNAME=DP_3A
  38. call:compile
  39. SET BESCNAME=SUPERMICRO_3P5A
  40. call:compile
  41. SET BESCNAME=TURNIGY_PLUSH_6A
  42. call:compile
  43. SET BESCNAME=TURNIGY_PLUSH_10A
  44. call:compile
  45. SET BESCNAME=TURNIGY_PLUSH_12A
  46. call:compile
  47. SET BESCNAME=TURNIGY_PLUSH_18A
  48. call:compile
  49. SET BESCNAME=TURNIGY_PLUSH_25A
  50. call:compile
  51. SET BESCNAME=TURNIGY_PLUSH_30A
  52. call:compile
  53. SET BESCNAME=TURNIGY_PLUSH_40A
  54. call:compile
  55. SET BESCNAME=TURNIGY_PLUSH_60A
  56. call:compile
  57. SET BESCNAME=TURNIGY_PLUSH_80A
  58. call:compile
  59. SET BESCNAME=TURNIGY_PLUSH_NFET_18A
  60. call:compile
  61. SET BESCNAME=TURNIGY_PLUSH_NFET_25A
  62. call:compile
  63. SET BESCNAME=TURNIGY_PLUSH_NFET_30A
  64. call:compile
  65. SET BESCNAME=TURNIGY_AE_20A
  66. call:compile
  67. SET BESCNAME=TURNIGY_AE_25A
  68. call:compile
  69. SET BESCNAME=TURNIGY_AE_30A
  70. call:compile
  71. SET BESCNAME=TURNIGY_AE_45A
  72. call:compile
  73. SET BESCNAME=TURNIGY_KFORCE_40A
  74. call:compile
  75. SET BESCNAME=TURNIGY_KFORCE_70A_HV
  76. call:compile
  77. SET BESCNAME=TURNIGY_KFORCE_120A_HV
  78. call:compile
  79. SET BESCNAME=TURNIGY_KFORCE_120A_HV_V2
  80. call:compile
  81. SET BESCNAME=SKYWALKER_20A
  82. call:compile
  83. SET BESCNAME=SKYWALKER_40A
  84. call:compile
  85. SET BESCNAME=HIMODEL_COOL_22A
  86. call:compile
  87. SET BESCNAME=HIMODEL_COOL_33A
  88. call:compile
  89. SET BESCNAME=HIMODEL_COOL_41A
  90. call:compile
  91. SET BESCNAME=RCTIMER_6A
  92. call:compile
  93. SET BESCNAME=ALIGN_RCE_BL15X
  94. call:compile
  95. SET BESCNAME=ALIGN_RCE_BL15P
  96. call:compile
  97. SET BESCNAME=ALIGN_RCE_BL35X
  98. call:compile
  99. SET BESCNAME=ALIGN_RCE_BL35P
  100. call:compile
  101. SET BESCNAME=GAUI_GE_183_18A
  102. call:compile
  103. SET BESCNAME=H_KING_10A
  104. call:compile
  105. SET BESCNAME=H_KING_20A
  106. call:compile
  107. SET BESCNAME=H_KING_35A
  108. call:compile
  109. SET BESCNAME=H_KING_50A
  110. call:compile
  111. SET BESCNAME=POLARIS_THUNDER_12A
  112. call:compile
  113. SET BESCNAME=POLARIS_THUNDER_20A
  114. call:compile
  115. SET BESCNAME=POLARIS_THUNDER_30A
  116. call:compile
  117. SET BESCNAME=POLARIS_THUNDER_40A
  118. call:compile
  119. SET BESCNAME=POLARIS_THUNDER_60A
  120. call:compile
  121. SET BESCNAME=POLARIS_THUNDER_80A
  122. call:compile
  123. SET BESCNAME=POLARIS_THUNDER_100A
  124. call:compile
  125. SET BESCNAME=PLATINUM_PRO_30A
  126. call:compile
  127. SET BESCNAME=PLATINUM_PRO_150A
  128. call:compile
  129. SET BESCNAME=PLATINUM_50AV3
  130. call:compile
  131. SET BESCNAME=EAZY_3AV2
  132. call:compile
  133. SET BESCNAME=TAROT_30A
  134. call:compile
  135. SET BESCNAME=SKYIII_30A
  136. call:compile
  137. SET BESCNAME=EMAX_20A
  138. call:compile
  139. SET BESCNAME=EMAX_40A
  140. call:compile
  141. SET BESCNAME=EMAX_Nano_20A
  142. call:compile
  143. SET BESCNAME=EMAX_Lightning_20A
  144. call:compile
  145. SET BESCNAME=XROTOR_10A
  146. call:compile
  147. SET BESCNAME=XROTOR_20A
  148. call:compile
  149. SET BESCNAME=XROTOR_40A
  150. call:compile
  151. SET BESCNAME=MDRX62H
  152. call:compile
  153. SET BESCNAME=ROTORGEEKS_20A
  154. call:compile
  155. SET BESCNAME=ROTORGEEKS_20A_PLUS
  156. call:compile
  157. SET BESCNAME=FLYCOLOR_FAIRY_6A
  158. call:compile
  159. SET BESCNAME=FLYCOLOR_FAIRY_30A
  160. call:compile
  161. SET BESCNAME=FLYCOLOR_FAIRY_V2_30A
  162. call:compile
  163. SET BESCNAME=FLYCOLOR_RAPTOR_20A
  164. call:compile
  165. SET BESCNAME=FLYCOLOR_RAPTOR_390_20A
  166. call:compile
  167. SET BESCNAME=FVT_LITTLEBEE_12A
  168. call:compile
  169. SET BESCNAME=FVT_LITTLEBEE_20A
  170. call:compile
  171. SET BESCNAME=FVT_LITTLEBEE_20A_PRO
  172. call:compile
  173. SET BESCNAME=FVT_LITTLEBEE_30A
  174. call:compile
  175. SET BESCNAME=GRAUPNER_ULTRA_20A
  176. call:compile
  177. SET BESCNAME=F85_3A
  178. call:compile
  179. SET BESCNAME=ZTW_SPIDER_PRO_20A
  180. call:compile
  181. SET BESCNAME=ZTW_SPIDER_PRO_20A_Premium
  182. call:compile
  183. SET BESCNAME=ZTW_SPIDER_PRO_20A_HV
  184. call:compile
  185. SET BESCNAME=ZTW_SPIDER_PRO_30A_HV
  186. call:compile
  187. SET BESCNAME=DYS_XM20A
  188. call:compile
  189. SET BESCNAME=OVERSKY_MR_20A
  190. call:compile
  191. SET BESCNAME=OVERSKY_MR_20A_PRO
  192. call:compile
  193. SET BESCNAME=TBS_CUBE_12A
  194. call:compile
  195. SET BESCNAME=DALRC_XR20A
  196. call:compile
  197. SET BESCNAME=AIKON_BOLTLITE_30A
  198. call:compile
  199. SET BESCNAME=ALIGN_MR25_15A
  200. call:compile
  201. SET BESCNAME=SERVOKING_MONSTER_30A
  202. call:compile
  203. SET BESCNAME=SERVOKING_MONSTER_30A_PRO
  204. call:compile
  205. SET BESCNAME=SERVOKING_MONSTER_70A_PRO
  206. call:compile
  207. SET BESCNAME=SERVOKING_MONSTER_80A
  208. call:compile
  209. SET BESCNAME=HTIRC_HUMMINGBIRD_12A
  210. call:compile
  211. SET BESCNAME=HTIRC_HUMMINGBIRD_20A
  212. call:compile
  213. SET BESCNAME=HTIRC_HUMMINGBIRD_30A_PRO
  214. call:compile
  215. goto :end
  216. :compile
  217. SET BESC="%BESCNAME%_MAIN"
  218. SET /A BESCNO+=1
  219. call :compile2
  220. SET BESC="%BESCNAME%_TAIL"
  221. SET /A BESCNO+=1
  222. call:compile2
  223. SET BESC="%BESCNAME%_MULTI"
  224. SET /A BESCNO+=1
  225. call:compile2
  226. goto :eof
  227. :compile2
  228. @ECHO compiling %BESC%
  229. @ECHO. >> MakeHex_Result.txt
  230. @ECHO ******************************************************************** >> MakeHex_Result.txt
  231. @ECHO %BESCNAME% >> MakeHex_Result.txt
  232. @ECHO ******************************************************************** >> MakeHex_Result.txt
  233. %RaisonancePath%\Ride\bin\ma51.exe "BLHeli.asm" SET(BESCNO=%BESCNO%) OBJECT(Output\%BESCNAME%_%Revision%.OBJ) DEBUG EP QUIET PIN(%SilabsPath%\MCU\Inc;%RaisonancePath%\Ride\inc;%RaisonancePath%\Ride\inc\51) >> MakeHex_Result.txt
  234. %RaisonancePath%\Ride\bin\lx51.exe "Output\%BESCNAME%_%Revision%.OBJ" TO(Output\%BESCNAME%_%Revision%.OMF) RS(256) PL(68) PW(78) OUTPUTSUMMARY LIBPATH(%RaisonancePath%\Ride\lib\51) >> MakeHex_Result.txt
  235. %RaisonancePath%\Ride\bin\oh51.exe "Output\%BESCNAME%_%Revision%.OMF" >> MakeHex_Result.txt
  236. copy "Output\%BESCNAME%_%Revision%.HEX" "Output\Hex\%BESC%_%Revision%.HEX" > nul
  237. del "Output\%BESCNAME%_%Revision%.HEX" > nul
  238. @ECHO. >> MakeHex_Result.txt
  239. goto :eof
  240. :end
  241. @pause
  242. exit