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.

[参考译文] 编译器/TMS570LC4357:loadti 在到达 waitForHaltIfPropertySet 后冻结

Guru**** 2568565 points
Other Parts Discussed in Thread: HALCOGEN

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/799821/compiler-tms570lc4357-loadti-freezes-after-reaching-waitforhaltifpropertyset

器件型号:TMS570LC4357
主题中讨论的其他器件:HALCOGEN

工具/软件:TI C/C++编译器

我正在开发一个目标文件、以支持使用 MATLAB Embedded Coder 进行代码生成工作流程、如 https://www.mathworks.com/help/releases/R2017a/supportpkg/armcortexr/develop-a-target.html 中所述。 我  分别在 HalCoGen 和 CCSv9中为我的硬件创建了*。HCG、*。DIL 和*。ccxml 文件。 然后、在 Simulink 模型生成 C 代码后立即运行的 MATLAB 函数中、我调用  HALCOGEN 来生成特定于硬件的源代码和 armcl 实用程序、以编译所有代码并将其链接到可执行的*。out 文件中。 最后、我调用  loadti 实用程序来在硬件上加载可执行文件。

遗憾的是、在加载过程中、我遇到了以下问题  

===生成(null)===
###正在启动模型的构建过程:测试
###在构建文件夹中生成代码:C:\Users\witch\MATLAB \test_ERT_RTW
###生成的'test'代码是最新的、因为未找到结构、参数或代码替换库更改。
###评估模型中指定的 PostCodeGenCommand
###使用工具链:TI ARM 代码生成工具 v5.2.x | gmake (64位 Windows)
###'C:\Users\witch\MATLAB \test_ERT_RTW\test.mk 是最新的
###生成'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>如果"="("C:\PROGRA~1\MATLAB~\bin\win64\gmake"-f test.mk)否则("C:\PROGRA 1\MATLAB \R2017a\win64\gmake"-f test.mk)
C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/include"--preproc_with_compile --preproc_ependence="HL_CAN.pp"--obj_directory="/"-mv7R5 --code_state=32 --float_support=VFP_hl_cand=-out-out_excl-/ud_id_-/vidag=v16-en_id_ab-out-out_id=vid_-out_idag_-vidag_-out-out_-out-out-out-out-out- DIAG_WARNING=225 -DMMODEL=TEST -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_EXCE_CODE=0 -DINTEGETR=0 -DCLESTE=0 -DMONESTE_ENTR=0 -DMTR_ENTR=0 -DMTR_DMTR_ENTR=0 -DMTREM_ENTR=0 -DMACT_DESTR=0 -DMTR_ENTR=0 -DMTR_ENTR=0 -DMTR=0 -DMTR_DMTR_DMTR_ENTR=0 -DMACT_DESDESD0 -DMTR=0 -DMTR=0 -DMTR_COUNT_TR_ENTR=0 -DMTR_DMTR=0 -DMTR_DMTR=0 -DMACT_DMTRIC=0 -DMACT_DMTR_DMTRIC=0 -DMACT_DESDESD0 -DMTR_ENTR=0 -DMTR_ENTR=0 /Users/Witch/MATLAB /Users/Witch/MATLAB/test_ert_rtw/source/HL_can.c /Users/Witch/MATLAB/test_ert_rtw/include~~~~~/Users/Witch/MATLAB/test_ert_rtw~-
C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/bin/armcl -compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/include"-preproc_with_compile -preproc_Dependency="hl_evc.pp"-obj_directory="/"-mv7R5 -code_state=32 -float_support=vp_sup相关性-"hl_ev_excl-/-obj_directory=-/-display_off-out-vid=-vabi-packed -ex-id_id_-/-vidag_abi-display-v16-en_id=vid_off-/ DIAG_WARNING=225 -DMMODEL=TEST -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_EXCE_CODE=0 -DINTEGETR=0 -DCLESTE=0 -DMONESTE_ENTR=0 -DMTR_ENTR=0 -DMTR_DMTR_ENTR=0 -DMTREM_ENTR=0 -DMACT_DESTR=0 -DMTR_ENTR=0 -DMTR_ENTR=0 -DMTR=0 -DMTR_DMTR_DMTR_ENTR=0 -DMACT_DESDESD0 -DMTR=0 -DMTR=0 -DMTR_COUNT_TR_ENTR=0 -DMTR_DMTR=0 -DMTR_DMTR=0 -DMACT_DMTRIC=0 -DMACT_DMTR_DMTRIC=0 -DMACT_DESDESD0 -DMTR_ENTR=0 -DMTR_ENTR=0 /Users/Witch/MATLAB /Users/Witch/MATLAB/test_ert_rtw/source/HL_epc.c /Users/Witch/MATLAB/test_ert_rtw/include~~~~~/Users/Witch/MATLAB/test_ert_rtw~-
C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/include"--preproc_with_compile --preproc_dependence="HL_errater.pP"--obj_directory="/"-mv7R5 --code_state=32 --float_support=VFP_errat=p-mp-/idat_en_off-/-mpid_-/-mpue_display-/vid=-vidag_id=-v16-en_off-id_id=aid_id_-v16-en_id=vidate-pack-/ DIAG_WARNING=225 -DMMODEL=TEST -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_EXCE_CODE=0 -DINTEGETR=0 -DCLESTE=0 -DMONESTE_ENTR=0 -DMTR_ENTR=0 -DMTR_DMTR_ENTR=0 -DMTREM_ENTR=0 -DMACT_DESTR=0 -DMTR_ENTR=0 -DMTR_ENTR=0 -DMTR=0 -DMTR_DMTR_DMTR_ENTR=0 -DMACT_DESDESD0 -DMTR=0 -DMTR=0 -DMTR_COUNT_TR_ENTR=0 -DMTR_DMTR=0 -DMTR_DMTR=0 -DMACT_DMTRIC=0 -DMACT_DMTR_DMTRIC=0 -DMACT_DESDESD0 -DMTR_ENTR=0 -DMTR_ENTR=0 /Users/Witch/MATLAB /Users/Witch/MATLAB/test_ert_rtw/source/HL_errata.c /Users/Witch/MATLAB/test_ert_rtw/include~~~~~/Users/Witch/MATLAB/test_ert_rtw~-
C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/include"--preproc_with_compile --preproc_dependence="HL_errata_SSWF021_45.pp"--obj_directory="/"-mv7R5 --code_state=32 --preproc_dependency="hl_sswF021_45.pp"---obj_directory=vid=vid_off-out-vid=vid=vid_support=vidat=-vidat=16 -vidat_off-vidat=vid_support=vidat DIAG_WARNING=225 -DMMODEL=TEST -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_EXCE_CODE=0 -DINTEGETR=0 -DCLESTE=0 -DMONESTE_ENTR=0 -DMTR_ENTR=0 -DMTR_DMTR_ENTR=0 -DMTREM_ENTR=0 -DMACT_DESTR=0 -DMTR_ENTR=0 -DMTR_ENTR=0 -DMTR=0 -DMTR_DMTR_DMTR_ENTR=0 -DMACT_DESDESD0 -DMTR=0 -DMTR=0 -DMTR_COUNT_TR_ENTR=0 -DMTR_DMTR=0 -DMTR_DMTR=0 -DMACT_DMTRIC=0 -DMACT_DMTR_DMTRIC=0 -DMACT_DESDESD0 -DMTR_ENTR=0 -DMTR_ENTR=0 /Users/Witch/MATLAB /Users/Witch/MATLAB/test_ert_rtw/source/HL_errata_SSWF021_45.c /Users/Witch/MATLAB/test_ert_rtw/include~~~~~/Users/Witch/MATLAB/test_ert_rtw~-
C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/include"--preproc_with_compile --preproc_dependence="HL_ESM.pp"--obj_directory="/"-mv7R5 --code_state=32 --float_support=VFP_support=hl_ecurity=-obj_directory=""---- v7ral-abi-display_off-out_id=vid=-out-out_id=vid=v-out-out-out_en_en_en_id=v-out-out-out DIAG_WARNING=225 -DMMODEL=TEST -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_EXCE_CODE=0 -DINTEGETR=0 -DCLESTE=0 -DMONESTE_ENTR=0 -DMTR_ENTR=0 -DMTR_DMTR_ENTR=0 -DMTREM_ENTR=0 -DMACT_DESTR=0 -DMTR_ENTR=0 -DMTR_ENTR=0 -DMTR=0 -DMTR_DMTR_DMTR_ENTR=0 -DMACT_DESDESD0 -DMTR=0 -DMTR=0 -DMTR_COUNT_TR_ENTR=0 -DMTR_DMTR=0 -DMTR_DMTR=0 -DMACT_DMTRIC=0 -DMACT_DMTR_DMTRIC=0 -DMACT_DESDESD0 -DMTR_ENTR=0 -DMTR_ENTR=0 /Users/Witch/MATLAB /Users/Witch/MATLAB/test_ert_rtw/source/HL_esm.c /Users/Witch/MATLAB/test_ert_rtw/include~~~~~/Users/Witch/MATLAB/test_ert_rtw~-
C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/bin/armcl -compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/include"-preproc_with_compile -preproc_Dependency="hl_gio.pp"-obj_directory="/"-mv7R5 -code_state=32 -float_support=vproc_support=hl_gio.pp"-obj_directory=-display-/vid_off-/vidag-/vidag_off-/vidag-/vidag_ab-/vid_off-/v/-/vidag_ab- DIAG_WARNING=225 -DMMODEL=TEST -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_EXCE_CODE=0 -DINTEGETR=0 -DCLESTE=0 -DMONESTE_ENTR=0 -DMTR_ENTR=0 -DMTR_DMTR_ENTR=0 -DMTREM_ENTR=0 -DMACT_DESTR=0 -DMTR_ENTR=0 -DMTR_ENTR=0 -DMTR=0 -DMTR_DMTR_DMTR_ENTR=0 -DMACT_DESDESD0 -DMTR=0 -DMTR=0 -DMTR_COUNT_TR_ENTR=0 -DMTR_DMTR=0 -DMTR_DMTR=0 -DMACT_DMTRIC=0 -DMACT_DMTR_DMTRIC=0 -DMACT_DESDESD0 -DMTR_ENTR=0 -DMTR_ENTR=0 /Users/Witch/MATLAB /Users/Witch/MATLAB/test_ert_rtw/source/HL_gio.c /Users/Witch/MATLAB/test_ert_rtw/include~~~~~/Users/Witch/MATLAB/test_ert_rtw~-
C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/bin/armcl -compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/include"-preproc_with_compile -preproc_dependence="hl_nmpu.pP"-obj_directory="/"-mv7R5 -code_state=32 --float_support=vabi_support=vidp16 -wrap_display-vabi_number=vid_off-vidag-vidag-vid_off-vid_-vidag-vidag_off -vidag_ab-v16-bi-display-vid_off- DIAG_WARNING=225 -DMMODEL=TEST -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_EXCE_CODE=0 -DINTEGETR=0 -DCLESTE=0 -DMONESTE_ENTR=0 -DMTR_ENTR=0 -DMTR_DMTR_ENTR=0 -DMTREM_ENTR=0 -DMACT_DESTR=0 -DMTR_ENTR=0 -DMTR_ENTR=0 -DMTR=0 -DMTR_DMTR_DMTR_ENTR=0 -DMACT_DESDESD0 -DMTR=0 -DMTR=0 -DMTR_COUNT_TR_ENTR=0 -DMTR_DMTR=0 -DMTR_DMTR=0 -DMACT_DMTRIC=0 -DMACT_DMTR_DMTRIC=0 -DMACT_DESDESD0 -DMTR_ENTR=0 -DMTR_ENTR=0 /Users/Witch/MATLAB /Users/Witch/MATLAB/test_ert_rtw/source/HL_nmpu.c /Users/Witch/MATLAB/test_ert_rtw/include~~~~~/Users/Witch/MATLAB/test_ert_rtw~-
C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/include"--preproc_with_compile --preproc_ependence="HL_notification.pP"--obj_directory="/"-mv7R5 --code_state=32 --float_support=VFP_notification=-obj_directory=""---obj_display_off-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-ud DIAG_WARNING=225 -DMMODEL=TEST -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_EXCE_CODE=0 -DINTEGETR=0 -DCLESTE=0 -DMONESTE_ENTR=0 -DMTR_ENTR=0 -DMTR_DMTR_ENTR=0 -DMTREM_ENTR=0 -DMACT_DESTR=0 -DMTR_ENTR=0 -DMTR_ENTR=0 -DMTR=0 -DMTR_DMTR_DMTR_ENTR=0 -DMACT_DESDESD0 -DMTR=0 -DMTR=0 -DMTR_COUNT_TR_ENTR=0 -DMTR_DMTR=0 -DMTR_DMTR=0 -DMACT_DMTRIC=0 -DMACT_DMTR_DMTRIC=0 -DMACT_DESDESD0 -DMTR_ENTR=0 -DMTR_ENTR=0 /Users/Witch/MATLAB /Users/Witch/MATLAB/test_ert_rtw/source/HL_notification.c /Users/Witch/MATLAB/test_ert_rtw/include~~~~~/Users/Witch/MATLAB/test_ert_rtw~-
C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/bin/armcl -compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/include"-preproc_with_compile -preproc_dependence="hl_pinmux.ppp"-obj_directory="/"-mv7R5 -code_state=32 --float_support=vabi_pinmux-mpage=-display-/vidi=vidat_off-/vidag-/vidi=vidag_off-vidag-/vidag_ab-/vidag=v16-/vid_off-/vidag_ DIAG_WARNING=225 -DMMODEL=TEST -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_EXCE_CODE=0 -DINTEGETR=0 -DCLESTE=0 -DMONESTE_ENTR=0 -DMTR_ENTR=0 -DMTR_DMTR_ENTR=0 -DMTREM_ENTR=0 -DMACT_DESTR=0 -DMTR_ENTR=0 -DMTR_ENTR=0 -DMTR=0 -DMTR_DMTR_DMTR_ENTR=0 -DMACT_DESDESD0 -DMTR=0 -DMTR=0 -DMTR_COUNT_TR_ENTR=0 -DMTR_DMTR=0 -DMTR_DMTR=0 -DMACT_DMTRIC=0 -DMACT_DMTR_DMTRIC=0 -DMACT_DESDESD0 -DMTR_ENTR=0 -DMTR_ENTR=0 /Users/Witch/MATLAB /Users/Witch/MATLAB/test_ert_rtw/source/HL_pinmux.c /Users/Witch/MATLAB/test_ert_rtw/include~~~~~/Users/Witch/MATLAB/test_ert_rtw~-
C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/bin/armcl -compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/include"-preproc_with_compile -preproc_Dependency="hl_sci.pP"-obj_directory="/"-mv7R5 -code_state=32 -float_support=vproc-display=vid_off-v3b_id=vid_ex-v16-p=vid_pack-ex-/vid_id_-/ovidag_ab-display-/vid_off-vidag_-/vidag_-/vid_ab- DIAG_WARNING=225 -DMMODEL=TEST -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_EXCE_CODE=0 -DINTEGETR=0 -DCLESTE=0 -DMONESTE_ENTR=0 -DMTR_ENTR=0 -DMTR_DMTR_ENTR=0 -DMTREM_ENTR=0 -DMACT_DESTR=0 -DMTR_ENTR=0 -DMTR_ENTR=0 -DMTR=0 -DMTR_DMTR_DMTR_ENTR=0 -DMACT_DESDESD0 -DMTR=0 -DMTR=0 -DMTR_COUNT_TR_ENTR=0 -DMTR_DMTR=0 -DMTR_DMTR=0 -DMACT_DMTRIC=0 -DMACT_DMTR_DMTRIC=0 -DMACT_DESDESD0 -DMTR_ENTR=0 -DMTR_ENTR=0 /Users/Witch/MATLAB /Users/Witch/MATLAB/test_ert_rtw/source/HL_sci.c /Users/Witch/MATLAB/test_ert_rtw/include~~~~~/Users/Witch/MATLAB/test_ert_rtw~-
C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/bin/armcl -compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/include"-preproc_with_compile -preproc_Dependency="hl_sys_dma.pP"-obj_directory="/"-mv7R5 -code_state=32 --float_support=vabi_support=vid_pack-/excl-/vid_number=vid_off-vidag-vid_ab-/-vidag=vid_off-vidag_-/vidag=vidag_-/-vid_ab-v DIAG_WARNING=225 -DMMODEL=TEST -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_EXCE_CODE=0 -DINTEGETR=0 -DCLESTE=0 -DMONESTE_ENTR=0 -DMTR_ENTR=0 -DMTR_DMTR_ENTR=0 -DMTREM_ENTR=0 -DMACT_DESTR=0 -DMTR_ENTR=0 -DMTR_ENTR=0 -DMTR=0 -DMTR_DMTR_DMTR_ENTR=0 -DMACT_DESDESD0 -DMTR=0 -DMTR=0 -DMTR_COUNT_TR_ENTR=0 -DMTR_DMTR=0 -DMTR_DMTR=0 -DMACT_DMTRIC=0 -DMACT_DMTR_DMTRIC=0 -DMACT_DESDESD0 -DMTR_ENTR=0 -DMTR_ENTR=0 /Users/Witch/MATLAB /Users/Witch/MATLAB/test_ert_rtw/source/HL_sys_dma.c /Users/Witch/MATLAB/test_ert_rtw/include~~~~~/Users/Witch/MATLAB/test_ert_rtw~-
C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/bin/armcl -compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/include"-preproc_with_compile -preproc_ependence="hl_sys_pcr.pP"-obj_directory="/"-mv7R5 -code_state=32 --float_support=vabi_support=vid_pack-/ovid_type=-excl-/vabi_number=vid_off-/vid_off-vidag-vidag-vid_-vidag-vid_-/vidag_off-/vid_ DIAG_WARNING=225 -DMMODEL=TEST -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_EXCE_CODE=0 -DINTEGETR=0 -DCLESTE=0 -DMONESTE_ENTR=0 -DMTR_ENTR=0 -DMTR_DMTR_ENTR=0 -DMTREM_ENTR=0 -DMACT_DESTR=0 -DMTR_ENTR=0 -DMTR_ENTR=0 -DMTR=0 -DMTR_DMTR_DMTR_ENTR=0 -DMACT_DESDESD0 -DMTR=0 -DMTR=0 -DMTR_COUNT_TR_ENTR=0 -DMTR_DMTR=0 -DMTR_DMTR=0 -DMACT_DMTRIC=0 -DMACT_DMTR_DMTRIC=0 -DMACT_DESDESD0 -DMTR_ENTR=0 -DMTR_ENTR=0 /Users/Witch/MATLAB /Users/Witch/MATLAB/test_ert_rtw/source/HL_sys_pcr.c /Users/Witch/MATLAB/test_ert_rtw/include~~~~~/Users/Witch/MATLAB/test_ert_rtw~-
C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/bin/armcl -compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/include"-preproc_with_compile -preproc_Dependency="hl_sys_phanty.pP"-obj_directory="/"-mv7R5 -code_state=32 -float_support=vabi_support=vidat_pack-/ovidat_display-/vabi_number=-vidag-vid_off-vidag-vidag-/vidat_off-vidag_-vidag-/vidag_off-v DIAG_WARNING=225 -DMMODEL=TEST -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_EXCE_CODE=0 -DINTEGETR=0 -DCLESTE=0 -DMONESTE_ENTR=0 -DMTR_ENTR=0 -DMTR_DMTR_ENTR=0 -DMTREM_ENTR=0 -DMACT_DESTR=0 -DMTR_ENTR=0 -DMTR_ENTR=0 -DMTR=0 -DMTR_DMTR_DMTR_ENTR=0 -DMACT_DESDESD0 -DMTR=0 -DMTR=0 -DMTR_COUNT_TR_ENTR=0 -DMTR_DMTR=0 -DMTR_DMTR=0 -DMACT_DMTRIC=0 -DMACT_DMTR_DMTRIC=0 -DMACT_DESDESD0 -DMTR_ENTR=0 -DMTR_ENTR=0 /Users/Witch/MATLAB /Users/Witch/MATLAB/test_ert_rtw/source/HL_sys_phantom.c /Users/Witch/MATLAB/test_ert_rtw/include~~~~~/Users/Witch/MATLAB/test_ert_rtw~-
C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/bin/armcl -compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/include"-preproc_with_compile -preproc_Dependency="hl_sys_pMM.pp"-obj_directory="/"-mv7R5 -code_state=32 --float_support=vabi_support=vid_off-vid_-excl-/ovid_number=-vid_ab-vid_off-vidag=-v16-en_pack-vid_off-vid_id=vid_ab-vid_-vidag_- DIAG_WARNING=225 -DMMODEL=TEST -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_EXCE_CODE=0 -DINTEGETR=0 -DCLESTE=0 -DMONESTE_ENTR=0 -DMTR_ENTR=0 -DMTR_DMTR_ENTR=0 -DMTREM_ENTR=0 -DMACT_DESTR=0 -DMTR_ENTR=0 -DMTR_ENTR=0 -DMTR=0 -DMTR_DMTR_DMTR_ENTR=0 -DMACT_DESDESD0 -DMTR=0 -DMTR=0 -DMTR_COUNT_TR_ENTR=0 -DMTR_DMTR=0 -DMTR_DMTR=0 -DMACT_DMTRIC=0 -DMACT_DMTR_DMTRIC=0 -DMACT_DESDESD0 -DMTR_ENTR=0 -DMTR_ENTR=0 /Users/Witch/MATLAB /Users/Witch/MATLAB/test_ert_rtw/source/HL_sys_pmm.c /Users/Witch/MATLAB/test_ert_rtw/include~~~~~/Users/Witch/MATLAB/test_ert_rtw~-
C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/bin/armcl -compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/include"-preproc_with_compile -preproc_Dependency="hl_sys_startup.pP"-obj_directory="/"-mv7R5 -code_state=32 --float_support=vabi_support=vid_boot_mp"-obj_directory=-/-display_off-mvabi=vid=vid=-/vidag_off-vidag-vid=-vid_off-/vidag_off-vidag_- DIAG_WARNING=225 -DMMODEL=TEST -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_EXCE_CODE=0 -DINTEGETR=0 -DCLESTE=0 -DMONESTE_ENTR=0 -DMTR_ENTR=0 -DMTR_DMTR_ENTR=0 -DMTREM_ENTR=0 -DMACT_DESTR=0 -DMTR_ENTR=0 -DMTR_ENTR=0 -DMTR=0 -DMTR_DMTR_DMTR_ENTR=0 -DMACT_DESDESD0 -DMTR=0 -DMTR=0 -DMTR_COUNT_TR_ENTR=0 -DMTR_DMTR=0 -DMTR_DMTR=0 -DMACT_DMTRIC=0 -DMACT_DMTR_DMTRIC=0 -DMACT_DESDESD0 -DMTR_ENTR=0 -DMTR_ENTR=0 /Users/Witch/MATLAB /Users/Witch/MATLAB/test_ert_rtw/source/HL_sys_startup.c /Users/Witch/MATLAB/test_ert_rtw/include~~~~~/Users/Witch/MATLAB/test_ert_rtw~-
C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/bin/armcl -compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/include"-preproc_with_compile -preproc_dependence="hl_sys_vim.pP"-obj_directory="/"-mv7R5 -code_state=32 -float_support=vabi_support=-vid_off-vidag=-vid_abi-display-v16-en_packed -vid_error-/-vidag_off-vidag=-vidag_ab-v16-en_off-vid_-vidag_off-/ DIAG_WARNING=225 -DMMODEL=TEST -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_EXCE_CODE=0 -DINTEGETR=0 -DCLESTE=0 -DMONESTE_ENTR=0 -DMTR_ENTR=0 -DMTR_DMTR_ENTR=0 -DMTREM_ENTR=0 -DMACT_DESTR=0 -DMTR_ENTR=0 -DMTR_ENTR=0 -DMTR=0 -DMTR_DMTR_DMTR_ENTR=0 -DMACT_DESDESD0 -DMTR=0 -DMTR=0 -DMTR_COUNT_TR_ENTR=0 -DMTR_DMTR=0 -DMTR_DMTR=0 -DMACT_DMTRIC=0 -DMACT_DMTR_DMTRIC=0 -DMACT_DESDESD0 -DMTR_ENTR=0 -DMTR_ENTR=0 /Users/Witch/MATLAB /Users/Witch/MATLAB/test_ert_rtw/source/HL_sys_vim.c /Users/Witch/MATLAB/test_ert_rtw/include~~~~~/Users/Witch/MATLAB/test_ert_rtw~-
C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/bin/armcl --compile_only -i"C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/include"--preproc_with_compile --preproc_ependence="HL_system.pP"--obj_directory="/"-mv7R5 --code_state=32 --float_support=VFP_system.pp"--obj_directory=""---- vabi_off-code_display=-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out- DIAG_WARNING=225 -DMMODEL=TEST -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_EXCE_CODE=0 -DINTEGETR=0 -DCLESTE=0 -DMONESTE_ENTR=0 -DMTR_ENTR=0 -DMTR_DMTR_ENTR=0 -DMTREM_ENTR=0 -DMACT_DESTR=0 -DMTR_ENTR=0 -DMTR_ENTR=0 -DMTR=0 -DMTR_DMTR_DMTR_ENTR=0 -DMACT_DESDESD0 -DMTR=0 -DMTR=0 -DMTR_COUNT_TR_ENTR=0 -DMTR_DMTR=0 -DMTR_DMTR=0 -DMACT_DMTRIC=0 -DMACT_DMTR_DMTRIC=0 -DMACT_DESDESD0 -DMTR_ENTR=0 -DMTR_ENTR=0 /Users/Witch/MATLAB /Users/Witch/MATLAB/test_ert_rtw/source/HL_system.c /Users/Witch/MATLAB/test_ert_rtw/include~~~~~/Users/Witch/MATLAB/test_ert_rtw~-
C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/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.ls/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.ls/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.ls/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
"###正在创建独立可执行文件"../test.out"..."
C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/bin/armcl - run_linker --rom_model - search_path=C:/ti/ccs901/ccs/tools/compiler/TI-CGT~3.ls/lib -mv7R5 -m"test.map"- warn_SECTIONS - reread_libs - diag_wrap=off - display_error_warnhl_warn.map-m_svm_vm.obj obj -rom_test_vm.obj obj obj -rom_module_display_infot_m_simulation.hl.obj obj obj obtature_m.ip_m.ip_m.obj obj obj /Users/Witch/MATLAB/test_ert_rtw/source/HL_sys_link.cmd /ti/ccs901/ccs/tools/compiler/ti-cgt-arm_18.12.1.LTS/lib/rtsv7R4_T_be_v3D16_eabi.lib

