On Saturday 27 February 2010, Mariano Alvira wrote:
> On Sat, Feb 27, 2010 at 09:00:32AM -0800, David Brownell wrote:
> > On Thursday 25 February 2010, Mariano Alvira wrote:
> > > ---
> > 
> > Needs a patch comment.  
> 
> Ok. Do the subject lines not get added as patch comments? I figured
> they would since they are generated from the commit messages.

Patches need two kinds of descriptive metadata:

        - one-line summary ... $SUBJECT
        - patch description

The $SUBJECT should make sense when for example scanning the gitweb
summary of what changes have been made.  But since it has no details,
it's insufficient for anything except tracking broadly what changed.
In this case, it doesn't even identify who makes the chip or why any
OpenOCD user might care.

> 
> >What's an MC13224V?  Maybe:
> > 
> > The MC13224V is a FreeScale ARM7TDMI based IEEEĀ® 802.15.4 platform for
> > Zigbee and similar low-power wireless applications.   It uses PIP
> > (Platform In Package) technology, and boots from ROM which shadows
> > code from serial flash into RAM.
> 
> Sure. Thanks.

THat was my attempt at a decent description.   When combined with
the "add target/...cfg" summary, folk now have some real information.
In particular it mentions the unusual boot scheme:  the flash isn't
"on-chip" NOR (with execute-in-place) but "in-package" serial (which
needs to be shadowed into a relatively large SRAM).

I don't entirely "get" these chips which execute code from large SRAMs
instead of from NOR flash ... I had understood that the SRAMs use more
power than the NOR flash, so that most microcontrollers minimized the
quantity of SRAM they included (even at the cost of annoying the folk
writing code that might like more SRAM).


> 
> > > +
> > > +proc run {file} {
> > > +     puts "loading $file into location 0x00400000 and executing..."
> > > +     soft_reset_halt
> > > +     load_image $file 0x00400000
> > > +     reg pc 0x00400000
> > > +     resume
> > > +}
> > 
> > That's specific to your work environment; don't include it
> > in a file that's intended to be general purpose.
> 
> It's a handy procedure for anyone using the mc13224v to run an
> images. Is there anyway to include it or something like it?

Well, "handy" doesn't seem sufficient to require everyone using this
chip to have that.

This is however also sufficiently obvious (though I'd just "halt")
that most OpenOCD users should be able to whip that up easily.


> Are you worried about "run" interfering with some other name or do you
> not like that it always goes to 0x00400000? 

Those are both issues.  But more to the point, not everyone using
OpenOCD will need or want that ... and anyone who does need it
can easily craft their own.

That's more or less just a variant of a script already included in
the User's Guide:  section 5.5 "Project-Specific Utilities", the
very first script.  (You could "resume 0x00400000" and that would
be just a bit more concise.)

- Dave

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

Reply via email to