Hi Vitaly, and Grant.

What more is needed except breakpoints and uC description  files to get
JTAG (CPU control, RAM reading, FLASH writing) working, like described
here: http://www.ti.com/litv/pdf/slaa149c ?

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.

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.

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.

Ideas?

Regards

--
Peter Jansen
STS
Antarctic Division
203 Channel Highway
Kingston
TAS  7050
AUSTRALIA
Phone +61 3 6232 3533

___________________________________________________________________________

   Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not 
the
intended recipient, you are notified that use or dissemination of this 
communication is
strictly prohibited by Commonwealth law. If you have received this transmission 
in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 
3209 and
DELETE the message.
       Visit our web site at http://www.antarctica.gov.au/
___________________________________________________________________________

Reply via email to