"###已创建:./test.out"
"###成功生成了所有二进制输出。"

C:\Users\witch\MATLAB \test_ERT_RTW>退出/B 0
在加载之前擦除闪存的必要部分。
起动器命令字符串:"C:\ProgramData\MATLAB \SupportPackages\R2017a\toolbox\target\shared\ti_arm_toolchain\loader\loadti"
启动器命令参数: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 \timsp430lc43\tittrads\ticlcs\target\test\tran\tran\tog.xml"
***** DSS 通用加载程序*****

开始:22:42:58 GMT+0300 (MSK)

正在为指定目标配置调试服务器...
getServer:entry sServerName:DebugServer.1
getServer:获取 DebugServer.1的定义
getServer:构造服务器
getServer:返回 com.ti.debug.engine.scripting.DebugServer@136432db
setConfig:条目 sConfigurationFile:C:\Users\wit\MATLAB \titlems570lc43target\src\TMS570LC43xx.ccxml
setConfig:返回
完成
调试器打开:条目 sBoardName:* sCPUName:*
开始:输入
开始:触发: onServerStarting()
开始:连接到 XPCOM DebugServer
开始:使用指定的配置初始化 DebugServer:"C:\Users\witch\MATLAB\titlems570lc43target\src\TMS570LC43xx.ccxml"
waitUntil:entry com.ti.ccstudio.scripting.environment.ScriptingEnvironment@7a79be86 timeout:无穷大
:CPU 名称:CortexR5
:PartNum:TMS570LC43xx
:家庭:470人
:子系列/ MajorIsa:D
:修订版/ MinorISA:0
:平台:仿真器
处理器 ID:1971336192
:dbname:ArmAdvancedFeatures
:CPU 名称:IcePick
:PartNum:TMS570LC43xx
:家庭:240人
:子系列/ MajorISA:2.
:修订版/ MinorISA:0
:平台:无
:处理器 ID:1006635013
:CPU 名称:DAP
:PartNum:TMS570LC43xx
家庭电话:224
:子系列/ MajorISA:1.
:修订版/ MinorISA:0
:平台:无
:处理器 ID:939525125
waitUntil:return com.ti.ccstudio.scripting.environment.ScriptingEnvironment@7a79be86
开始:触发:onServerStarted()
开始:搜索设备
列表设备:条目
列表器件:找到可调试器件:德州仪器 XDS110 USB 调试探针/CortexR5
列表器件:找到不可调试器件:德州仪器 XDS110 USB 调试探针/IcePick
列表器件:找到了不可调试器件:德州仪器 XDS110 USB 调试探针/DAP
ListDevices:返回
START (开始):返回
调试器打开:返回德州仪器 XDS110 USB 调试探针/CortexR5
setString:条目 ID:FileIODefaultDirectory 值:未定义
setString:return
目标:德州仪器 XDS110 USB 调试探针
正在连接到目标...
连接:输入
已连接:条目
已连接:目标未连接
已连接:返回 false
连接:请求目标连接
waitUntil:条目超时:无限
CortexR5:GEL 输出:闪存@地址0x0的存储器映射设置
Log (日志):现在已连接目标
waitUntil:返回
已连接:条目
已连接:目标已连接
已连接:返回 true
连接:返回
正在重置目标...
重置:进入
RESET:请求目标复位
waitUntil:条目超时:无限
waitUntil:返回
RESET:目标复位
getBoolean:条目 ID:AutoRunToLabelOnReset
getBoolean:返回 false
RESET:返回
testEnv.outFiles:C:\Users\witch\MATLAB\test.out
正在加载 C:\Users\witch\MATLAB\test.out
setString:条目 ID:FlashEraseSelection 值:仅限必要扇区(用于程序加载)
setString:return
loadProgram:entry sFileName:C:\Users\witch\MATLAB\test.out
LOAD:请求程序加载
waitUntil:条目超时:无限
CortexR5:GEL 输出:由于系统复位、闪存@地址0x0的存储器映射设置
CortexR5:GEL 输出:由于系统复位、闪存@地址0x0的存储器映射设置
waitUntil:返回
加载:程序加载成功
getBoolean:条目 ID:AutoRunToLabelOnRestart
getBoolean:返回 true
waitForHaltIfPropertySet:等待暂停
waitUntil:条目超时:无限

