This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TMS570LC4357: loadti freezes after reaching waitForHaltIfPropertySet

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Tool/software: TI C/C++ Compiler

I'm developing a target file to support code generation workflow with MATLAB Embedded Coder as it's described in https://www.mathworks.com/help/releases/R2017a/supportpkg/armcortexr/develop-a-target.html. I created *.hcg, *.dil and *.ccxml files for my hardware in HalCoGen and CCSv9 respectively. Then, in MATLAB functions which run just after C-code generation for my Simulink model I call HALCOGEN to generate hardware-specific source code and armcl utility to compile and link it all into an executable *.out. Finally, I call the loadti utility to load the executable on hardware.

Unfortunately, during the load process, I get the following problem 

=== Build (null) ===
    ### Starting build procedure for model: test
    ### Generating code into build folder: C:\Users\Witch\MATLAB\test_ert_rtw
    ### Generated code for 'test' is up to date because no structural, parameter or code replacement library changes were found.
    ### Evaluating PostCodeGenCommand specified in the model
    ### Using toolchain: TI ARM Code Generation Tools v5.2.x | gmake (64-bit Windows)
    ### 'C:\Users\Witch\MATLAB\test_ert_rtw\test.mk' is up to date
    ### Building 'test': "C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake"  -f test.mk all
     
    C:\Users\Witch\MATLAB\test_ert_rtw>cd .  
     
    C:\Users\Witch\MATLAB\test_ert_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake"  -f test.mk all )  else ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake"  -f test.mk  )
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/include" --preproc_with_compile --preproc_dependency="HL_can.pp" --obj_directory="./" -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225  -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -DRT -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Witch/MATLAB -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/Witch/MATLAB/test_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/Users/Witch/MATLAB/test_ert_rtw/include --output_file=HL_can.obj C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_can.c
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/include" --preproc_with_compile --preproc_dependency="HL_epc.pp" --obj_directory="./" -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225  -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -DRT -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Witch/MATLAB -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/Witch/MATLAB/test_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/Users/Witch/MATLAB/test_ert_rtw/include --output_file=HL_epc.obj C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_epc.c
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/include" --preproc_with_compile --preproc_dependency="HL_errata.pp" --obj_directory="./" -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225  -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -DRT -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Witch/MATLAB -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/Witch/MATLAB/test_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/Users/Witch/MATLAB/test_ert_rtw/include --output_file=HL_errata.obj C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_errata.c
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/include" --preproc_with_compile --preproc_dependency="HL_errata_SSWF021_45.pp" --obj_directory="./" -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225  -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -DRT -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Witch/MATLAB -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/Witch/MATLAB/test_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/Users/Witch/MATLAB/test_ert_rtw/include --output_file=HL_errata_SSWF021_45.obj C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_errata_SSWF021_45.c
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/include" --preproc_with_compile --preproc_dependency="HL_esm.pp" --obj_directory="./" -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225  -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -DRT -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Witch/MATLAB -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/Witch/MATLAB/test_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/Users/Witch/MATLAB/test_ert_rtw/include --output_file=HL_esm.obj C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_esm.c
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/include" --preproc_with_compile --preproc_dependency="HL_gio.pp" --obj_directory="./" -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225  -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -DRT -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Witch/MATLAB -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/Witch/MATLAB/test_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/Users/Witch/MATLAB/test_ert_rtw/include --output_file=HL_gio.obj C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_gio.c
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/include" --preproc_with_compile --preproc_dependency="HL_nmpu.pp" --obj_directory="./" -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225  -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -DRT -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Witch/MATLAB -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/Witch/MATLAB/test_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/Users/Witch/MATLAB/test_ert_rtw/include --output_file=HL_nmpu.obj C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_nmpu.c
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/include" --preproc_with_compile --preproc_dependency="HL_notification.pp" --obj_directory="./" -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225  -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -DRT -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Witch/MATLAB -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/Witch/MATLAB/test_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/Users/Witch/MATLAB/test_ert_rtw/include --output_file=HL_notification.obj C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_notification.c
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/include" --preproc_with_compile --preproc_dependency="HL_pinmux.pp" --obj_directory="./" -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225  -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -DRT -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Witch/MATLAB -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/Witch/MATLAB/test_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/Users/Witch/MATLAB/test_ert_rtw/include --output_file=HL_pinmux.obj C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_pinmux.c
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/include" --preproc_with_compile --preproc_dependency="HL_sci.pp" --obj_directory="./" -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225  -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -DRT -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Witch/MATLAB -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/Witch/MATLAB/test_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/Users/Witch/MATLAB/test_ert_rtw/include --output_file=HL_sci.obj C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_sci.c
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/include" --preproc_with_compile --preproc_dependency="HL_sys_dma.pp" --obj_directory="./" -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225  -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -DRT -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Witch/MATLAB -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/Witch/MATLAB/test_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/Users/Witch/MATLAB/test_ert_rtw/include --output_file=HL_sys_dma.obj C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_sys_dma.c
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/include" --preproc_with_compile --preproc_dependency="HL_sys_pcr.pp" --obj_directory="./" -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225  -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -DRT -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Witch/MATLAB -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/Witch/MATLAB/test_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/Users/Witch/MATLAB/test_ert_rtw/include --output_file=HL_sys_pcr.obj C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_sys_pcr.c
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/include" --preproc_with_compile --preproc_dependency="HL_sys_phantom.pp" --obj_directory="./" -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225  -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -DRT -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Witch/MATLAB -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/Witch/MATLAB/test_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/Users/Witch/MATLAB/test_ert_rtw/include --output_file=HL_sys_phantom.obj C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_sys_phantom.c
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/include" --preproc_with_compile --preproc_dependency="HL_sys_pmm.pp" --obj_directory="./" -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225  -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -DRT -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Witch/MATLAB -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/Witch/MATLAB/test_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/Users/Witch/MATLAB/test_ert_rtw/include --output_file=HL_sys_pmm.obj C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_sys_pmm.c
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/include" --preproc_with_compile --preproc_dependency="HL_sys_startup.pp" --obj_directory="./" -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225  -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -DRT -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Witch/MATLAB -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/Witch/MATLAB/test_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/Users/Witch/MATLAB/test_ert_rtw/include --output_file=HL_sys_startup.obj C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_sys_startup.c
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/include" --preproc_with_compile --preproc_dependency="HL_sys_vim.pp" --obj_directory="./" -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225  -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -DRT -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Witch/MATLAB -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/Witch/MATLAB/test_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/Users/Witch/MATLAB/test_ert_rtw/include --output_file=HL_sys_vim.obj C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_sys_vim.c
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/include" --preproc_with_compile --preproc_dependency="HL_system.pp" --obj_directory="./" -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225  -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DSTACK_SIZE=64 -DRT -DMODEL=test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Witch/MATLAB -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/Witch/MATLAB/test_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/Users/Witch/MATLAB/test_ert_rtw/include --output_file=HL_system.obj C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_system.c
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl -s -ml -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225 C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_sys_core.asm
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl -s -ml -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225 C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_sys_intvecs.asm
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl -s -ml -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225 C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_sys_mpu.asm
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl -s -ml -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --enum_type=packed --diag_wrap=off --display_error_number --diag_warning=225 C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_sys_pmu.asm
    "### Creating standalone executable "../test.out" ..."
    C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/bin/armcl --run_linker --rom_model --search_path=C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.LTS/lib -mv7R5 -m"test.map" --warn_sections --reread_libs --diag_wrap=off --display_error_number --diag_warning=225 --xml_link_info="test_linkInfo.xml" --rom_model --heap_size=0x800 --stack_size=0x800  --output_file=../test.out test.obj test_data.obj HL_can.obj HL_epc.obj HL_errata.obj HL_errata_SSWF021_45.obj HL_esm.obj HL_gio.obj HL_nmpu.obj HL_notification.obj HL_pinmux.obj HL_sci.obj HL_sys_dma.obj HL_sys_pcr.obj HL_sys_phantom.obj HL_sys_pmm.obj HL_sys_startup.obj HL_sys_vim.obj HL_system.obj HL_sys_core.obj HL_sys_intvecs.obj HL_sys_mpu.obj HL_sys_pmu.obj ert_main.obj C:/ti/ccs901/ccs/tools/compiler/ti-cgt-arm_18.12.1.LTS/lib/rtsv7R4_T_be_v3D16_eabi.lib C:/Users/Witch/MATLAB/test_ert_rtw/source/HL_sys_link.cmd
    <Linking>
    "### Created: ../test.out" 
    "### Successfully generated all binary outputs."
     
    C:\Users\Witch\MATLAB\test_ert_rtw>exit /B 0
    Erasing necessary sections of flash before loading.
    Launcher command string: "C:\ProgramData\MATLAB\SupportPackages\R2017a\toolbox\target\shared\ti_arm_toolchain\loader\loadti"
    Launcher command arguments: C:\ti\ccs901\ccs\ccs_base\DebugServer "C:\ProgramData\MATLAB\SupportPackages\R2017a\toolbox\target\shared\ti_arm_toolchain\loader" -r -a -v -c "C:\Users\Witch\MATLAB\titms570lc43target\src\TMS570LC43xx.ccxml" -x "test_loadti_log.xml" "C:\Users\Witch\MATLAB\test.out"
    ***** DSS Generic Loader *****
    
    START: 22:42:58 GMT+0300 (MSK)
    
    Configuring Debug Server for specified target...
    getServer: ENTRY sServerName: DebugServer.1
    getServer: Getting definition for: DebugServer.1
    getServer: Constructing server
    getServer: RETURN com.ti.debug.engine.scripting.DebugServer@136432db
    setConfig: ENTRY sConfigurationFile: C:\Users\Witch\MATLAB\titms570lc43target\src\TMS570LC43xx.ccxml
    setConfig: RETURN
    Done
    debuggerOpen: ENTRY sBoardName: * sCPUName: *
    start: ENTRY
    start: Firing: onServerStarting()
    start: Connecting to XPCOM DebugServer
    start: Initializing DebugServer using specified configuration: "C:\Users\Witch\MATLAB\titms570lc43target\src\TMS570LC43xx.ccxml"
    waitUntil: ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@7a79be86 timeout: infinite
    <init>: CPU Name: CortexR5
    <init>: PartNum: TMS570LC43xx
    <init>: Family: 470
    <init>: SubFamily/MajorISA: d
    <init>: Revision/MinorISA: 0
    <init>: Platform: EMULATOR
    <init>: Processor ID: 1971336192
    <init>: DBName: ArmAdvancedFeatures
    <init>: CPU Name: IcePick
    <init>: PartNum: TMS570LC43xx
    <init>: Family: 240
    <init>: SubFamily/MajorISA: 2
    <init>: Revision/MinorISA: 0
    <init>: Platform: NONE
    <init>: Processor ID: 1006635013
    <init>: CPU Name: Dap
    <init>: PartNum: TMS570LC43xx
    <init>: Family: 224
    <init>: SubFamily/MajorISA: 1
    <init>: Revision/MinorISA: 0
    <init>: Platform: NONE
    <init>: Processor ID: 939525125
    waitUntil: RETURN com.ti.ccstudio.scripting.environment.ScriptingEnvironment@7a79be86
    start: Firing: onServerStarted()
    start: Searching for devices
    listDevices: ENTRY
    listDevices: Found debuggable device: Texas Instruments XDS110 USB Debug Probe/CortexR5
    listDevices: Found non-debuggable device: Texas Instruments XDS110 USB Debug Probe/IcePick
    listDevices: Found non-debuggable device: Texas Instruments XDS110 USB Debug Probe/Dap
    listDevices: RETURN
    start: RETURN
    debuggerOpen: RETURN Texas Instruments XDS110 USB Debug Probe/CortexR5
    setString: ENTRY ID: FileIODefaultDirectory Value: undefined
    setString: RETURN
    TARGET: Texas Instruments XDS110 USB Debug Probe
    Connecting to target...
    connect: ENTRY
    isConnected: ENTRY
    isConnected: Target is not connected
    isConnected: RETURN false
    connect: Requesting target connect
    waitUntil: ENTRY timeout: infinite
    CortexR5: GEL Output: 	Memory Map Setup for Flash @ Address 0x0
    log: Target is now connected
    waitUntil: RETURN
    isConnected: ENTRY
    isConnected: Target is connected
    isConnected: RETURN true
    connect: RETURN
    Resetting target...
    reset: ENTRY
    reset: Requesting target reset
    waitUntil: ENTRY timeout: infinite
    waitUntil: RETURN
    reset: Target reset
    getBoolean: ENTRY ID: AutoRunToLabelOnReset
    getBoolean: RETURN false
    reset: RETURN
    testEnv.outFiles: C:\Users\Witch\MATLAB\test.out 
    Loading C:\Users\Witch\MATLAB\test.out
    setString: ENTRY ID: FlashEraseSelection Value: Necessary Sectors Only (for Program Load)
    setString: RETURN
    loadProgram: ENTRY sFileName: C:\Users\Witch\MATLAB\test.out
    load: Requesting program load
    waitUntil: ENTRY timeout: infinite
    CortexR5: GEL Output: 	Memory Map Setup for Flash @ Address 0x0 due to System Reset
    CortexR5: GEL Output: 	Memory Map Setup for Flash @ Address 0x0 due to System Reset
    waitUntil: RETURN
    load: Program load successful
    getBoolean: ENTRY ID: AutoRunToLabelOnRestart
    getBoolean: RETURN true
    waitForHaltIfPropertySet: Waiting for halt
    waitUntil: ENTRY timeout: infinite

