<projectSpec>
  <project
        name                  = "ethercat_cpu1_echoback_solution"
        device       = "F29H850TU9"
        
        cgtVersion   = "2.0.0"
        toolChain    = "TICLANG"

        products              = "sysconfig;f29h85x-sdk"
        launchWizard          = "False"
        enableSysConfigTool   = "False"
        connection            = "TIXDS110_Connection.xml"
        >

    <configuration name="RAM" compilerBuildOptions="-O1 -g -DDEBUG -DETHERCAT_STACK -DRAM -DCPU1 -I${EXAMPLE_ROOT}" linkerBuildOptions="--define=RAM --entry_point code_start --stack_size=0x400 --heap_size=0x400 --rom_model"
    postBuildStep=
     "
        
        ${CG_TOOL_OBJCOPY} -O binary ${ProjName}.out ${ProjName}.bin;

        
        ;$(call IF_EQUAL_OPEN, ${DUMMY_CERT}, 0) $(PYTHON) ${COM_TI_MCU_SDK_INSTALL_DIR}/tools/boot/signing/mcu_rom_image_gen.py --image-bin ${ProjName}.bin --core C29 --swrv 1 --loadaddr 0x200E1000 --sign-key ${COM_TI_MCU_SDK_INSTALL_DIR}/tools/boot/signing/mcu_gpkey.pem --out-image ${ProjName}_cert.bin --device f29h85x --boot RAM --img_integ no $(IF_EQUAL_CLOSE);


        
        ;$(call IF_EQUAL_OPEN, ${DUMMY_CERT}, 1) ${COM_TI_MCU_SDK_INSTALL_DIR}/tools/misc/$(UPDATEDUMMYCERT) $(DUMMY_CERT_RAM) ${ProjName}.bin $(IF_EQUAL_CLOSE);
        ;$(call IF_EQUAL_OPEN, ${DUMMY_CERT}, 1) $(CONCAT) $(DUMMY_CERT_RAM) ${ProjName}.bin > ${ProjName}_cert.bin $(IF_EQUAL_CLOSE);


     "
    />
    <buildVariable name="DUMMY_CERT" value="1" scope="project" />

    <file action="link" path="${COM_TI_MCU_SDK_INSTALL_DIR}/examples/device_support/source/codestartbranch.asm"     targetDirectory="device" />
    <file action="copy" path="${COM_TI_MCU_SDK_INSTALL_DIR}/examples/device_support/source/device.c"                targetDirectory="device" />
    <file action="copy" path="${COM_TI_MCU_SDK_INSTALL_DIR}/examples/device_support/include/device.h"               targetDirectory="device" />
    <file action="link" path="${COM_TI_MCU_SDK_INSTALL_DIR}/examples/device_support/include/driverlib.h"            targetDirectory="device" />
    <file action="copy" path="${COM_TI_MCU_SDK_INSTALL_DIR}/examples/device_support/makefile.defs"                  targetDirectory="" />
    <file action="copy" path="${COM_TI_MCU_SDK_INSTALL_DIR}/source/dummycert/dummy_cert_crypto_unlock_ram.cert"     targetDirectory="" />
    <file action="link" path="${COM_TI_MCU_SDK_INSTALL_DIR}/source/driverlib/ccs/driverlib.lib"                     targetDirectory="" />
    <file action="copy" path="${COM_TI_MCU_SDK_INSTALL_DIR}/source/driverlib"                                       targetDirectory="device" excludeFromBuild="True" />

    <file action="copy" path="${COM_TI_MCU_SDK_GENERIC_LNK_CMD_RAM}"    targetDirectory="" applicableConfigurations="RAM" />

    <pathVariable name="EXAMPLE_ROOT"       path="../"                                              scope="project" />
	<pathVariable name="ETHERCAT_SOURCE"    path="../../../../../../source/communication/Ethercat"  scope="project" />

    <file action="copy" path="EXAMPLE_ROOT" targetDirectory="" />
    <file action="copy" path="${COM_TI_MCU_SDK_INSTALL_DIR}/source/communication/Ethercat/source/ethercat_subdevice_cpu1_hal.c"     targetDirectory="" />
    <file action="copy" path="${COM_TI_MCU_SDK_INSTALL_DIR}/source/communication/Ethercat/include/ethercat_subdevice_cpu1_hal.h"    targetDirectory="" />
  </project>
</projectSpec>
