From 1bf7e140125d836102a22c3e63e5239a2f10f7ed Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 12 Mar 2017 17:30:02 -0400 Subject: [PATCH] better file name & more details --- firmware/{compile.bat => compile_and_program.bat} | 12 ++++++------ misc/hw_test.bat | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) rename firmware/{compile.bat => compile_and_program.bat} (81%) diff --git a/firmware/compile.bat b/firmware/compile_and_program.bat similarity index 81% rename from firmware/compile.bat rename to firmware/compile_and_program.bat index fd8fc293f0..27aa207d8d 100644 --- a/firmware/compile.bat +++ b/firmware/compile_and_program.bat @@ -14,7 +14,8 @@ rem cd build rem if not exist rusefi.hex echo "compilation failed" rem if not exist rusefi.hex exit -1 rem cd .. -if errorlevel 1 goto error +if errorlevel 1 echo make compilation failed +if errorlevel 1 exit -1 echo Build complete success. @@ -37,14 +38,13 @@ rem Generate human-readable version of the .map memory usage report java -jar ../../java_tools/gcc_map_reader.jar > ../rusefi_ram_report.txt cd .. +echo Looking at size arm-none-eabi-size --format=berkeley "build\rusefi.elf" +echo Compiler version arm-none-eabi-gcc -v -rem file, let's program the board right away +echo Have the file, let's program the board right away call flash_openocd -goto end_of_file -:error -echo Compilation failed +echo Done flashing -:end_of_file diff --git a/misc/hw_test.bat b/misc/hw_test.bat index 007e4b9f2c..3b145ea1c7 100644 --- a/misc/hw_test.bat +++ b/misc/hw_test.bat @@ -4,7 +4,7 @@ cd ../firmware call flash_erase echo Compiling firmware pwd -call compile.bat +call compile_and_program.bat if not exist build/rusefi.bin echo FAILED TO COMPILE if not exist build/rusefi.bin exit -1