From: David B. <da...@pa...> - 2010-04-01 05:32:54
|
On Wednesday 31 March 2010, Alexei Babich wrote: > From: > Alexei Babich <a.b...@re...> (Rezonans plc.) > To: > ope...@li... > Date: > Today 1:14:51 am > > Hello everyone. > Sorry for the stupid question. > When I run the Open On-Chip Debugger 0.5.0-dev-00141-g33e5dd1 and connect via telnet to it, I run the command 'help arm', which shows, in particular: > --- > arm mcr cpnum op1 CRn op2 CRm value > write coprocessor register > --- > > In the OpenOCD manual written otherwise, as I understand it: > --- > arm mcr pX op1 CRn CRm op2 value > --- > > The order of arguments is different? There *should* be a single order, matching the ARM Architecture Reference Manual, which says (v7A/AR edition) MCR<c> <coproc>,<opc1>,<Rt>,<CRn>,<CRm>{,<opc2>} However, the OpenOCD code has suffered confusion on that point. At on point I counted no less then three different orders for those parameters, some of which appeared to be essentially random.. It would appear that the confusion isn't entirely resolved yet; sigh. DO you know if the bug is just in documentation, or also in code? |