So it's clear that the program itself is successfully loaded on target however it cannot reach the entry-point function – main.

Please help me to resolve this issue.

  • If you load your program via CCS, does it reach 'main'?
  • Thank you for your response!

    I have created a blank project in CCS and filled it with my *.h, *.c, *.asm, *.map and *.mk files. After I build, load and run it in CCS it indeed reaches the main function.

    Here is the screenshot.

  • I'd like to correct myself, it seems that even though I've put my make-files CCS still generates its own and successfully reaches main during debug.

    It can be seen here

    My files are test.mk and codertarget_assembly_flags.mk. The rest appeared after I've clicked the Debug button.

  • Can you take the *.out file generated from the CCS project and try to load it with loadti?
  • I've loaded the *.out file from CCS with loadti utility as you suggested. In this case, the program doesn't freeze and successfully runs till its completion.

    Here's the log from windows shell:

    C:\Users\Witch>cd C:\Users\Witch\workspace_v9\test\Debug
    
    C:\Users\Witch\workspace_v9\test\Debug>C:\ti\ccs901\ccs\ccs_base\scripting\examples\loadti\loadti -r -a -v -c "C:\Users\Witch\workspace_v9\test\targetConfigs\TMS570LC43xx.ccxml" -x "test_loadti_log.xml" C:\Users\Witch\workspace_v9\test\Debug\test.out
    
    ***** DSS Generic Loader *****
    
    START: 12:01:08 GMT+0300 (MSK)
    
    Configuring Debug Server for specified target...
    getServer: ENTRY sServerName: DebugServer.1
    getServer: Getting definition for: DebugServer.1
    getServer: Constructing server
    getServer: RETURN com.ti.debug.engine.scripting.DebugServer@2e5c649
    setConfig: ENTRY sConfigurationFile: C:\Users\Witch\workspace_v9\test\targetConfigs\TMS570LC43xx.ccxml
    setConfig: RETURN
    Done
    debuggerOpen: ENTRY sBoardName: * sCPUName: *
    start: ENTRY
    start: Firing: onServerStarting()
    start: Connecting to XPCOM DebugServer
    start: Initializing DebugServer using specified configuration: "C:\Users\Witch\workspace_v9\test\targetConfigs\TMS570LC43xx.ccxml"
    waitUntil: ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@6e8dacdf timeout: infinite
    <init>: CPU Name: CortexR5
    <init>: PartNum: TMS570LC43xx
    <init>: Family: 470
    <init>: SubFamily/MajorISA: d
    <init>: Revision/MinorISA: 0
    <init>: Platform: EMULATOR
    <init>: Processor ID: 1971336192
    <init>: DBName: ArmAdvancedFeatures
    <init>: CPU Name: IcePick
    <init>: PartNum: TMS570LC43xx
    <init>: Family: 240
    <init>: SubFamily/MajorISA: 2
    <init>: Revision/MinorISA: 0
    <init>: Platform: NONE
    <init>: Processor ID: 1006635013
    <init>: CPU Name: Dap
    <init>: PartNum: TMS570LC43xx
    <init>: Family: 224
    <init>: SubFamily/MajorISA: 1
    <init>: Revision/MinorISA: 0
    <init>: Platform: NONE
    <init>: Processor ID: 939525125
    waitUntil: RETURN com.ti.ccstudio.scripting.environment.ScriptingEnvironment@6e8dacdf
    start: Firing: onServerStarted()
    start: Searching for devices
    listDevices: ENTRY
    listDevices: Found debuggable device: Texas Instruments XDS110 USB Debug Probe/CortexR5
    listDevices: Found non-debuggable device: Texas Instruments XDS110 USB Debug Probe/IcePick
    listDevices: Found non-debuggable device: Texas Instruments XDS110 USB Debug Probe/Dap
    listDevices: RETURN
    start: RETURN
    debuggerOpen: RETURN Texas Instruments XDS110 USB Debug Probe/CortexR5
    setString: ENTRY ID: FileIODefaultDirectory Value: undefined
    setString: RETURN
    TARGET: Texas Instruments XDS110 USB Debug Probe
    Connecting to target...
    connect: ENTRY
    isConnected: ENTRY
    isConnected: Target is not connected
    isConnected: RETURN false
    connect: Requesting target connect
    waitUntil: ENTRY timeout: infinite
    CortexR5: GEL Output:   Memory Map Setup for Flash @ Address 0x0
    log: Target is now connected
    waitUntil: RETURN
    isConnected: ENTRY
    isConnected: Target is connected
    isConnected: RETURN true
    connect: RETURN
    Resetting target...
    reset: ENTRY
    reset: Requesting target reset
    waitUntil: ENTRY timeout: infinite
    waitUntil: RETURN
    reset: Target reset
    getBoolean: ENTRY ID: AutoRunToLabelOnReset
    getBoolean: RETURN false
    reset: RETURN
    testEnv.outFiles: C:\Users\Witch\workspace_v9\test\Debug\test.out
    Loading C:\Users\Witch\workspace_v9\test\Debug\test.out
    loadProgram: ENTRY sFileName: C:\Users\Witch\workspace_v9\test\Debug\test.out
    load: Requesting program load
    waitUntil: ENTRY timeout: infinite
    CortexR5: GEL Output:   Memory Map Setup for Flash @ Address 0x0 due to System Reset
    
    CortexR5: GEL Output:   Memory Map Setup for Flash @ Address 0x0 due to System Reset
    
    waitUntil: RETURN
    load: Program load successful
    getBoolean: ENTRY ID: AutoRunToLabelOnRestart
    getBoolean: RETURN true
    waitForHaltIfPropertySet: Waiting for halt
    waitUntil: ENTRY timeout: infinite
    log: Target has halted at 0x00003CC8
    waitUntil: RETURN
    loadProgram: RETURN
    Done
    Target running...
    setScriptTimeout: ENTRY nTimeout: -1
    setScriptTimeout: Timeout is infinite
    setScriptTimeout: RETURN
    exists: ENTRY sSymbol: C$$EXIT
    exists: Getting symbol package
    exists: Looking-up symbol
    exists: Symbol "C$$EXIT" exists
    exists: RETURN true
    evaluate: ENTRY sExpression: PC == C$$EXIT
    eval: Requesting evaluation of expression: "PC == C$$EXIT"
    isConnected: ENTRY
    isConnected: Target is connected
    isConnected: RETURN true
    isHalted: ENTRY
    isHalted: Target is halted
    isHalted: RETURN true
    waitUntil: ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@6e8dacdf timeout: infinite
    waitUntil: RETURN com.ti.ccstudio.scripting.environment.ScriptingEnvironment@6e8dacdf
    waitUntil: ENTRY timeout: infinite
    onEvent: Evaluated expression: PC == C$$EXIT
    waitUntil: RETURN
    evaluate: RETURN 0x0
    exists: ENTRY sSymbol: C$$EXITE
    exists: Getting symbol package
    exists: Looking-up symbol
    exists: RETURN false
    exists: ENTRY sSymbol: abort
    exists: Getting symbol package
    exists: Looking-up symbol
    exists: Symbol "abort" exists
    exists: RETURN true
    evaluate: ENTRY sExpression: PC == abort
    eval: Requesting evaluation of expression: "PC == abort"
    isConnected: ENTRY
    isConnected: Target is connected
    isConnected: RETURN true
    isHalted: ENTRY
    isHalted: Target is halted
    isHalted: RETURN true
    waitUntil: ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@6e8dacdf timeout: infinite
    waitUntil: RETURN com.ti.ccstudio.scripting.environment.ScriptingEnvironment@6e8dacdf
    waitUntil: ENTRY timeout: infinite
    onEvent: Evaluated expression: PC == abort
    waitUntil: RETURN
    evaluate: RETURN 0x0
    runAsynch: ENTRY
    runAsynch: Requesting target run
    waitUntil: ENTRY timeout: infinite
    log: Target is now running
    waitUntil: RETURN
    runAsynch: RETURN
    setScriptTimeout: ENTRY nTimeout: -1
    setScriptTimeout: Timeout is infinite
    setScriptTimeout: RETURN
    terminate: ENTRY
    terminate: Firing: onSessionTerminating()
    terminate: Unregistering this session from the DebugServer
    terminate: Firing: onSessionTerminated()
    disposeAndUnload: Firing: onServerStopping()
    disposeAndUnload: Stopping DebugServer
    waitUntil: ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@6e8dacdf timeout: infinite
    terminate: ENTRY
    terminate: RETURN
    terminate: ENTRY
    terminate: RETURN
    terminate: ENTRY
    terminate: RETURN
    waitUntil: RETURN com.ti.ccstudio.scripting.environment.ScriptingEnvironment@6e8dacdf
    disposeAndUnload: Firing: onServerStopped()
    terminate: RETURN
    stop: ENTRY
    stop: RETURN
    
    END: 12:02:27 GMT+0300 (MSK)
    traceEnd: ENTRY
    traceEnd: Flushing and closing file stream
    traceEnd: Removing handler java.util.logging.FileHandler@6d4b1c02
    traceEnd: RETURN
    
    C:\Users\Witch\workspace_v9\test\Debug>

  • Vasily Volkov said:
    I've loaded the *.out file from CCS with loadti utility as you suggested. In this case, the program doesn't freeze and successfully runs till its completion

    Thanks. It looks like the issue does not lie with loadti/debugger but with your generated *.out file when you build outside the CCS environment. You need to check that environment and make sure it is being built correctly (carefully check the build options being passed to the compiler/linker in both environments). 

    Thanks

    ki

  • Yes, I came to the same conclusions after I've done all the tests you've offered. It seems that after a thorough compartment of compiler/linker flags used in MATLAB and CCS I have found out where the problem lied. The issue was in that I haven't used "--be32" linker flag.

    Thank you very much for your help!