Newbie: MSP430, Could not write device memory

1,564 views
Skip to first unread message

DarekPe

unread,
Feb 7, 2011, 4:38:21 PM2/7/11
to TI Launchpad, pelka...@gmail.com
Hi,

I'm experiencing problem with my Launchpad and since this is my first
time with microcontrollers I am a total beginner and I need your help.

The problem:
I've started exactly as stated in tutorials for MSP430G2231 - run CCS,
created new project with code provided example (led blinker).
Unfortunatelly compilation ends up with following error:

MSP430: Trouble Writing Memory Block at 0xc000 on Page 0 of Length
0x4a: Could not write device memory
Cannot write to target

After I've got it first time, the default application has stopped and
never ran again, so now my launchpad is not doing anything, there is
only power led on.

How can I fix this? What is the cause of this error and why my
Launchpad is not responding?

Environment: MSP430G2231, Launchpad MSP-EXP430G2, CCS v4, WinXP

Thanks,

Darek

Old_Cow_Yellow

unread,
Feb 9, 2011, 11:55:18 AM2/9/11
to TI Launchpad
Your G2231 has 2KB of flash from 0xF800 to 0xFFFF. Thus you cannot
write to Memory Block at 0xC00.

CCS is huge and has all kinds of capabilities. But it still cannot
write that block. In stead, it probable erased all the memory (0xF800
to 0xFFFF) of your G2231. The calibrations may have been erased too.
Chances are, no other damages done.

If I were you, I would switch to a lesser tool which I know how to use
or can learn how to use. I gave up on CCS a long time ago.

George Lowry

unread,
Feb 9, 2011, 11:00:27 PM2/9/11
to TI Launchpad
> I gave up on CCS a long time ago.

What are you using?
Thanks!

On Feb 9, 8:55 am, Old_Cow_Yellow <lichen.wang.acti...@gmail.com>
wrote:

Old_Cow_Yellow

unread,
Feb 10, 2011, 12:19:42 AM2/10/11
to TI Launchpad
On Feb 9, 8:00 pm, George Lowry <drydigg...@gmail.com> wrote:
>
> What are you using?
> Thanks!
>

I use IAR KickStart. It is not any better than CCS. As compared with
CCS, it has less features (but already too much for me).

Harri Haataja

unread,
Feb 10, 2011, 2:51:05 PM2/10/11
to ti-lau...@googlegroups.com
On 10 February 2011 07:19, Old_Cow_Yellow <lichen.wa...@gmail.com> wrote:
> On Feb 9, 8:00 pm, George Lowry <drydigg...@gmail.com> wrote:
>> What are you using?
> I use IAR KickStart. It is not any better than CCS. As compared with
> CCS, it has less features (but already too much for me).

So, GCC is the only one that provides a sane compiler and simple
deterministic build tools.
Plus, you get to pick your editor and have the environment be as smart
and/or simple as you want.

--
I appear to be temporarily using gmail's horrible interface. I
apologise for any failure in my part in trying to make it do the right
thing with post formatting.

bo

unread,
Jul 22, 2012, 10:15:38 PM7/22/12
to ti-lau...@googlegroups.com
I had the same error message until I did the following:
Right-click on the top-level project (in the 'C/C++ Projects' panel) and then 'Open Target Configuration'.  Check the Connection is set to TI MSP430 USBx, where x is probably 1.  Under Board or Device, make sure the correct chip is checked and selected.
Reply all
Reply to author
Forward
0 new messages