> DO you know if the bug is just in documentation, or also in code?
I think, there is a mistake (a typo) the output of 'help arm" command.
For example, a typical step for initializing PPMRR in iMX35 microcontroller, 
the code from the bootloader:
---
ldr r0, 0x40000015
mcr p15, 0, r0, c15, c2, 4
---
So, op1 = 0; CRn = c15; CRm = c2; op2 = 4

And now a piece of script tcl/target/imx.cfg, which does the same thing:
---
proc setc15 (regs value) (
  arm mcr 15 [expr ($ regs>> 12) & 0x7] [expr ($ regs>> 0) & 0xf] [expr ($ 
regs>> 4) & 0xf] [expr ($ regs>> 8) & 0x7] $ value
)
setc15 0x042f 0x40000015
---
The order of arguments corresponds to the documentation.

-- 
Regards,
Alexei Babich, circuit design engineer, Rezonans plc., Chelyabinsk, Russia
http://www.rez.ru
Jabber ID: [email protected]
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to