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.

Flash (Load) a program into MSP430 with CCS

Other Parts Discussed in Thread: MSP430F1611, MSP-FET

Hi,

it may be a basic question but I am not sure I understood the difference between the green bug and the green triangle when you are willing to flash the program you wrote into the microcontroller. I wrote a code for SPI communication between MSP430F1611 and a Bluetooth low energy module. I then connected the jtag interface to the microcontroller pins in order to be able to flash (upload/burn) the program on it. If I click the green bug nothing happens but as soon as I click the green triangle almost right next to it (the one used to RUN the code) it immediately starts to run and it works perfectly. I am afraid that it should work only clicking the green bug, right? Which is the actual difference between the two? 

Thanks.
Claudio.

  • Claudio:

    Reference: https://www.youtube.com/watch?v=uAb5MScflEo

    It looks like you have gotten into "Debug" mode vs. "Edit" mode. In Debug mode, clicking on the green triangle will actually run your program.

    The green triangle does not exist in the Edit mode, only in Debug.

    However, to get from Edit to Debug, you will need to load your code into flash - that is what the green "Bug" does when you are in edit mode.

    Hopefully, that helps. (By the way, the referenced video does a good job of showing you just what happens during code build, load, and run.)

     

  • Thanks Todd.
    I watched the video. What I want to ask and it's not actually clear to me is: when I click the green bug the code is flashed into the microcontroller right? At this point I can unplug the jtag wires and it should work, right? There is no need to click the green triangle otherwise it should always be connected to the PC in order to work.
    Obviously when I remove the jtag interface I need to power up the device, because removing the jtag interface would actually remove the power supply too from board where my controller is placed.

    Claudio.

  • Yes, after uploading the code by entering debug mode (the green bug), the cod eis on teh MSP and you can remove the JTAG. And then you'll need a separate supply.
    The FET430UIF or MSP-FET can adapt itself to an external supply. If the existing supply voltage is connected to Pin4 of the 14 pin JTAG header (instead to pin 2), then the FET won't provide a supply but rather adjust its signal levels to the existing supply voltage. This way you can plug and unplug the JTAG and leave your external supply connected all the time.

**Attention** This is a public forum