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.

CCS/MSP430F6435: MSP430: Trouble Writing Memory Block at 0x8000 on Page 0 of Length 0x1a: Could not write device memory

Guru 14805 points
Part Number: MSP430F6435
Other Parts Discussed in Thread: MSP-EXP430FR4133, UNIFLASH, MSP430WARE, MSP-FET, MSP430F67791

Tool/software: Code Composer Studio

Hello,

I am working on MSP430F6435 micro controller.

And I am using MSP-EXP430FR4133 launchpad  and CCS v6.2  to program and debug it. previously i was able to program and debug it.

but recently i have performed ERASE BY ADDRESS  operation on it (MSP430F6435) using uniflash tool. 

i had set the start and end address limits for erase operation as follows

START address=0x008000

END  address =0x047FFF

But now I m trying to program it but its showing error as shown below

MSP430: Trouble Writing Memory Block at 0x8000 on Page 0 of Length 0x1a: Could not write device memory
MSP430: File Loader: Verification failed: Target failed to write 0x08000

what can be the possible issue , and how to resolve it???

  • Hello,

    Can you make sure that you're using the correct target configuration (.ccxml) and linker (.cmd) files for the MSP430F6435 in your CCS project? Perhaps you're using different projects and something got changed in the one for the MSP430F6435 device.

    What I would do is select "Erase main memory only" instead of specifying the memory addresses for MAIN memory in UniFlash, close UniFlash, open a new code example project (can be found in MSP430Ware, may need to be installed) in CCS, and then see if you encounter the same issue when programming the device.

    What version of UniFlash are you using? Can you think of anything that may have been changed that could cause this? Do you have a MSP-FET that can be used instead of the eZ-FET on the MSP-EXP430FR4133 LaunchPad?

    I found many E2E threads online related to this issue (like the one below), so searching through these may help you resolve this.

    Regards,

    James

    MSP Customer Applications

  • I found this thread where there may have been an issue with the supply voltage, which would cause problems if the minimum required voltage for programming/erasing isn't met.

    Regards,

    James

    MSP Customer Applications

  • Thanks for the Response.

    1) yes I am using correct configuration files for msp430f6435.

    2) I followed the same procedure but still facing the same issue

    3)I am using uniflash v4.1.2.1329. sorry i don't have MSP-FET. 

    Even if try to erase the memory from uniflash i get same type of error.

    M totally stuck at this point ...

    No idea why this is happening

    Regards

    DC

  • Hello,

    Thank you for the additional details. It really helps, and I'm sorry you're experiencing this issue.

    Can you share a screenshot of the error message in UniFlash? Can you share a picture showing how everything's connected? I'm assuming that your connections are making contact and that the device is being powered up properly, since you can program the MSP430F6435 using CCS. I'm trying to duplicate your issue using the MSP-EXP430FR4133 LaunchPad and a MSP430F67791 as a target (since I don't have the MSP430F6435 at the moment).

    In the meantime, is the option in CCS to erase Main Memory before you download your code enough? If so, you wouldn't have to use UniFlash. Or is there a specific reason that you need to manually erase the device?

    Regards,

    James

    MSP Customer Applications

**Attention** This is a public forum