On 2008-01-17, Peter Jansen <[email protected]> wrote:

>> slaa149c does not provide anything about JTAG functionality necessary 
>> for debugging, namely breakpoints and cpu registers access.
>> It only describes memory access and flash/fuse programming.
>
> From what I can see, the only thing missing is the setting of
> break points, and reading of registers. Reading/writing of
> memory is there, programming flash, setting the PC, and
> Run/Halt is there.

My main problem right now is that even programming flash
doesn't work on the F2330.  :/

> So what about starting the programming effort to implement
> gdbproxy (the commands received from gdb are quite simple)
> whith the information in slaa149c as a starting point. Then
> once the run/halt/memory read/write and flash read/write are
> implemented we can set about figuring out how TI set
> breakpoints and read registers from a part attached to the
> JTAG port.

Is there really enough info to implement everything except
breakpoints and register access?  A gdb-proxy without
breakpoints and register access would still be pretty useful.
Just being able to halt the processor and examine RAM would be
great.

> There are a few examples of gdbproxy implementations around
> maybe a good place to start would be
>
> http://avarice.sourceforge.net/
>
> This would get the gdb end of things working, cut in the JTAG
> stuff from slaa149c get that working and the work to decode
> the register operations and breakpoints should not be that
> difficult.
>
> In the long term I think it would be best to avoid the
> NDA/binary library because your then locked in. Put the effort
> into an open solution if TI are not going to come to the (open
> source) party.
>
> There are quite a few examples where the register
> read/breakpoints are implemented (although probably covered by
> no reverse engineering licence agreements) IAR/Code studio
> etc.

The actual operations we care about are in the msp430.dll
files, not in the IAR stuff.

-- 
Grant Edwards                   grante             Yow! Sometime in 1993
                                  at               NANCY SINATRA will lead a
                               visi.com            BLOODLESS COUP on GUAM!!


Reply via email to