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.

CCS4 debugger not starting correctly

Other Parts Discussed in Thread: MSP430F2350

I've recently installed CCS 4. When i attempt to launch a debug session build and program download completes w/o problems but debugger does not start, as shown in attached image.Using MSP-FETU430IF debugging interface, software is running on winxp sp3. Target configuration is:

Am i missing something in confguration or doing something wrong?

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<configurations XML_version="1.2" id="configurations_0">

    

<configuration XML_version="1.2" id="TI MSP430 USB1_0">
        <instance XML_version="1.2" desc="TI MSP430 USB1_0" href="connections\TIMSP430-USB.xml" id="TI MSP430 USB1_0" xml="TIMSP430-USB.xml" xmlpath="connections"/>
        <connection XML_version="1.2" id="TI MSP430 USB1_0">
            <instance XML_version="1.2" href="drivers\msp430_emu.xml" id="drivers" xml="msp430_emu.xml" xmlpath="drivers"/>
            <platform XML_version="1.2" id="platform_0">
                <instance XML_version="1.2" desc="MSP430F2350_0" href="devices\MSP430F2350.xml" id="MSP430F2350_0" xml="MSP430F2350.xml" xmlpath="devices"/>
            </platform>
        </connection>
    </configuration>
</configurations>



  • HI Simas,

    from what I can tell from your screen capture, the project you created is not a CCS project, but a generic eclipse project.  This might be the issue.

    COuld you please see if things work if you start from File->New->CCS Project.

    Please keep us informed.

    Best Regards,
    Lisa

  • The project was started with File->New->CCS Project. However as it was imported from IAR i did attempt to create a new project, but debbuger would still not start correctly. Also i tried opening the project on another computer which has the same version of CCS installed. Debugger loaded without problems there. Also i took a project of my coleague which was made on his pc and that project also failed to load on mine. Might be worth mentioning that i had also encountered http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/123384.aspx problem and used the provided solution before. 

  • HI Simas,

    ok, did it work previously or have you always had this issue?  Do you get any error messages at all or are any logs generated (see the link to the wiki topic)?  On computers where the project works is the environment the same?  Was the import done the same?  Typically there is usually at least a bit of work needed to migrate something from IAR to CCS as they are two different compilers and therefore there are differences in the directives etc.  Have you tried reapplying the fix you referenced in case something has changed the redistributable C versions on you PC?

    http://processors.wiki.ti.com/index.php/Troubleshooting_CCS

    Please keep us informed.

    Best REgards,

    LIsa

  • I have tried all the suggestions mentioned in the wiki before and retried them now. Problem still persists. I have had this problem since installing CCS. It should not be related to code migration since the other project and a test hello world project i made after your first post have been made on CCS. Enviroment is exactly the same (Version: 4.2.4.00033). No error messages popup or appear on the console. the only output console provides is MSP430: [Program loaded. Code Size - Text: 4990 bytes  Data: 64 bytes]. Also no new information is generated on the logs when starting a debug session (except debug server log which repeatedly spams the text shown below after copying the program to the cpu). Also i reinstalled the MSVC fix whch also shown no improvement.

    0x0000073C 5  COM_DBG_IF C: dsDebugger::Poll()
    0x0000073C 4 MSP430 POLL I: TimeToPollAgain() target is idle and needs polling in 0 ms
    0x0000073C 3 MSP430 POLL C: Polling with state STATE_IDLE and status EVENT_DSP_HALT
    0x0000073C 3 MSP430 SYNC C: IsSyncReady(): syncAction = 0x00000000, syncSetup = 0x00000000, syncState = SYNC_FREE_RUN
    0x0000073C 3 MSP430 SYNC R: IsSyncReady() = 0: syncAction = 0x00000000, syncSetup = 0x00000000, syncState = SYNC_FREE_RUN
    0x0000073C 3 MSP430 GTI C: GTI_STAT_EX2( 0x215B6E28, 0x2004F608 )
    0x0000073C 3 MSP430 GTI R: GTI_STAT_EX2( 0x215B6E28, *0x2004F608 = { 0x6, 0x100, 0x202, 0x0, 0x400, 0x0, 0x0, 0x1000, } ) = 0
    0x0000073C 3 MSP430 STATE I: Target execution state changed to STATUS_HW_BKPT_HIT
    0x0000073C 3 MSP430 POLL R: Poll() returning
    0x0000073C 4 MSP430 POLL I: TimeToPollAgain() target is idle and needs polling in 5000 ms
    0x0000073C 4  POLL I: TimeToSleep() found shorter sleep time of 5000 ms from class DevicePollFrequencyManager
    0x0000073C 5  COM_DBG_IF R: dsDebugger::Poll(timeToNextPoll = 5000) = S_OK .

  • Hi Simas,

    if possible I am going to see what we can digest from these logs. 

    So is the screenshot what you see when you click the debug button?  (This is the button that looks like a green bug)  Have you selected this button?

    Have you been able to tell whether the code does load as your console message seems to indicate?

    What might be unique to your setup that your setup seems to be doing this where others don't?

    Best Regards,
    Lisa

  • Yes. the view in the screenshot is the one i see after clicking debug button. Also i am unable to verify if the code was successfully downloaded but i think that either it fails to download or CCS fails to finish the download process, because debugger interface still had MODE led active (which, to my knowledge, usually implies device is busy). also i am unable to provide the logs at the moment because i left the office for today.

  • Hi Simas,

    The screen capture indicates the debug session is already started, as mentioned by Lisa that the console text indicates code is download to the target. Also, the red button in the console view indicates the target is running and you can hit the red button to terminate the debug session. I am guessing that you might have accidentially closed the 'Debug' view. You can manually open the debug view from the 'View' main menu or do a reset perspective from the 'Window' menu.

    Regards,
    Patrick

  • Hi Simas,

    I just wanted to check whether Patricks tip was helpful.  It does seem like you managed to get the views into a bit of a confused state.

    Best Regards,

    Lisa

  • Yes it did indeed answer my question. Sorry for slacking on verifying it :)

  • No problem, glad to hear.

    Best Regards,

    Lisa