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.

MSP430F5638: Load Program Error

Part Number: MSP430F5638
Other Parts Discussed in Thread: MSP-FET

Using CCS v10, MSP-FET, and MSP430F5638 on a custom SBC. Occasionally I get the following error when trying to program the MCU.

MSP430: Trouble Writing Memory Block at 0x8000 on Page 0 of Length 0x5e: Could not erase device memory

MSP430: File Loader: Verification failed: Target failed to write 0x08000

MSP430: GEL: File: D:\Product\DIGS\Code\DC2\MCU1-430\430-Test\MSP430-Testbed-01\Debug\MSP430-Testbed-01.out: Load failed.

Is there a problem with the MSP-FET?

This might be related to another post I created today: CCS v10 Program stalls on Step Return Arrow

  • Hello,

    Make sure your JTAG interface circuit matches what's recommended in the MSP430 Hardware Tools User's Guide. Also, you can try slowing down the JTAG clock speed under the target configuration settings in your CCS project. If you're unfamiliar with how to do that, I would recommend searching the forum for related threads.

  • Hi James,

    Thanks for the reply. This happens pretty rarely but does sometimes. I've been developing code for over a year on this board using this MSP-FET. It's the JTAG circuit from either the DS or UG. I'll look into slowing down the JTAG clock speed in CCS. Is there someway of resetting or testing the MSP-FET itself?

  • I've looked through the CCS Project Settings and don't see anything for setting JTAG clock speeds. Where is it?

  • There are several ways to get to these settings. I normally double-click the .ccxml file in the "targetConfigs" folder under your CCS project folder. Then, click the "Advanced" tab at the bottom of the window that pops up. On the next screen, click "MSP430" on the left. You should be able to see the "JTAG/SBW Speed" option on the right. Be sure to click "Save" after making any changes.

  • This problem caused the "Program stalls on Step Return Arrow" issue. See more details under that case. Ultimately it was caused by the jumper in the JTAG circuit to switch between VCC-TOOL, or VCC-TARGET power. Removing the jumper, so far, has fixed the problem for at least the past couple of days. The JTAG circuit I used on the custom SBC came from the TI MSP430 Hardware Tools Users Guide, Fig. 2-1, P. 21, 4 wire JTAG connection. I'm using a separate power supply for the SBC, but the MSP-FET seems happier with its own supply via USB.

    Thanks James for your help.

**Attention** This is a public forum