请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
大家好、
我的客户希望在论坛上发帖、 并报告 CCS 10中的错误。 本文档应说明正在发生的情况。 他正在使用范围为 switch / case 语句。
当范围的顶部超过22740时、代码会使编译器崩溃。 他已将程序剥离并重新键入以解决问题。
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.
大家好、
我的客户希望在论坛上发帖、 并报告 CCS 10中的错误。 本文档应说明正在发生的情况。 他正在使用范围为 switch / case 语句。
当范围的顶部超过22740时、代码会使编译器崩溃。 他已将程序剥离并重新键入以解决问题。
我可以使用客户的源代码在 CCS 10中创建附加项目、然后重复崩溃。 崩溃是间歇性的、因为在 CCS 中选择"Rebuild Project"有时会起作用、有时会导致崩溃。
崩溃后的 CCS 控制台输出:
针对项目 MSP430_case_compiler_crash 的纯净配置构建**** "C:\\ti\\ccs1020\\ccs\\utils\\bin\\gmake"-k -j 12 clean -O del /F "MSP430_case_compiler_crash.hex""msp430_compiler_crash.out" del /f "msp430_crash_board_prues\cmsp430_compiler\\crash_pru.out" ominu.pru_msp430_mcus\\cmsp430_pru.pru.pru_mcus\g_mcus\r **\g_pru_mcus\g_mcus\g10\cmcus\g_pru_mcus\g_cru.pru.pru.pru.pruor_mcus\r **** -o 生成文件:"../main.c" 调用:MSP430编译 器"C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-msp430_20.2.2.LTS/bin/cl430 -vmsp -use_hw_mpy=none --include_path="C:/ti/ccs1020/ccs/ccs_base/msp430/include --include_path="C:/Users/mr_halfword/workspace_v10/MSP430_case_compiler_crash --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-msp430_20.2.2.LTS/include --use_path="c:--advice:power_c="all"--define=_suppremote_remote_proc :subproc_exitude_defination.c:-out_subboard.pring_defination.c: -out_proc:-out_proc :-out_probe.c:-out_prob_prob_subboard.us.us_proc:-out_prob_prob_prob_probe.c:-out_prob_prob_prob_prob_prob_prob_prob_probe.c:-out_remot_probe.c:-out_subboard. (ULP 8.1)变量"i"用作常数。 建议将变量声明为'static const'或'const' gmake:***[main.obj]错误1 gmake:目标'all'不会由于错误而重做。 ****构建完成****
我注意到、编译器崩溃后、Windows 10事件日志将以下内容报告为 opt430.exe 的 APPCRASH:
- "="">schemas.microsoft.com/.../event">- 1001. 0 4. 0 0 0x8000000000000000 7952 应用 Desktop-EG5EBI0 - 1727689829169942974 4. APPCRASH 不可用 0 opt430.exe 20.2.2.0 5f11bfaa opt430.exe 20.2.2.0 5f11bfaa c00000fd 000000000025ee96 \\?C:\ProgramData\Microsoft\Windows\WER\Temp\WERE43F.tmp.dmp \\?C:\ProgramData\Microsoft\Windows\WER\Temp\WERF826.tmp.WERInternalMetadata.xml WERF8A3.tmp.txt \\?C:\ProgramData\\Microsoft\Windows\WER\Temp\WERF856.tmp.xml \\?C:\ProgramData\\Microsoft\Windows\WER\WER\WERF864.tmp.csv \\?C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_opt430.exe_1f57d16bd5d66f41b364992765dbf4abc85d229_9e5735b_b77c70f-79b8-4235-a2bc-59c0b1e 0 603beb13-7557-4846-80ee-8e9e4934ca3e 268435456 3052288498c6a3dc77f9fcbef5bad1be 0
但是、事件中报告的.dmp 文件不再存在、因此无法附加它。
成功重建时的 CCS 控制台输出:
针对项目 MSP430_case_compiler_crash 的纯净配置构建**** "C:\\ti\\ccs1020\\utils\\bin\\gmake"-k -j 12 clean -O del /F "MSP430_case_compiler_crash.out" del /F "msp430_compiler_crash.out" el /f "msp430_msp430_compiler\g_msp430_crash_users\cmsp430_mc\g_board.pru_mcus\g\g_scrash_board.pruore.obj **\g_msp430_msp430_scrash_mis\g\g\g\g_msp430_pru_pru_mcus\g_mcus\g_mcus\g_mcus\g\g\g\g\g10\crash_cruor_pruor_pruor_msp430_mcus\g\g\g\g\g_ -k -j 12所有-O 构建文件:"../main.c" 调用:MSP430编译 器"C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-msp430_20.2.2.LTS/bin/cl430 -vmsp -use_hw_mpy=none --include_path="C:/ti/ccs1020/ccs/ccs_base/msp430/include --include_path="C:/Users/mr_halfword/workspace_v10/MSP430_case_compiler_crash --include_path="C:--include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-msp430_20.2.2.LTS/include --advice:power_="all"-include_remote_exitude_main.c -out-proc :-pred_exc_daprination=-out_us.trendature_guide_us.c:-probe.c:-out_prob_prob_prob_probe_remote_remote_probe.c:-probe_remote_probe.c:-probe_probe_remote_probe.c:-probe_probe_probe_probe_probe.c:- (ULP 8.1)变量"i"用作常数。 建议将变量声明为'static const'或'const' 完成构建:"../main.c" 构建目标:"msp430_case_compiler_crash.out" 调用:msp430 Linker "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-msp430_20.2.2.LTS/bin/cl430 /ti/ccs1020/ccs/ccs_base/msp430/include /ti/ccs1020/ccs/tools/compiler/ti-cgt-msp430_20.2.2.LTS/include -vmsp -use_hw_mpy=none -advice:power_define =_msp430G2553 -mem_wrap_in_infot_infot_-"-mem_display_ram_infot_ram_infot_infot_ination_-rom_infot_infot_ination_-"-status_ram_infot_ination_-in_infot_infot_ination_-"-cn_ram_infot_infot_infot_infot_ination_-ination_-ination_reation_reation_-ination_reation_reation_reation_reation_reation_reation_reation_reation_reation_reation_reation_reation_reation_reation_reation_-ination_reposition_infot_infot_infot_infot_infot_infot_infot_infot_infot_infot_-/ti/ccs1020/ccs/tools/compiler/ti-cgt-msp430_20.2.2.LTS/lib 备注#10371-D:(ULP 1.1)未检测到低功耗模式状态更改指令 备注#10372-D:(ULP 4.1)在此项目中检测到未初始化的端口1。 建议初始化所有未使用的端口、以消除未使用引脚上浪费的电流消耗。 备注#10372-D:(ULP 4.1)在此项目中检测到未初始化的端口2。 建议初始化所有未使用的端口、以消除未使用引脚上浪费的电流消耗。 备注#10372-D:(ULP 4.1)在此项目中检测到未初始化的端口3。 建议初始化所有未使用的端口、以消除未使用引脚上浪费的电流消耗。 完成构建目标:"MSP430_case_compiler_crash.out" ****构建完成****
e2e.ti.com/.../MSP430_5F00_case_5F00_compiler_5F00_crash.zip
感谢您报告此问题并提交测试案例。 我能够重现问题。 我提交 了 EXT_EP-10243 以进行调查。 欢迎您访问该链接。
感谢 Chester Gillon 进一步调查问题。
谢谢、此致、
乔治