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.

Can't locate source...

I keep getting the following message with every CCS (version 4 or 5) project that I create. Everything seems to be working as it should. I can step through the code, all the debugging features seem to work,  and the code runs fine in debug or release mode. I have included a screen shot to show the problem I am encountering. It appears that the CALL #abort at F8B2 has no corresponding label in the code. I am programming in C and using Grace. Any assistance will be greatly appreciated.

Bob

  • Hi Robert,

    I may need to pass you to the compiler/MSP430 team however some information that would help us

    - what exact CCS versions have you tried?

    - what code generation tool version(s)?  You can see this in the project properties.  You can see what versions you have installed into CCS in Window->Preferences->CCS or Code COmposer Studio->Build->Code Generation Tools

    - could you please reattach the screenshot?  It did not seem to get attached properly

    - what MSP430 are you using?

    Best Regards,
    Lisa

  • Hi Lisa,

    Thanks for getting back to me so quickly and sorry that I didn't provide more information. I have experienced the behavior with both Code Composer versions 4.2.3.00004 with code generation tools TI v3.3.2 and Code Composer version 5.2.0.00069 with code generation tools TI v4.1.0.

    Bob

  • The source for abort is in the Run-Time Support library's source archive.  Unpack the RTS sources into a folder somewhere, then click on the "Locate file..." button and select the boot_4.0.c file where the RTS sources were unpacked.

    Usually, you shouldn't worry about what the RTS is doing.  In your example, the call to abort is done immediately after main() returns,  which is reasonable since your program has terminated.  If you were using SYS/BIOS, however, main() should have been called from a different run-time support function which after main() returns should enter a scheduler wait.

  • Hi Douglas,

    Thanks for taking the time to respond. I found the boot_4.0.c file and added it to my project and ended up with 13 errors. I am a hobbyist trying to learn all I can about programming in C using CCS and the MSP430 Launchpad. I have completed a few projects and they all had the problem referred to in my original post and I just ignored it because each of them functioned properly. I don't understand why the C compiler would include the CALL #abort if it could not automatically include the necessary code. I would like to understand what is happening but apparently don't know enough yet to even ask the right questions. I will look up information on the Run-Time Support library and SYS/BIOS that you referred to and see what I can learn.

    Thanks for your help.

    Bob

  • Hi Robert,

    two things, and please keep us updated

    1 - you should NOT add the source file to your project.  As Douglas mentioned you should simply click on "locate file .." in the debugger to locate and bring up the source file.  These run time library files should not be added.

    2- forget SYS/BIOS.  This is supported only on a limited set of msps.

    Best Regards,
    Lisa

  • Hi Lisa,

    Thanks to you and Douglas the situation has been resolved.

    Take Care,

    Bob

  • Hi Robert,

    great to hear and thanks for the update.  All the best with development.

    Best Regards,
    Lisa

  • Hi Robert,

    I am facing the same problem like the screen you have showed .  I have also completed a few  very simple projects and they all had the problem referred to in your post.

    And you said "the situation has been resolved". Could you tell me what you have done to solve it? Any assistance will be greatly appreciated. Thank you!

    Ruan

  • Hello Ruan,

    You will find several boot_x.x.c files in both the grace folder and the xdctools folder. Do a search on the folder where Code Composer Studio is installed and you will be provided with the path you need to follow when the message appears to locate the source file. Once you do this the locate source button will no longer appear. This does not add any code to your source file. I hope this helps.

    Good Luck,

    Bob

  • Hi Robert,

    I am really happy to see your  reply . I tried as you have told me, and the problem have been sovled !  It is wonderful to get a useful method to solve it ! 

    Thank you Robert,thank you very much!

    Best Regards,
    Ruan