rm commands.tmp
echo 'options ASSEMBLER_CMD armcl -mv7R4 --code_state=32 --float_support=VFPv3D16 --abi=eabi -me -i$(VCAST_CCS_INSTALL_DIR)/tools/compiler/ti-cgt-arm_18.12.2.LTS/include' >> commands.tmp
echo 'options C_COMPILER_CFG_SOURCE PY_CONFIGURATOR' >> commands.tmp
echo 'options C_COMPILER_FAMILY_NAME Code_Composer_Studio' >> commands.tmp
echo 'options C_COMPILER_HIERARCHY_STRING *Custom RSPs_Code Composer Studio v6_ARM RM48L540_C' >> commands.tmp
echo 'options C_COMPILER_PY_ARGS --version 6.x --ccxmlFile $(VECTORCAST_DIR)/DATA/code_composer/arm/tisim_rm48x.ccxml --lang c --version 6.x --target tgt --cpu-family rm64 --cpu-part RM64 --io stdout' >> commands.tmp
echo 'options C_COMPILER_TAG TI_CCS_v6_ARM_RM48L540_C' >> commands.tmp
echo 'options C_COMPILER_VERSION_CMD armcl -version' >> commands.tmp
echo 'options C_COMPILE_CMD armcl -c -g  -mv7R4 --code_state=32 --float_support=VFPv3D16 --abi=eabi -me  --enum_type=packed' >> commands.tmp
echo 'options C_COMPILE_CMD_FLAG -c' >> commands.tmp
echo 'options C_COMPILE_EXCLUDE_FLAGS -o**' >> commands.tmp
echo 'options C_DEBUG_CMD $(VCAST_CCS_INSTALL_DIR)/eclipse/eclipse' >> commands.tmp
echo 'options C_DEBUG_HELP_FILE $(VECTORCAST_DIR)/Compilers/Code_Composer_Studio/DebugHelp.txt' >> commands.tmp
echo 'options C_DEFINE_FLAG --define=' >> commands.tmp
echo 'options C_DEFINE_LIST __cregister= near= far=' >> commands.tmp
echo 'options C_EDG_FLAGS -w --c --code_composer' >> commands.tmp
echo 'options C_EXECUTE_CMD $(VCAST_SUPPORT_FILES)/loadti.sh -t 40000 --no-profile -r -c RM46L852.ccxml' >> commands.tmp
echo 'options C_INCLUDE_FLAG --include_path=' >> commands.tmp
echo 'options C_LINKER_VERSION_CMD armcl -version' >> commands.tmp
echo 'options C_LINK_CMD armcl -g -z -x --heap=0x900 --stack=0x1000 -m vcast.map --rom_model --issue_remarks  -i"$(VCAST_CCS_INSTALL_DIR)/tools/compiler/ti-cgt-arm_18.12.2.LTS/lib" -i"$(VCAST_CCS_INSTALL_DIR)/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --reread_libs --warn_sections' >> commands.tmp
echo 'options C_LINK_OPTIONS sys_link.cmd -l"rtsv7R4_T_le_v3D16_eabi.lib"' >> commands.tmp
echo 'options C_OBJECT_EXT .obj' >> commands.tmp
echo 'options C_PREPROCESS_CMD armcl -ppl -ppc  -mv7R4 --code_state=32 --float_support=VFPv3D16 --abi=eabi -me  --enum_type=packed' >> commands.tmp
echo 'options C_PREPROCESS_FILE ?.pp' >> commands.tmp
echo 'options EXECUTABLE_EXTENSION .out' >> commands.tmp
echo 'options SBF_LOC_MEMBER_IN_NSP DECL_NAMESPACE' >> commands.tmp
echo 'options SBF_LOC_MEMBER_OUTSIDE_NSP DECL_NAMESPACE' >> commands.tmp
echo 'options SBF_LOC_NONMEMBER_IN_NSP DECL_NAMESPACE' >> commands.tmp
echo 'options SBF_LOC_NONMEMBER_OUTSIDE_NSP DECL_NAMESPACE' >> commands.tmp
echo 'options SUBSTITUTE_CODE_FOR_C_FILE FALSE' >> commands.tmp
echo 'options VCAST_ASSEMBLY_FILE_EXTENSIONS asm' >> commands.tmp
echo 'options VCAST_AUTO_CLEAR_TEST_USER_CODE FALSE' >> commands.tmp
echo 'options VCAST_COLLAPSE_STD_HEADERS COLLAPSE_NON_SEARCH_HEADERS' >> commands.tmp
echo 'options VCAST_COMMAND_LINE_DEBUGGER FALSE' >> commands.tmp
echo 'options VCAST_COMPILER_SUPPORTS_CPP_CASTS FALSE' >> commands.tmp
echo 'options VCAST_COVERAGE_FOR_AGGREGATE_INIT FALSE' >> commands.tmp
echo 'options VCAST_DISABLE_CPP_EXCEPTIONS TRUE' >> commands.tmp
echo 'options VCAST_DISABLE_STD_CONTAINER_DETECTION TRUE' >> commands.tmp
echo 'options VCAST_DISABLE_STD_STRING_DETECTION TRUE' >> commands.tmp
echo 'options VCAST_DISABLE_STD_WSTRING_DETECTION TRUE' >> commands.tmp
echo 'options VCAST_DISPLAY_UNINST_EXPR FALSE' >> commands.tmp
echo 'options VCAST_ENABLE_FUNCTION_CALL_COVERAGE FALSE' >> commands.tmp
echo 'options VCAST_ENVIRONMENT_FILES $(VCAST_SUPPORT_FILES)/sys_link.cmd,$(VCAST_SUPPORT_FILES)/RM46L852.ccxml' >> commands.tmp
echo 'options VCAST_EXECUTE_WITH_STDOUT TRUE' >> commands.tmp
echo 'options VCAST_FORCE_ELAB_TYPE_SPEC TRUE' >> commands.tmp
echo 'options VCAST_HAS_LONGLONG TRUE' >> commands.tmp
echo 'options VCAST_INST_FILE_MAX_LINES 0' >> commands.tmp
echo 'options VCAST_MAX_HEAP_SIZE 10000' >> commands.tmp
echo 'options VCAST_MAX_STRING_LENGTH 127' >> commands.tmp
echo 'options VCAST_MICROSOFT_LONG_LONG FALSE' >> commands.tmp
echo 'options VCAST_NO_LONG_DOUBLE TRUE' >> commands.tmp
echo 'options VCAST_NO_MALLOC TRUE' >> commands.tmp
echo 'options VCAST_NO_STDIN TRUE' >> commands.tmp
echo 'options VCAST_REMOVE_PREPROCESSOR_COMMENTS FALSE' >> commands.tmp
echo 'options VCAST_RPTS_DEFAULT_FONT_FACE Arial(7)' >> commands.tmp
echo 'options VCAST_STDIO TRUE' >> commands.tmp
echo 'options VCAST_TORNADO_CONSTRUCTOR_CALL_FILE FALSE' >> commands.tmp
echo 'options VCAST_USE_STD_STRING FALSE' >> commands.tmp
echo 'options WHITEBOX YES' >> commands.tmp
echo 'clear_default_source_dirs ' >> commands.tmp
echo 'options LIBRARY_INCLUDE_DIR $(VCAST_CCS_INSTALL_DIR)/tools/compiler/ti-cgt-arm_18.12.2.LTS/include/' >> commands.tmp
echo 'options TESTABLE_SOURCE_DIR $(VCAST_SRC_DIR)/include/' >> commands.tmp
echo 'options TESTABLE_SOURCE_DIR $(VCAST_SRC_DIR)/source/' >> commands.tmp
echo 'options TESTABLE_SOURCE_DIR $(VCAST_SRC_DIR)/App/' >> commands.tmp
echo 'options TESTABLE_SOURCE_DIR $(VCAST_SRC_DIR)/App/Contollers/' >> commands.tmp
echo 'options TESTABLE_SOURCE_DIR $(VCAST_SRC_DIR)/App/Drivers/' >> commands.tmp
echo 'options TESTABLE_SOURCE_DIR $(VCAST_SRC_DIR)/App/Modes/' >> commands.tmp
echo 'options TESTABLE_SOURCE_DIR $(VCAST_SRC_DIR)/App/Tasks/' >> commands.tmp
echo 'set_startup_files $(VCAST_SRC_DIR)/source/dabort.asm,$(VCAST_SRC_DIR)/source/errata_SSWF021_45.c,$(VCAST_SRC_DIR)/source/esm.c,$(VCAST_SRC_DIR)/source/gio.c,$(VCAST_SRC_DIR)/source/het.c,$(VCAST_SRC_DIR)/source/notification.c,$(VCAST_SRC_DIR)/source/pinmux.c,$(VCAST_SRC_DIR)/source/sys_core.asm,$(VCAST_SRC_DIR)/source/sys_pmu.asm,$(VCAST_SRC_DIR)/source/sys_intvecs.asm,$(VCAST_SRC_DIR)/source/sys_mpu.asm,$(VCAST_SRC_DIR)/source/sys_pcr.c,$(VCAST_SRC_DIR)/source/sys_dma.c,$(VCAST_SRC_DIR)/source/sys_startup.c,$(VCAST_SRC_DIR)/source/sys_vim.c,$(VCAST_SRC_DIR)/source/system.c,$(VCAST_SRC_DIR)/source/sys_selftest.c,$(VCAST_SRC_DIR)/source/sys_pmm.c,$(VCAST_SRC_DIR)/source/sys_phantom.c,$(VCAST_SRC_DIR)/source/rti.c,$(VCAST_SUPPORT_FILES)/Task_Stubs.c' >> commands.tmp
echo 'environment build BUTTONS.env' >> commands.tmp
echo '-eBUTTONS tools script run BUTTONS.tst' >> commands.tmp
echo '-eBUTTONS execute batch' >> commands.tmp
echo '-eBUTTONS reports custom management BUTTONS_management_report.html' >> commands.tmp
$VECTORCAST_DIR/clicast  -lC tools execute commands.tmp false
