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.

Attach to Running MSP430

Other Parts Discussed in Thread: MSP430F5437A, MSP430F6638, MSP430F1611, MSP430F5419A

I am trying to connect to an already running MSP430 using JTAG with the MSP430FET.  I would like to connect to the MSP430 without having it restart or load new code onto the MSP430.  Is this even possible on the MSP430?

I am using CCS 4.3.2 and I have a target configuration set up for the MSP430F5437a. 

I have tried modifying the CCS Debug properties under target by unchecking the settings that state anything about resetting/restarting the target/processor.  If someone could tell me or point me in the right direct for how I need to set up my Debug Properties to allow for connecting to an msp430 with out restarting it would be appreciated.

Thanks

  • Posting an answer in case someone searches for this topic...

    In CCS V5.2 or later this option can be found under Project --> Properties --> Debug and Program/Memory Load options and Auto run and launch options.

  • Dear Priya Thanigai,

    I'm very new to MCU programming.  I have a very simple case that I need your help with.  I'm trying to program a "MSP430F6638" MCU to generate a signal shown below:

    Amplitude:  3.3 V

    Period:  10,000 us (Frequency is 100 Hz)

    High Time:  10 us

    Low Time:  9999 us

    Duty Cycle:  0.1%:99.9%

    I read through one of the sample codes shown below:

    int main(void)
    {
      WDTCTL = WDTPW + WDTHOLD;                 // Stop WDT
      P1DIR |= BIT2+BIT3;                       // P1.2 and P1.3 output
      P1SEL |= BIT2+BIT3;                       // P1.2 and P1.3 options select
      TA0CCR0 = 512-1;                          // PWM Period
      TA0CCTL1 = OUTMOD_7;                      // CCR1 reset/set
      TA0CCR1 = 384;                            // CCR1 PWM duty cycle
      TA0CCTL2 = OUTMOD_7;                      // CCR2 reset/set
      TA0CCR2 = 128;                            // CCR2 PWM duty cycle
      TA0CTL = TASSEL_2 + MC_1 + TACLR;         // SMCLK, up mode, clear TAR

      __bis_SR_register(LPM0_bits);             // Enter LPM0
      __no_operation();                         // For debugger

    Question 1:  What output pin gives us the signal?  I mean, what pin number (out of 100 on the board - the signal I need to connect to a scope).

    Question 2:  I notice that this code gives you a period fo 500 us with the mentioned duty cycles.  Can I just change the value of TA0CCR0 in such a way that it gives me 10000us?  I need to use a timer and clock to give me a period of 10,000 us with high time of 10 us.  Basically, duty cycles will be 9999 us and 1 us.  How can I achieve this?

    If it's possible, can you please modify the code and send it to me? (according to the above questions)

    Thank you very much

    Arash

  • Did you figure this out? I'am having the exact same problem with CCS 4.1.1 and MSP430F1611

  • I have tried all the solutions posted in this forum and the one suggested on http://processors.wiki.ti.com/index.php/MSP430_-_Connecting_to_a_running_target. However, my MSP430 is still resetting when I try to attach a debugger.

    My configuration: CCS6, MSP430F5419A, TI MSP430-USB-Debugger (Spy-Bi-Wire)

    My settings: I disabled everything related to resetting or halting in the Project Settings and in the Debug Launch Configuration.

    My procedure: Connect debugger physically. Power the MSP430. Launch the debug session. -> Reset occurs

    What's wrong?

  • SBW uses the RST pin as I/O pin for the JTAG connection. It is possible (the only explanation that comes in mind) that when starting the debug session, the MSP sees a ‘reset’ on this pin rather than an SBW signal. This might be a racing condition or a problem with the signal levels.

    Do you have anything connected to the RST pin? IIRC, the 54xxA (the non-A for sure) does not have the internal pull-up on the RST pin enabled at power-on (all others of the 5x/6x family do). So you might need an external pull-up, and maybe a 2.2nF capacitor to GND.

**Attention** This is a public forum