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.

MSP430G2553IRHB32R Debug issues

Other Parts Discussed in Thread: MSP430G2553, MSP-FET

Hi,

I just received my new PCB with the MSP430G2553IRHB32R.
I failed to connect it to the FET.

Sometime I get the following message: "MSP430: Error connecting to the target: Unknown device".

Most of the time I get the following messages:

MSP430: Trouble Writing Memory Block at 0xc000 on Page 0 of Length 0x6a2: Could not write device memory
MSP430: File Loader: Verification failed: Target failed to write 0xC000

Before going to PCB fabrication, I worked with MSP430G2553 DIP 20P and it worked perfect.

Any ideas?

Attached the schematics.

Thanks,

Itay Cohen

GLUCOME XJ_Y.pdf

  • Hello Itay,

    How are you connecting J1 to the MSP-FET? Are you connecting to the correct pin on the FET for your power scheme?
  • Hi,

    I'm connecting J1 as following:
    J1.1 [VSYS] --> MSP-FET.2 [VCC_TOOL]
    J1.2 [SBWTDIO/RST] --> MSP-FET.1 [TDO/TDI]
    J1.3 [SBWTCK] --> MSP-FET.7 [TCK]
    J1.4 [GND] --> MSP-FET.9 [GND]

    Thanks,

    Itay
  • Hello Itay,

    If you are connecting VSYS to MSP-FET.2 (VCC_TOOL), then please make sure that the MSP-FET is the only source of power for your device. If the battery in your schematic is connected, then please connect VSYS will need to be connected to MSP-FET.4 (VCC Target).

    Also, SBWTCK on the MSP430, needs to be connected to TEST/VPP (MSP-FET.8) and to TCK (MSP-FET.7) through a 330 ohm resistor. Please see the SBW JTAG connection diagram (Figure 2-2) for this device in the HW User Guide for the correct connections for SBW.

  • Hi,

    There is not other power source connected to the target. Only the MSP-FET.
    I'm not using the fuse blow functionality so following the user manual, I should not connect TEST/VPP to TEST/SBWTCK and should not populate R2 (330-ohm). This is following comment C on page 23.
    Is my understanding correct?

    Any other ideas?

    Many thanks,

    Itay
  • Itay Cohen67 said:
    Any other ideas?

    The error messages you are getting suggest the SBW communication is intermittent, rather than completely dead. Some suggestions:

    1. In the Target Configuration, under the MSP430 set the JTAG/SBW Speed to "Slow".
    2. Measure the supply voltage on the MSP430G2553IRHB32R device. To support flash programing the supply voltage needs to be in the range 2.2V to 3.6V.

  • Hi,

    It looks like an unstable conditions.

    I managed to debug several times buts it's not stable.

    I couldn't find the JTAG/SBW speed control. I tried at Project-->Properties-->Debug-->MSP430 Properties-->Clock Control (attached screenshot).

    Supply voltage is 3v (from the debugger).

    What do you think?

    Thanks.

  • Itay Cohen67 said:
    I couldn't find the JTAG/SBW speed control.

    Sorry, my original post wasn't clear. The JTAG/SBW speed control is in the Target Configuration (.ccxml file):

    Itay Cohen67 said:
    Supply voltage is 3v (from the debugger).

    The voltage is OK.

    Itay Cohen67 said:
    What do you think?

    There was another thread where changing the JTAG/SBW speed to Slow made the debugging stable (https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/517265/1878833#1878833) which is why I suggested changing the JTAG/SBW speed. SBW is sensitive to the capacitance on the RESET/SBWTDIO pin, so maybe also worth checking that C3 on your circuit is the correct value.

  • I have problems with the MSP430G2 LP so maybe it's an issue with my computer setup.
    Still have some problems but able to work (1 of about 6 trails)...

**Attention** This is a public forum