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.

HELP, please: Newbie cannot start main() in MSP430 from CCS IDE. Thanks

Other Parts Discussed in Thread: MSP430F5529

Hi,


I am a total newbie at using the CCS IDE and TI's MSP 430 of any type.  (We are using msp430F5529 in particular.)  We are a very small group and we have a critical demo to do in a few days.  I was brought in at the last moment to fix some code bugs.  Now our engineer is suddenly in the hospital for heart surgery.

We had code that was sort of working in the device.  I was to fix (and I think I have fixed) some display output.  None of the program initialization has been changed.  Main() is supposed to set a bunch of registers and such, very little of which I understand, then it puts a fixed message into the display and goes on to perform the device's mission.  The program is being built by CCS successfully and is being sent to the device (I think) for which I get the following message in the CCS IDE:

      MSP430: Loading complete. Code Size - Text: 14812 bytes Data: 46 bytes.

And nothing happens; no message in the display, nothing.  I don't see any way to get CCS to simply start main().  The fact that I have not changed the program initialization at all also leads me to believe that main() is simply not being called.  We have not changed the hardware and we still use the same interface (MSP-FET430UIF) to talk to the device.

What has changed is that we (I) have a totally new install of CCS.

If anyone can tell me what to do to start the program I would greatly appreciate it.  I am trying to RTFM but I don't have a lot of time in the next few days before the important demo.

Thanks in advance,
Jeff Barry

  • Hi Jeff,
    Did you try to start a new project, one of the examples out of slac300e.zip
    for instance ?
    Just to check if the compiler is doing its job and that it will run on the uC.
    roelof
  • Hi,

    Jeff Barry said:
      I don't see any way to get CCS to simply start main(). 

    Check your project settings - go to project settings -> debug ->check that  Run to main option is selected.

    For safe side select 'large' data memory model and code memory model in processor options.And also select Run time memory model options -> Use large data memory model.

    Thank you,

    Smita P.

**Attention** This is a public forum