
CCS V5.1 Build 'Relase' for MSPF5529 Project appear "NO source available for......."?But Build 'Debug' for MSPF5529 Project is OK(AS shown)

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 V5.1 Build 'Relase' for MSPF5529 Project appear "NO source available for......."?But Build 'Debug' for MSPF5529 Project is OK(AS shown)

Hello Daishi,
does this occur with the debug configuration? Do you have "Run to main" selected in the debug options?
Please keep us informed. This type of situation usually comes from either not running to main or ... depending on the configuration, lack of debug symbols which could be due to the release variant settings.
Best Regards,
Lisa
Hello Lisa:
I have checked relevant settings debug configuration ,"Run to main" is already selected in the debug options.
But "Relase" debug Msp4305529 project, still Appear "source available for "main() at 0x4422"(main has only skeletal debug info)".
In addition, Compilation of data bytes are the same at the Running "Relase" and "Debug" Msp4305529 project after.The original use CCSV4 not happen.
There may be reasons for Licensed ?
Thanks.
Best Regards,
Daishi Liu
Hi Daishi,
no this should not have anything to do with licensing.
I am still not clear, does this happen in the debug configuration? Do you see a .out file generated in both instances and have you tried loading that?
Please keep us informed.
Best Regards,
Lisa
Hi Lisa,
DEBUG and RELEASE in two instances does have a *. out file , I have tried to download . I also tried to the menu Run --> Load --> Load Program .
Still happen " No source available for "main() at 0x4422" "?

Best Regards,
Daish Liu
Hi Daish,
This is because in release mode the default is not to bother with the debug information/symbols but rather just build and load the program. So I would suggest using release mode.
If you want to get rid of that error and debug in release mode as well, please try setting the following option (screenshot below) and let us know if that helps.
Project->Properties->Build->MSP430 Compiler->Debug Options .... and set the Debugging model to "Full symbolic debug".
Best Regards,
Lisa

Hi Lisa :
Steps as you have described does not appear "No source available for" main () at 0x4422 "of the show, but there is a problem when I use Debug mode CCSv4 compiled Code Size is significantly larger than Relase mode compiled by the Code size is much greater , while under the Debug mode and with CCSV5 Relasem model compiled by the Code size is the same, why? because both Debug and Relase use this option to do the same? (Project-> Properties-> Build-> MSP430 Compiler-> Debug Options .... and set the Debugging model to "Full symbolic debug".)
Best Regards,
Daishi Liu
Hi Daishi,
ok, a couple comments to help close this off for you. First of all, yes, when you do a full symbolic debug the debug symbols mean a larger file. Note the symbols are only for debug which is why these are typically not selected for the release build. The release configuration is usually used purely to generate the "final" optimized code and not for debugging.
I hope this helps.
Best Regards,
Lisa
Hi Lisa:
The problem is when using CCSv4, REALSE mode Debug Options-> set the Debugging model to "Symbolic debug for program analysis (default)....." and After compilation, OK. But ,Using CCSV5, REALSE mode ,Debug Options set the same, happen " No source available for "main() at 0x4422" ?
Why CCSV4 Relase model Debug Options -> set the Debugging model using the default settings, and CCSV5 not?
Best Regards,
Daishi Liu