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: Error in read/write (debugging)

Other Parts Discussed in Thread: MSP430G2553, MSP430G2231

on debugging basic wifi application, the following error occurs.

Load program Error.

"MSP430: Trouble Writing Memory Block at 0xc000 on Page 0 of Length 0x26d9: Could not read device memory
MSP430: GEL: File: C:\ti\CC3000SDK\CC3000 SDK\MSP430G2553\Basic WiFi Application\Basic WiFi Source\Basic WiFi Application CCS\BasicWiFi Application\Debug\BasicWiFi Application.out: Load failed."

How to rectify this problem.?

Using launchpad: MSP430G2+MSP430G2553+CC3000

OS: Windows 8.1 and CCS 5.2

Thanks in advance.

  • Hi,

    the answer to this question has been answered in several topics:

    just Google : MSP430: Trouble Writing Memory Block at ....

    Now,

    - Verify that you include the right .h => #include <msp430g2553.h>

    - That the target micro controller of your project is in fact the MSP430G2553

    - Right click your project and click clean

    - Try to upload again.

     

    If still doesn't work, try a simpler program like hello world or Blinking Led, to make sure your MCU is not damaged...

     

    Cheers

    Ness

  • Hi Ness,

    I tried a blinking LED. It worked at first time. But after altering the program a little, the debugging failed.

    Now even the basic LED program doesn't write successfully  

    MSP430: Trouble Writing Memory Block at 0xfffe on Page 0 of Length 0x2: Could not write device memory
    MSP430: GEL: File: C:\Users\SQT\workspace_v5_2\Blink_LED\Debug\Blink_LED.out: Load failed.

    Tried changing the memory location of RESET(FFFE) in lnk_msp430g2553.cmd to some random locations.But still it doesn't work.

    Is there a possibility that new TI sample just received is failure? If its so, how to find out which all locations have such read/write errors?

    Thanks & regards,

    Mithun 

  • I wouldn't mess with the .cmd files...

    Good that you can see the problem with the BlinkLED.

    we are getting closer, although  it is difficult to have a broken MCU...

    Now, i suggest:

    - try to clean the project and debug again.

    if it doesn't:

    - Delete the project (check the delete files) import it again and try...

    Meanwhile change the topic's name to Error tousle writing memory...

    I cannot help you that much, but certainly other people will, when they see the right topic title...

  • Tried cleaning and rebuilding. Imported fresh project from the CC3000 SDK. But still it fails on debugging.

    Also the blink LED program can be written sometimes only(after several clean build). The following error occurs.

    "MSP430: Trouble Writing Memory Block at 0xfffe on Page 0 of Length 0x2: Could not write device memory
    MSP430: GEL: File: C:\Users\SQT\workspace_v5_2\Blink_LED\Debug\Blink_LED.out: Load failed."

    I tried with another msp430g2553, but still some problem on writing. 

    Tried CCSv5.2 and CCSv6.0, but for the Wifi application memory read write error occurs.

    Is there any specific voltage or any other settings in order to write into MSP430G2553?

    Then i tried writing an LED program in msp430g2231. It works perfectly. Thus i guess, launchpad is OK.

  • http://processors.wiki.ti.com/index.php/MSP430_LaunchPad_Firmware_Update

    The problem was resolved after this launchpad firmware update. Now working perfectly.

    Thanks

    Ness

**Attention** This is a public forum