On Jul 2, 2011 6:15 PM +0200, Øyvind Harboe wrote:

> Use the Source Luke. The end of the command is not linefeed but 0x??.
> There ought to be updated docs. Patch?
> 

Great tip!  I found it inside the tcl_server.c file; the end of
character used by the openocd tcl server is 0x1a.
I managed to get the result I was looking for, a simple application
which usage goes like:

        program </path/to/romfile.bin>

The objective was to automate the ROM flashing procedure from Eclipse
IDE when working with the LM3S8962 kit. The app can be configured as an
"external tool" and launched at the touch of a button. It could also be
called inside a custom makefile. The use of the tcl_server is a great
feature to me, because an openocd daemon is already running most of the
time, to provide debugging facility.

I have made a C version and a BASH (w/ netcat) version of such a small
app. I also toyed with tcl to make a telnet-like utility to test
openocd's tcl server. 

I also gathered a LM3S8962.cfg file on the internet and refactored it in
to a similar way to what could be seen inside
the /usr/share/openocd/scripts folder. I can post all that stuff if
anyone is interested.

I'd like to see if I can produce a patch for the user manual, but first
I'll have to get the doc building. From current git, when I type "make
pdf", it fails with the following message:

        This is `epsf.tex' v2.7.4 <14 February 2011>
        ) localization, formatting, and turning on texinfo input
        format.)
        (./openocd.aux)
        ./../../doc/openocd.texi:12: I can't find file `version.texi'.
        @temp ->@input version.texi 
                                    
        @includezzz ...and @input #1 }@expandafter }@temp 
        
        @popthisfilestack 
        l.12 @include version.texi
                                  
        (Press Enter to retry, or Control-D to exit)
        Please type another input file name
        ./../../doc/openocd.texi:12: Emergency stop.
        @temp ->@input version.texi 
                                    
        @includezzz ...and @input #1 }@expandafter }@temp 
        
        @popthisfilestack 
        l.12 @include version.texi
                                  
        ./../../doc/openocd.texi:12:  ==> Fatal error occurred, no
        output PDF file prod
        uced!
        
        Transcript written on openocd.log.
        

I have attached the openocd.log file.

Salutations!


This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) (format=pdfetex 2011.5.19)  4 JUL 2011 18:33
entering extended mode
 restricted \write18 enabled.
 file:line:error style messages enabled.
 %&-line parsing enabled.
**\nonstopmode \input ./../../doc/openocd.texi
(./../../doc/openocd.texi (/home/maxim/devel/openocd/doc/texinfo.tex
Loading texinfo [version 2009-08-14.15]:
\bindingoffset=\dimen16
\normaloffset=\dimen17
\pagewidth=\dimen18
\pageheight=\dimen19
\outerhsize=\dimen20
\outervsize=\dimen21
\cornerlong=\dimen22
\cornerthick=\dimen23
\topandbottommargin=\dimen24
\headlinebox=\box16
\footlinebox=\box17
\margin=\insert252
\EMsimple=\toks13
\groupbox=\box18
\groupinvalidhelp=\toks14
\mil=\dimen25
\exdentamount=\skip18
\inmarginspacing=\skip19
 pdf,
\tempnum=\count27
\lnkcount=\count28
\filename=\toks15
\filenamelength=\count29
\pgn=\count30
\toksA=\toks16
\toksB=\toks17
\toksC=\toks18
\toksD=\toks19
\boxA=\box19
\countA=\count31
\nopdfimagehelp=\toks20
 fonts,
\sffam=\fam8
\textleading=\dimen26
 markup,
\fontdepth=\count32
 glyphs,
\errorbox=\box20

page headings,
\titlepagetopglue=\skip20
\titlepagebottomglue=\skip21
\evenheadline=\toks21
\oddheadline=\toks22
\evenfootline=\toks23
\oddfootline=\toks24
 tables,
\tableindent=\dimen27
\itemindent=\dimen28
\itemmargin=\dimen29
\itemmax=\dimen30
\itemno=\count33
\multitableparskip=\skip22
\multitableparindent=\skip23
\multitablecolspace=\dimen31
\multitablelinespace=\skip24
\colcount=\count34
\everytab=\toks25
 conditionals,
\doignorecount=\count35
 indexing,
\whatsitskip=\skip25
\whatsitpenalty=\count36
\secondaryindent=\skip26
\partialpage=\box21
\doublecolumnhsize=\dimen32
 sectioning,
\unnumberedno=\count37
\chapno=\count38
\secno=\count39
\subsecno=\count40
\subsubsecno=\count41
\appendixno=\count42
\absseclevel=\count43
\secbase=\count44
\chapheadingskip=\skip27
\secheadingskip=\skip28
\subsecheadingskip=\skip29
 toc,
\tocfile=\write0
\contentsrightmargin=\skip30
\savepageno=\count45
\lastnegativepageno=\count46
\tocindent=\dimen33
 environments,
\lispnarrowing=\skip31
\envskipamount=\skip32
\circthick=\dimen34
\cartouter=\dimen35
\cartinner=\dimen36
\normbskip=\skip33
\normpskip=\skip34
\normlskip=\skip35
\lskip=\skip36
\rskip=\skip37
\nonfillparindent=\dimen37
\tabw=\dimen38

defuns,
\defbodyindent=\skip38
\defargsindent=\skip39
\deflastargmargin=\skip40
\defunpenalty=\count47
\parencount=\count48
\brackcount=\count49
 macros,
\paramno=\count50
\macname=\toks26
 cross references,
\auxfile=\write1
\savesfregister=\count51
 insertions,
\footnoteno=\count52
\SAVEfootins=\box22
\SAVEmargin=\box23

(/home/maxim/opt/texlive/2010/texmf-dist/tex/generic/epsf/epsf.tex
This is `epsf.tex' v2.7.4 <14 February 2011>
\epsffilein=\read1
\epsfframemargin=\dimen39
\epsfframethickness=\dimen40
\epsfrsize=\dimen41
\epsftmp=\dimen42
\epsftsize=\dimen43
\epsfxsize=\dimen44
\epsfysize=\dimen45
\pspoints=\dimen46
)
\noepsfhelp=\toks27
 localization,
\nolanghelp=\toks28
\countUTFx=\count53
\countUTFy=\count54
\countUTFz=\count55
 formatting,
\defaultparindent=\dimen47
 and turning on texinfo input format.)
(./openocd.aux)
\openout1 = `openocd.aux'.

@cpindfile=@write2
@fnindfile=@write3
@vrindfile=@write4
@tpindfile=@write5
@kyindfile=@write6
@pgindfile=@write7

./../../doc/openocd.texi:12: I can't find file `version.texi'.
@temp ->@input version.texi 
                            
@includezzz ...and @input #1 }@expandafter }@temp 
                                                  @popthisfilestack 
l.12 @include version.texi
                          
(Press Enter to retry, or Control-D to exit)
Please type another input file name
./../../doc/openocd.texi:12: Emergency stop.
@temp ->@input version.texi 
                            
@includezzz ...and @input #1 }@expandafter }@temp 
                                                  @popthisfilestack 
l.12 @include version.texi
                          
*** (job aborted, file error in nonstop mode)

./../../doc/openocd.texi:12:  ==> Fatal error occurred, no output PDF file prod
uced!
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to