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.

Starterware/66AK2E05: Debug problem:No source available for main( )

Part Number: 66AK2E05


Tool/software: Starterware

Hi,

 Nowadays I'm researching the project of "GE", when I debug it , the program can't find the main( ) and other function as well , like the picture below. But the program could run normally , how could I fix this problem ,thanks!

  • Hi user425211123,

    Check whether "-g -O0" debug flags are set.
    Also check whether you debugged the release version (w/o debug info) of your application.

    BR
    Tsvetolin Shulev
  • This is not an device related issue. The .out file is loaded on the device correctly. the error indicated in CCS just specifies that the project source and libraries are not in the search path or the disassembly is not able to corelate the .out loaded with any source in your workspace.

    you can open View Disassembly and try to toggle the "Show source menu" option on top of that window or in the edit view, browse to the file that has the main function corresponding to the .out that you have loaded on the cores. If this doesn`t help them build with lower optimization flag that generate more debug information and re-try loading the .out.

    Regards,
    Rahul
  • When you build the project, you can also use full symbolic debug option (-g) for easier your debug efforts.

    Regards, Eric