Dirk Behme wrote:
>
> Btw.: Is there an option or a possibility to run a script when I 
> connect e.g. by telnet?
>
> I'm a little tired to always type the commands
>
> jtag tapenable omap3.cpu
> target create omap3.cpu cortex_a8 -endian little -chain-position 
> omap3.cpu
> dap apsel 1
> omap3.cpu mww 0x54011FB0 0xC5ACCE55 4
> omap3.cpu mdw 0x54011314
> omap3.cpu mdw 0x54011314
>
> manually.
>
Yes, we will put this in the target support but for now I suggest to use 
a Tcl script.
[ This is  true, but not tested ]
- create a file   omap.tcl
- put  "source [ <path.../>omap.tcl" in your cfg file

Now define some handy procedures in the omap.tcl file:

proc dbginit { } {
     dap apsel 1
     omap3.cpu mww 0x54011FB0 0xC5ACCE55 4
     omap3.cpu mdw 0x54011314
     omap3.cpu mdw 0x54011314
}

Now just giving the command  dbginit should do the trick.
If you edit the script you can rerun the source command without 
restarting openocd

Then we can collect Tcl procedures for different debug activities before 
we code into the C, we can actually test a large part of the A8 and OMAP 
support just with tcl scripts.
 
Regards,
Magnus

_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to