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.
Code compiles fine and loads fine. When I halt the debugger I get the following message.
Can't find a source file at "/tmp/TI_MKLIB3Y5LOY/SRC/copy_zero_init.c"
Locate the file or edit the source lookup path to include its location
Please see this related thread that explains the reason for the message (although the .c file mentioned is not the same, the reason for the message is the same):
http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/247877.aspx
460822 said:The post you cite is verbose. Can you answer the question in one sentence?
Ignore it.
I tried that ... does not work. When halted, the message appears ... no indication of location in the code. Selecting 'x' in the corner removes the message ... single stepping brings back the message ... no way to step through the code.
460822 said:I tried that ... does not work. When halted, the message appears ... no indication of location in the code. Selecting 'x' in the corner removes the message ... single stepping brings back the message ... no way to step through the code.
Stop closing it. Just leave it alone until you are back in your own code. If you don't have a disassembly window open, then open one and you will have no problem stepping through the code.
The copy_zero_init.c source file is part of the run time library, which zeros the .bss segment at start up before main in called.460822 said:Code compiles fine and loads fine. When I halt the debugger I get the following message.Can't find a source file at "/tmp/TI_MKLIB3Y5LOY/SRC/copy_zero_init.c"
Locate the file or edit the source lookup path to include its location
If when you halt the debugger the processor is executing from copy_zero_init.c then probably something has gone wrong and the processor has "crashed" before reaching main.
I don't know which device you are using, but if using a MSP430 device the problem might be that the WDT fires during C startup code
Brad, I put a breakpoint on the first line ... WDTCTL = WDTPW + WDTHOLD ... never gets there. The disassembly shows the code is hung at 0x93f8 $C$L1 {MOVA R15,R13} -> 0x9412 {JNE ($C$L1)} ... loops back to 0x93f8.
Chester, I searched for copy_zero_init.c ... it is not on the hard disk. I'm using an MSP430F5529. The site you reference is the answer. It works now!!! Thanks!
The source code for the run time library in supplied in a rtssrc.zip which should be in the compiler installation directory in a path of the form:460822 said:I searched for copy_zero_init.c ... it is not on the hard disk.
<css_root_directory>\ccsv5\tools\compiler\msp430_<compiler_version>\lib\rtssrc.zip