So there I am, trying to do basic PLL init code using TCL.
All I have to do is read a register, modify the result, and
write it back ... write a register ... read a register and
do something based on a bitfield ... etc. Not what I'd call
pretty TCL code (is there such a thing?), but workable.
Except ... OpenOCD doesn't cooperate:
- "mdw 0x10000" doesn't return a value:
> set x [mdw 0x10000]
... spam
> puts $x
... nothing!
>
- But it does spew it into the server output log.
Ideally, neither of those should happen.
Is there a preferred approach here? My first thought is
to define "mrw" (etc) to read a single word and return
its value in the TCL-standard way, since "mdw" seems to
be overloaded with legacy prettyprint semantics.
- Dave
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development