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.

Program not loading on to MCU

Other Parts Discussed in Thread: MSP430G2231

I am using a LauchPad in conjunction with a MSP430G2231 MCU.  The first time I tried to load a program onto the microcontroller (the example "blinking lights" program), it loaded fine and overrode the previous program (the temperature sensor preloaded program).  I changed a few minor things in the operation of the program (flashing the other light as well) and retried it.  The new program did not load.  There were no errors, and the program had the appearance of loading; it just would not load.

I reverted the program and tried changing it in other ways, like changing the blink speed.  It compiled fine, it just didn't show up on the microcontroller.  The one error that I encountered was something about not being able to access memory block #00F or something like that.  All the other times it worked fine, but did nothing to change the microcontroller's behavior.

Finally, I just tried setting the LED to be solid.  Once again, it compiled fine, but the LED kept flashing.

One minor problem is that the "Run" option is disabled in my Code Composer Studio.  That seems weird, but I just unplugged the USB and replugged it in and it ran fine.

Can you help me?

Sorry about the length.

  • Hi Robert,

    did you try a fresh workspace?  You got no build errors?  What version of CCS are you using? What OS?  What version code generation tools?  What project settings?|

    It could be something as simple as the USB connection.  I have seen the launchpad be unhappy with a particular USB port on one of my hubs.  Please keep us informed.

    Best Regards,
    LIsa

  • Sorry, I'm new to this. I am using CCSv4, as far as I know.  I am running Windows 7 on a Core 2 Duo with 2 GB of RAM.  I just tried using a different USB connection.  I have no idea what project settings I am using.  I think I have also tried switching the workspace, though I don't know if I really did or not.

  • Hi Robert,

    could you send screenshots?  This sounds odd. What do you mean the run button is disabled?  What do you see in the problems view? 

    Best Regards,
    Lisa

  •  On the "Target" menu, the "Run" option is grayed out and impossible to select.  Also, there is no "run" button on the toolbar, and pressing F8 does not do anything.

    The problems view has an empty table and says: "0 errors, 0 warnings, 0 infos (filter matched 0 out of 3 items)".

  • Hi Robert,

    it looks like you may not be getting to the debug perspective for some reason.

    What happens if you click on the debug button?  (green bug)   In the top right hand corner what do you see?  After you try to launch do you see CCS Debug?

    Best Regards,
    Lisa

  • Clicking the green bug makes CCS appear to compile and download the program.  What is "CCS Debug"?

    The top right corner has a depressed button with a green bug and the word "Debug" on it.  When I mouse over it, it says "Debug Perspective".

  • Hi Robert,

    CCS is based on Eclipse which has the concept of perspectives.  It automatically tries to give you windows and options that are context sensitive.  For example in CCS Edit ... you will have an editor, problems window, project explorer ... things useful for editing and buidling and compiling.  When you hit debug, it builds, loads and changes to the debug perspective giving you the run, step over, step into etc as well as a slightly different menu setup.

    I guess this is what you now see.  I would recommend getting familiar with CCS and looking at some of our wiki material.

    http://processors.wiki.ti.com/index.php/Category:Code_Composer_Studio_v5

    So is everything going as it should now?

    Best Regards,
    Lisa

  • Robert Sussman said:

     On the "Target" menu, the "Run" option is grayed out and impossible to select.  Also, there is no "run" button on the toolbar, and pressing F8 does not do anything.

    You may have inadvertantly closed out the Debug view. Please see this FAQ and let us know if that helps.

  • I did switch to the "Debug" view and the Run button now works.

    I tried switching to the C/C++ interface.  I rebuilt the project and got an error:

    MSP430: Trouble Writing Memory Block at 0xf800 on Page 0 of Length 0x4a: Could not write device memory
    Cannot write to target
    Hopefully this helps.
  • Hi Robert,

    what do you mean by switching to the C/C++ interface?  Do you mean back to the CCS Edit perspective?  Did you press the red button to end the debug session first?  DId you modify anything? 

    Again, have a look through some of the FAQs and our wiki to become familiar with CCS. 

    Best Regards,
    LIsa

  • The problem is solved.  I somehow had two files open, and I was editing one while compiling the other.   It now works!

    Thank you for your help.

  • Hi Robert,

    very glad to hear it got sorted.  All the best with development.

    Best Regards,

    Lisa