因此、很明显、程序本身已成功加载到目标上、但它无法到达入口点函数–main。

请帮助我解决此问题。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    如果您通过 CCS 加载程序、它是否达到'main'?
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    感谢您的回答!

    我在 CCS 中创建了一个空白项目、并使用我的*。h*。c*。asm*。map*。mk 文件填充该项目。 在我构建之后、在 CCS 中加载并运行它、它确实到达主函数。

    这是屏幕截图。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我想自己纠正、尽管我已经放置了 make-files、但 CCS 仍然会生成自己的文件、并在调试期间成功到达 main。

    可以在此处看到

    我的文件是 test.mk codested_assembly_flags.mk。  点击"Debug"按钮后、其余部分出现。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您能否获取从 CCS 工程生成的*。out 文件并尝试使用 loadti 加载该文件?
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    已按照您的建议从 CCS 加载了*。out 文件、其中包含 loadti 实用程序。 在这种情况下、 程序不会冻结并成功运行、直到完成。

    以下是来自 windows shell 的日志:

    C:\Users\witch>CD C:\Users\witch\workspace_v9\test\Debug
    
    C:\Users\workspace_v9\test\Debug>C:\ti\ccs_base\scripting\examples\loadti\loadti\loadti -r -a -v -c "C:\Users\ti\workspace_v9\test\target\xml\ctwitch_test\test\tog_test\texamples\tis\tis\tis\tis\tis\tis\tis\tin\tin\tin\tis\tis\tis\tin\tin\tms570x\xml_example.xml_test\test
    
    DSS 通用加载程序*****
    
    开始:12:01:08 GMT+0300 (MSK)
    
    为指定目标配置调试服务器...
    getserver:entry sServerName:DebugServer.1
    getServer:获取定义:DebugServer.1
    getServer:构造服务器
    getServer:return com.ti.debug.engine.scripting.DebugServer@2e5c649
    setConfig:entry sConfigurationFile:C:\Users\Debug\workspace_v9\test\DebugConfigs\TMS570LC43xx.ccxml
    :return
    done done scriptinggerOpen
    :entry s\ccsv9\test\started\targetConfigs\ccsdstepdstate\targetServer\targetConfigs\ccs\started\started\targetScripting\targetServer\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\target\
    
    
    
    
    @
    :CPU 名称:CortexR5
    :PartNum:TMS570LC43xx
    :家庭:470人
    :子系列/ MajorIsa:D
    :修订版/ MinorISA:0
    :平台:仿真器
    处理器 ID:1971336192
    :dbname:ArmAdvancedFeatures
    :CPU 名称:IcePick
    :PartNum:TMS570LC43xx
    :家庭:240人
    :子系列/ MajorISA:2.
    :修订版/ MinorISA:0
    :平台:无
    :处理器 ID:1006635013
    :CPU 名称:DAP
    :PartNum:TMS570LC43xx
    家庭电话:224
    :子系列/ MajorISA:1.
    :修订版/ MinorISA:0
    :平台:无
    :处理器 ID:939525125
    waitUntil:return com.ti.ccstudio.scripting.environment.Scripting Environment@6e8dacdf
    start:firing:onServerStarted()
    start:Searching for devices
    :entry
    listDevices:found debugable device:Texas Instruments XDS110 USB Debuggable device:
    found USB Debuggested/CortexR5 Device:Found 非
    德州仪器 XDS110 USB Debuggable Device:
    Texas Instruments USB Device:Undebug/Unditable
    Device:Texas Instruments 返回
    调试器打开:返回德州仪器 XDS110 USB 调试探针/CortexR5
    setString:条目 ID:FileIODefaultDirectory 值:未定义
    setString:返回
    目标:德州仪器 XDS110 USB 调试探针
    连接到目标...
    连接:条目
    已连接:条目
    已连接:目标未连接
    已连接已连接:返回错误
    连接:请求目标连接
    waitUntil:条目超时:无限
    CortexR5:GEL 输出:闪存的存储器映射设置@地址0x0
    日志:目标现在已连接
    waitUntil:返回
    已连接:条目
    已连接
    已连接已连接:返回真正
    连接: 返回
    重置目标...
    复位:条目
    复位:请求目标复位
    waitUntil:条目超时:无限
    waitUntil:返回
    复位:目标复位
    getBoolean:条目 ID:AutoRunToLabelOnReset
    getBoolean:返回 false
    复位:return
    testEnv.outFiles:C:\Users\workspace_v9\test\Debug\test\test\test\test\out\workspace\out\out\exit\exit\exit\exit\workspace\out\exit\exit\exit\exit\workspace\out\out\exit\exit\exit\exit\exit\exit\r
    
    :unstit\workspaceout\out\workspace\out\
    
    
    由于系统复位、闪存@地址0x0的存储器映射设置
    
    CortexR5:GEL 输出:由于系统复位
    
    、闪存@地址0x0的存储器映射设置 waitUntil:返回
    加载:程序加载成功
    getBoolean:条目 ID:AutoRunToLabelOnRestart
    getBoolean:返回真
    waitForHaltIfwaitSet:等待停止
    直到:条目超时
    :无限日志: 目标已在0x00003CC8
    waitUntil 处停止:返回
    loadProgram:返回
    完成
    目标正在运行...
    setScriptTimeout:条目 nTimeout:-1
    setScriptTimeout:超时为无穷
    的 setScriptTimeout:存在返回
    :条目 sSymbol:C$$exit
    存在:存在获取符号包
    :存在查找符号
    :存在符号"C$$EXIT"
    :存在返回 true
    求值:条目 sExpression:PC = C$EXIT
    iseval:请求对表达式进行评估:"PC = C$EXIT"
    已连接目标:已
    连接
    return true
    isHalted:entry
    isHalted:target is halted:
    return true
    waitUntil:entry com.ti.ccstudio.scripting.environment.Scripting Environment@6e8dacdf timeout:unallent
    waitUntil:return com.ti.ccstudio.scription.environment.ScriptingEnvironment@6e8dacdf
    waitUntil:entry
    unis
    
    :return exit= unevalued exit: return exit: unexit: unexitL unexit: unexit: unexitL unexit: unexit: unexit$return unexit: unexit: unex
    
    
    
    
    条目 sSymbol:存在中止
    :存在获取符号包
    :存在查找符号
    :存在符号"abort"
    :存在返回真
    评估:条目 sExpression:PC == abort
    eval:请求对表达式的评估:"PC == abort"
    已连接:条目
    已连接
    :目标已连接已连接已连接已连接已连接:返回真
    isHalted:条目
    isHalted:目标已停止
    已连接已连接已连接已连接已断开
    等待:返回真中断未连接:返回 entry com.ti.ccstudio 脚本环境脚本环境@6e8dacdf 超时:无限
    waitUntil:return com.ti.ccstudio 脚本环境@6e8dacdf
    waitUntil:entrytimeout:无限
    onevent:evaled expression:PC == abort
    Until:return
    eval: return 0x0
    acdwait1
    unritTime: retry unract: return unract1 unract: unruntry unruntiming unruntime: ract: unruntry unruntimation unruntimation unruntime: runtime: runtimation unruntime: retry untrun
    
    
    
    
    
    
    返回
    终止:条目
    终止:激发:onSessionTerminating()
    终止:从 DebugServer 取消注册此会话
    终止:激发:onSessionTerminated()
    处理与卸载:激发:onServerStache()
    处理与卸载:停止 DebugServer
    卸载 Until:entry com.ti.ccstudio 环境。终止与环境@
    
    
    
    
    
    
    @6e8dacdstop( return:return out: unt 终止与
    环境:return out: return out: return out: return out: return out.
    
    
    返回
    
    结束:12:02:27 GMT+0300 (MSK)
    traceEnd:条目
    traceEnd:刷新和关闭文件流
    traceEnd:删除处理程序 java.util.logging.FileHandler@6d4b1c02
    traceEnd:返回
    
    C:\Users\witch\workspace_v9\test\Debug> 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    [引用 user="Vasily Volkov ">我已按照您的建议从 CCS 加载了*。out 文件和 loadti 实用程序。 在这种情况下、 程序不会冻结并在完成前成功运行[/报价]

    谢谢。 当您在 CCS 环境外部编译时、问题看起来不在于 loadti/调试器、而是在于您生成的*。out 文件。 您需要检查该环境并确保其正确编译(仔细检查在两种环境中传递给编译器/链接器的编译选项)。  

    谢谢

    Ki

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    是的、我在完成 您提供的所有测试后得出了相同的结论。 在 MATLAB 和 CCS 中使用的编译器/链接器标志形成一个完整的隔离专区之后、我发现问题所在的位置。 问题在于我没有使用"--be32"链接器标志。

    非常感谢您的帮助!