Re: Cannot access memory at address 0xffff

Daniel Beer <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.user
Message-ID <[email protected]>
On Wed, Jul 24, 2013 at 09:04:33AM -0700, garyr wrote:
> If my question is not appropriate for this ng please suggest another.
> 
> A board I've built has a MSP430F1232 on it. I use an Olimex dongle to connect to
> the JTAG. I'm using GCC 4.3.6. When I start msp430-gdbproxy the device is
> recognized. When I run msp430-gdb and try to program the device I get the
> following:
> 
>     (gdb) set remoteaddress 64
>     (gdb) set remotetimeout 999999
>     (gdb) target remote localhost:2000
>     Remote debugging using localhost:2000
>     Cannot access memory at address 0xffff

This is normal for an erased chip.

>     (gdb) monitor reset
>     Resetting target - all methods...done
>     (gdb) erase
>     Erasing all flash memory
>     Erasing target flash - all...
>     MSP430 error: Could not preserve/restore device memory (12)

I always use "monitor erase" from GDB. Not sure if "erase" has the same
effect, since that's a GDB command, whereas anything prefixed with
monitor is sent to the server (gdbproxy) without GDB's interference.

>     (gdb) monitor reset
>     Resetting target - all methods...done
>     (gdb) load pmsa.elf
>     Loading section .text, size 0xa2e lma 0xe000
>     Load failed
> 
> There is nothing else on this board except the uP chip, voltage regulator (3.3
> volts) and a few bypass capacitors. The MSP430 was purchased from Digi-Key a
> couple of weeks ago. I've been very careful handling the chip, wearing a ground
> strap.
> 
> A similar board I built several years ago which also has a MSP430F1232 on it
> works correctly.
> 
> Any suggestions?

MSPDebug should support this chip (let me know if it doesn't work), and
would be easier to use if you just want to program, rather than debug. I
assume you're using an MSP430-JTAG-TINY? If you don't have any luck
getting gdbproxy working, try this:

    mspdebug olimex -j "prog pmsa.elf"

Cheers,
Daniel

-- 
Daniel Beer <[email protected]>    www.dlbeer.co.nz
IRC: inittab (Freenode)    PGP key: 2048D/160A553B

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.