Debug fail “Can’t” find a source file at “tmpTi_MKLIBaXqLbTSRCcopy_zero_init.c”

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

遇到MSP430莫名BUG

Debug fail “Can’t” find a source file at “/tmp/Ti_MKLIBaXqLbT/SRC/copy_zero_init.c”

TI 论坛上前辈的提问…

解决方案

MSP430遇到一个问题程序编译链接都没问题但是,下载Debug不能运行,原因是代码量过大,初始化变量时耗时太长导致程序未进入MAIN函数看门狗就导致单片机复位。解决办法如下this can be done by adding code to disable the watchdog within the routine system_pre_init() in file pre_init.c. This routine is called prior to the auto init hence the watchdog will be disabled prior to the C initialization process. This file can be found in the directory 'your_CSS_instalation_directory' \tools\compiler\msp430\lib after unzipping the file rtssrc.zip. Add this file to your project and edit it to add the statement to disable to watchdog. Rebuild your project and test."

意思就是在CCS5安装目录下找到\tools\compiler\msp430\lib 找到rtssrc.zip文件,解压后找

到pre_init.c文件,添加这个文件到工程中,编辑这个文件,添加关狗语句。

EDIT BY KUAN

相关文档
最新文档