On Sat, 11 Jan 2014, Spencer Oliver wrote: > On 10/01/14 17:58, Robert P. J. Day wrote: > > > > next, i can also see, in the source file src/flash/nor/tcl.c, > > the definition of the main flash commands at the bottom, and > > higher up in that file, the definition of > > "flash_exec_command_handlers". i'm embarrassed to admit i don't > > know what the mode of COMMMAND_EXEC means. help? > > OpenOCD has two stages - config (COMMAND_CONFIG) and run > (COMMAND_EXEC). see 7.2 Entering the Run Stage. > > The config stage is until the init command is executed.
oh, i knew about the two stages, and i understood the meaning of COMMAND_CONFIG and COMMAND_ANY -- you're saying that COMMAND_EXEC means commands that can be run *only* in the run phase, after configuration is complete? got it. > > finally, given that this xM has no flash, i fully expect that > > trying to access flash should fail, so i ran both: > > > >> flash list > >> flash banks > > > > and got no output, which i expected. but then i tried this: > > > >> flash probe 0 > > flash probe 0: command requires more arguments > > in procedure 'flash' > >> > > > > that's surprising -- why doesn't that just say that i have no flash? > > why suggest i need more arguments? am i misreading something? > > Think it is related to http://sourceforge.net/apps/trac/openocd/ticket/54. > > Unknown sub commands issue this error, in this case the flash bank > has not been configured and so we have no probe command. yup, that would be it. i got the same thing running, for example, > pld devices on my xM, which has no such thing. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ======================================================================== ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
