- 28 Nov, 2009 6 commits
-
-
David Brownell authored
Just two *_OLD_* symbols left... Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Replaces previous "reset-assert-pre" workaround. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Use the new "reset-assert" event; else SRST; else fail. Tested on an OMAP3, using the event. NOTE: still doesn't handle "reset halt". For some reason neither VCR nor PRCR seemed effective; they held the value that was written, but VCR didn't trigger debug entry when the reset vector fired (maybe the vector needs configuring?) and PRCR refused to hold the chip in reset until deassert() could force the core into debug state. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
This defines a "reset-assert" event and a supporting utility routine, and documents both how targets should implement it and how config scripts should use it. Core-specific updates are needed to make this work. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
When writing to a chip's "reset yourself" register, the ARM11 code was reporting a spurious failure. Just don't bother checking for correctly incremented pointers given single-unit writes ... it's a bit faster that way too. (Reads should likely do the same thing. For that matter, such checks are usually just a waste...) Shrink an overlong parameter name, and associated lines'o'code. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
- 27 Nov, 2009 11 commits
-
-
Zachary T Welch authored
The command refactoring caused subcommand handlers to produce duplicate output when run. The problem was introduced by failing to ensure all such invocations went through a top-level "catcher" script, prefixing the command name with the 'ocd_' prefix and consuming its results. The fix is to ensure such a top-level "catcher" script gets created for each top-level command, regardless of whether it has a handler. Indeed, this patch removes all command registrations for sub-commands, which would not have worked in the new registration scheme anyway. For now, dispatch of subcommands continues to be handled by the new 'unknown' command handler, which gets fixed here to strip the 'ocd_' prefix if searching for the top-level command name fails initially. Some Jim commands may be registered with this prefix, and that situation seems to require the current fallback approach. Otherwise, that prefix could be stripped unconditionally and the logic made a little simpler. The same problem must be handled by the 'help' command handler too, so its lookup process works as intended. Overall, the command dispatching remains more complicated than desired, but this patch fixes the immediate regressions.
-
Øyvind Harboe authored
jim and classic style commands are both supported. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Zachary T Welch authored
Changes the interface definition field reference from register_commands to commands, which allows the module to compile.
-
Zachary T Welch authored
Move device argument parsing after check for number of arguments; otherwise, calling this command without any arguments would access argv[0] before checking whether it even existed.
-
Øyvind Harboe authored
fn's and return value for log_init() changed to void. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Øyvind Harboe authored
during refactoring a search and replace error crept in Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Dean Glazeski authored
Fixed the header file to properly specify the doxygen documentation for the items defined in it. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Dean Glazeski authored
This updates the functions in the file to all have doxygen comments describing what they do. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Dean Glazeski authored
Created a function for copying code to the working area on a target. The NAND write and read functions are updated to include use of this function. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Dean Glazeski authored
Implementation of the NAND read function for ARM NAND I/O that includes running a local algorithm on a device to increase the performance of block reads. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Dean Glazeski authored
Updated doxygen comments for different interface structures for the NAND interface. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
- 26 Nov, 2009 13 commits
-
-
David Brownell authored
Just make these fail, instead of letting them write over potentially random memory. Users should be able to work around the lack of real implementations by disbling the MMU by hand ... until someone provides a Real Fix. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
Uwe Hermann authored
The Berlios bug-tracker is disabled, bug reports go to the list. Signed-off-by:
Zachary T Welch <zw@superlucidity.net>
-
Uwe Hermann authored
Fixes some minor typos in the top-level documentation files. Signed-off-by:
Zachary T Welch <zw@superlucidity.net>
-
Uwe Hermann authored
Correct some spelling errors in source comments and printed output. Signed-off-by:
Zachary T Welch <zw@superlucidity.net>
-
Øyvind Harboe authored
Embedded and pthreads rely on modest and predictable stack usage. Signed-off-by:
Øyvind Harboe <oyvind.harboe@zylin.com>
-
Eric Wetzel authored
Command upgrading introduced two off-by-one bugs in the flash commands. This patch fixes the 'flash {protect,erase_sector}' commands to check that they have been passed the correct number of arguments. Ammended during commit to fix help text for 'erase_address' too.
-
David Brownell authored
Several of the sites now using target_type_name() really ought to be using an instance-specific name. Create a function called target_name(), accessing the instance's own (command) name. Use it in several places that really should be displaying instance-specific names. Also in several places which were already doing so, but which had no wrapper to call. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
There are two names that may matter on a per-target basis. One is a per-instance name (for example, "at91sam7s.cpu"). The other is the name of its type (for example, "arm7tdmi"), which is shared among multiple targets. Currently target_get_name() returns the type name, which is misleading and is rarely appropriate for target diagnostics. Rename that as target_type_name(). Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Lines of 300+ characters are still bad; debug tweaks. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
"OptimoDE DESS" is ARM's semicustom DSPish stuff. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
300+ characters is unreasonable. So is half that. Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
David Brownell authored
Signed-off-by:
David Brownell <dbrownell@users.sourceforge.net>
-
- 25 Nov, 2009 10 commits
-
-
Zachary T Welch authored
Mention changes to flash bank command syntax, 'nand verify' command, command error handling and reporting, and help/usage command upgrades.
-
Zachary T Welch authored
Search and destroy lingering cases where the ARRAY_SIZE macro should be used to convey more intrinsic meaning in the OpenOCD code.
-
Zachary T Welch authored
Detect the OPENOCD_DEBUG_LEVEL setting in log_init(), allowing the very early startup phases to be debugged.
-
Zachary T Welch authored
Removes redundant assignment of start_ms from log_register_commands(). Eliminates command_context parameter and return value. Adds Doxygen comment block for this API call.
-
Zachary T Welch authored
Adds sections on command registration and chaining, giving an overview to developers that want to use these features.
-
Zachary T Welch authored
Alliteration aside, this should provide the final piece of the puzzle for developers that want to get started writing a new target type. In this way, it also seeks to complement the 'dummy' interface driver and 'faux' NOR flash driver.
-
Zachary T Welch authored
Removes hello and foo commands from top-level registration. Instead, the dummy interface driver and faux flash driver have been augmented to register these commands as sub-commands.
-
Zachary T Welch authored
Eliminates duplicated code in script_command and handle_unknown_command. Fixes bug with duplicated help output generated by placeholder commands.
-
Zachary T Welch authored
Factors log capture while running script commands, eliminating duplicated code between script_command and jim_capture. Factors setting a command's Jim "retval" into a new helper as well. Using these new helpers in the new unknown command handler's fixes possible regressions caused by these bits being missing.
-
Zachary T Welch authored
Remove duplicated handler code by checking the running command name.
-