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.

Programming TSSOP MSP430G2231 with launchpad

"MSP430: Trouble Writing Memory Block at 0xf800 on Page 0 of Length 0x56: No error
Cannot write to target"

While trying to program a TSSOP MSP430 on a PCB, I get an error that says "Load program Error." in CCSv5

I have an MSP430 on a PCB which breaks out the 4 J-Tag pins. (VCC, Test, Reset, and Ground).

The PCB design enables it to be isolated from the rest of the circuit while programming as well.

This is the exact chip as what comes with the launchpad in a different packaging. I can program on the DIP package just fine, so I know it's possible to download the code.

Any ideas?

Thanks

  • SBW is a high-frequency synchronous signal. Be sure that your breakout connection is short, has low parasitic capacitance and low crosstalk. Since it is a serial protocol, it heavily depends on exact timing. Your wiring might disturb it too much.

  •  Hi, cable in excess of 200mm can trouble programming, I checked with 1 meter cable and programming was possible but not reliable with max speed of SBW.

     The worst condition came from reset capacitor, if you wired as from application 2.2nF this capacitance is excessive, so try remove or simply insert an 1K resistor in series to capacitor. (see picture)

     Regards

  • Roberto, your drawing is nice, but not really the 'real thing'.

    Because the 21k resistor between RST and the capacitor causes a voltage drop that mostly invalidates the purpose of the capacitor. Because the chargin current causes 1/3 of the voltage drop over the 21k and therefore below RST, raising it. And the purpose is the keep RST as low as possible on power-up.

    A better way is to attach the 47k to the capacitor instead of RST. Then the 21k resistor can be much, much smaller (1k) and the capacitor can even be larger (100n)

  • It's R2 at 1K.

  • eltury said:
    It's R2 at 1K.

    Ah, my old and weary eyes! :) Then it's just connecting the 47k to the other side of the 1k. For even a little better performance.

  •  

    Jens-Michael Gross said:

    Ah, my old and weary eyes! :)

    Hi Jens, don't worry about .. your trouble is also mine and no way to fix them ;) :(

     That drawing is for existing SMD circuits, so I prepare a capacitor with 1K series resistor and I place on pads where originally capacitor where placed.

     Yes on new design the best is to insert resistor between RC node and reset-JTAG node, a 10K is more appropriate to completely isolate reset circuitry and capacitor can be any value, 10nF is more than adequate.

     Regards

     Roberto

**Attention** This is a public forum