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.

MSP430G2553: IAR and debugger hang on LPM3 or LPM0

Part Number: MSP430G2553
Other Parts Discussed in Thread: ENERGYTRACE, MSP-FET

Tool/software:

Hi

am using the TI MSP430IFU debugger on SBW connection to this MCu in circuit.

am using the external VCC from the circuit.

doing a simple test with TA_0 to light LED every 1 second, using LPM3 or LPM0, the debug hangs and loses connection to MCU, 

I used a breakpoint after the LPM3 instruction but the program does not reach.

when I just download the code and detach the debugger and restart the circuit, it works fine.

am working with IAR version 18.

when I run the code without break points and use step in button it works until it reaches the LPM3 point and hangs.

the timer is sourced from a crystal 32.768Khz , the clock and timer initialization are all correct.

its just when ever I have a code without break points LPM it always hangs

whats the solution around it?

cheers

haider

  • In case it needs to be said: You should connect either VCC_TOOL or VCC_TARGET, but not both.

    I haven't used IAR in some time, but in general the MSP430 debuggers do fine with LPM. My experience is that debugger disconnects are most often electrical (I touched the "wrong" pin e.g.). Is there anything unusual about your LED circuit?

  • Hi, 

    power connection is correct!

    today I replaced the IFU with the launchpad, just disconnected the jumpers, connected the ground and the test and rest signals, power my circuit externally,

    it works like a charm, it steps in the LPM and goes to the ISR and exists the ISR and continue the flow, with single step or run with breakpoints.

    the Circuit VCC is 3.3V, the launchpad Vcc is 3.5V when measured with the IAR or a meter, 

    I tried removing the 2:2nF capacitor for the Rest startup in series with a 47k pull up resistor, in both ways on the launchpad works fine with and without the capacitor, for the IFU no change even without the capacitor!

    in the IFU, when you do the step in debug, it reaches the “bis.w   #LPM3, SR” instruction and it just hangs, an error message appears that cannot communicate with the target (or something like that) 

    but with the launchpad it works in both ways. What could possibly be the problem?

    is there another debugger probe that is more advanced, with more software breakpoints capabilities that one can buy?

    cheers

    haider

  • The FETUIF isn't a youngster, but I know of no particular problems with it. Depending on the model of your Launchpad (G2ET maybe?) its debug interface may be more modern than the UIF's. (EnergyTrace is one difference. I wonder if IAR is accidentally relying on that.)

    [Edit: Sorry, I forgot to answer your question. I think the MSP-FET is considered the state-of-the-art. (I expect I just created a Product: link up at the top of this thread.) Its big advantage over the Launchpad is a variable VCC_TOOL.]

  • Hi Haider,

    I think you should mean the MSP-FET430UIF. Due to it is a legacy debugger being replaced by MSP-FET. It have not been maintained for many years. So it maybe have some compatibility issue. I am not sure if IAR support the debugger firmware detection and update, you can try to use CCS to do the debug that CCS will do a debugger firmware detection and update, not sure if the latest firmware update can fixed this issue.

**Attention** This is a public forum