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.

Debug Error: No Source available for main(), while fixing the address of the program entry point in CCS

Other Parts Discussed in Thread: MSP430F5659

Hello,

I want to fix the address of the program entry point in CCS version 5.5.0.00077. This I am doing by putting ‘.text:_isr:_c_int00_noexit : {} > 0x9400’ line in linker command (.cmd) file, it says No Source available for main(), while starting the debugger . Below is the screen shot attached.

Can you please help me for resolving this.....

Thanks & Regards,

Deep

  • Deep,

    Please provide some additional details so we can guide you in the right direction.

    - Which device/board are you working with?
    - What is the reason to place the entry point at a specific address?
    - Are you able to reach main and get the program to run properly if you do not place entry point at a specific address, but keep everything else the same?
    - Is the project built with symbolic debugging enabled? You can check this in the Project Properties->Build->Compiler->Advanced OPtions->Advanced Debug options. If the debugging is set to none, then the message you are seeing is expected.

     

  • Deep Anand said:
    This I am doing by putting ‘.text:_isr:_c_int00_noexit : {} > 0x9400’ line in linker command (.cmd) file, it says No Source available for main(), while starting the debugger .

    This error might be caused by symbolic debugging information being disabled in the build - see No source available for main()

  • Hello AartiG,

    Please find the answers to your questions below:

    - Which device/board are you working with?
     MSP430f5659
    - What is the reason to place the entry point at a specific address?
     to fix the BSL password for Firmware Upgrade
    - Are you able to reach main and get the program to run properly if you do not place entry point at a specific address, but keep everything else the same?
     Yes
    - Is the project built with symbolic debugging enabled? You can check this in the Project Properties->Build->Compiler->Advanced OPtions->Advanced Debug options. If the debugging is set to none, then the message you are seeing is expected.
     No, it is set to Full Symbolic debug. snap shot attached below:

    Thanks,

    Deep

  • No, it is set to Full Symbolic debug. snap shot attached below: .

    And the link also didn't help me.

    Regards,

    Deep

  • I dont have that exact device to test with, but tried a test with a different MSP430 device by placing the .text:_isr:_c_int00_noexit section at a fixed address and didnt have any issues reaching main/running the code.

    Aer you able to share your project? (zip it up and attach it here). I may not be able to run it but can take a look at the linker command files/map files etc to see if anything else stands out.

  • Resolved, it was due to oscillator.

    Thanks,

    Deep