aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-08-10renamed for clarityRodrigo L. Rosa
i had started my code from dsp5683xx, i renamed a bunch of stuff to names i consider to be better. i believe no one is using this code, so nobody should be affected. (it's not too late to do this change)
2011-08-10rlink: read only the expected number of bytesAndreas Fritiofson
After correcting the reply size counter, it should be safe to rely on it for the number of bytes expected in the USB read, instead of reading the endpoint maximum. This doesn't make things go any faster but it's nicer and removes the local buffer. Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2011-08-10rlink: simplify and optimize queue fill level checksAndreas Fritiofson
Add a helper function for running the queue if it would overflow otherwise. Use it to simplify the queue fill level checks and optimize in a few cases that would previously run the queue prematurely. Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2011-08-10rlink: remove redundant text from log messagesAndreas Fritiofson
__FILE__ and __LINE__ are already printed using the log macros. Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2011-08-10rlink: remove duplicated codeAndreas Fritiofson
After the reply_index handling is fixed, there's no need to special case the out scan. Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2011-08-10rlink: fix reply counter to enable sending full buffersAndreas Fritiofson
dtc_queue.reply_index was wrongly being increased during out scans, causing the queue to be sent before the out buffer was full. This patch increases raw upload speed by 50% or so. Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2011-08-10rlink: more indentation fixesAndreas Fritiofson
Remove unnecessary block scopes to reduce indentation level. Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2011-08-10rlink: fix indentation errorsAndreas Fritiofson
Indentation was inconsistent and some lines not indented at all. Quickfix using Eclipse's auto-indentation. Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2011-08-09mips32 : Fixed memory byte accessDrasko DRASKOVIC
Function mips_m4k_write_memory() does endianess byte swap, but this procedure break one byte access (temporary array overwrites content in buffer). As a fix, this endianess swap and buffer affecting is preformed only on hword and word accesses (not on byte access).
2011-08-09mips32: Sync Caches to Make Instr Writes EffectiveDrasko DRASKOVIC
Pprogram that loads another program into memory is actually writing the D- side cache. The instructions it has loaded can't be executed until they reach the I-cache. After the instructions have been written, the loader should arrange to write back any containing D-cache line and invalidate any locations already in the I-cache. For the MIPS Architecture Release2 cores, we can use synci command that does this job. For Release1 we must use "cache" instruction.
2011-08-09mips32: Added CP0 coprocessor R/W routinesDrasko DRASKOVIC
This patch adds MIPS32 CP0 coprocessor R/W routines, as well as adequate commands to use these routines via telnet interface. Now is becomes possible to affect CP0 internal registers and configure CPU directly from OpenOCD.
2011-08-09mips_m4k: common_magic should be unsignedDrasko DRASKOVIC
For all architectures we use distinct common magic number, and this should be a uint32_t type. Otherwise, comparison with macros will yield compilation warning.
2011-08-09mips32: Removed Unnecessary JTAG Queue FlushDrasko DRASKOVIC
jtag_execute_queue() is executed as a part of mips_ejtag_drscan_32(). No need for this to be done before - removed for optimisation.
2011-08-09fix tapenabler return codeRodrigo L. Rosa
if tap enable/disable failed then a warning was written to the log, but JIM_OK was returned. if using openocd via a TCP interface to the TCL port, there is no way to catch that the command failed (it didn't enable the tap, so it failed) now it return an error if it fails.
2011-08-09fix return error msjRodrigo L. Rosa
retval was not correctly propagated
2011-08-09flash/nor/cfi: fix TopBottom for atmel chipsAndreas Bießmann
There are some older atmel nor chips which have negated logic for TopBottom detection. This patch adds a special handling for the old chips. This is the same mechanism as implemented in linux kernel. Signed-off-by: Andreas Bießmann <andreas.devel@gmail.com>
2011-08-09Revert "dsp5680xx: disable for now, it generates warnings"Øyvind Harboe
This reverts commit d567df02b9f3e7d2e7e78b3c2907ecad9aa4bbd4.
2011-08-09dsp5680xx fix constante refRodrigo L. Rosa
a counter was incorrectly set when i added the macros i incorrectly called them. fixed that.
2011-08-09dsp5680xx fix FM clkRodrigo L. Rosa
before doing anything with the flash module (FM) the clock divider must be set. if erase_check was the first thing done with the FM after reset then an error would be generated because the clk divider was not set. now erase_check sets the clk divider.
2011-08-09dps5680xx fix warningsRodrigo L. Rosa
reorganized code to get rid of compiler warnings the warning were related to allignment, i do not get these warning on my build system (i've tried setting the compiler flag but it doesn't work, still working on why) so i cannot detect them (yet.)
2011-08-09Archive and recreate NEWS file.Jean-Christophe PLAGNIOL-VILLARD
Archive released NEWS file as NEWS-0.5.0. Create new NEWS file from release script template.
2011-08-09Bump minor version and add -dev tag.Jean-Christophe PLAGNIOL-VILLARD
Bump minor package version number: 0.5.0 -> 0.6.0 Add '-dev' version tag: 0.6.0 -> 0.6.0-dev
2011-08-09The openocd 0.5.0 release.v0.5.0Jean-Christophe PLAGNIOL-VILLARD
Remove '-dev' version tag: 0.5.0-dev -> 0.5.0
2011-08-08arm11: disable broken optimization for setting current scan chainØyvind Harboe
2011-08-03Automatically generate ChangeLog from git log for release tarballLuca Bruno
make dist should use git2cl to generate ChangeLog from git history, populating the placeholder file in released tarball. Signed-off-by: Luca Bruno <lucab@debian.org> Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-08-02cfg: allow stellaris device class overrideB. A. Bryce
Some devices, eg. The Tempest class return the wrong device class when queried. Add the ability to manually override the device class. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-08-01etb: fix incorrect previous patchsetJie Zhang
This corrects two issues found with openocd. d7f71e7fe9645fa8c3f88cf6fc9ad438aa6708f3 removed some code that was being used. The above then caused even more code to get removed by commit 1cfb2287a67c1f78b76583b2e5ed83ca3560b0d5. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-29cfg: support calling legacy stm32 scriptsSpencer Oliver
For the time being we support the old stm32 script names - this will be removed before the next release cycle. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-28docs: remove obsolete luminary target infoSpencer Oliver
The lm3s variant is not required as this is handled in the target script - see tcl/target/stellaris.cfg. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-28flash: add support for deprecated stm32 flash cmdsSpencer Oliver
Issue warning when the old cmd is used and redirect to new supported one. These deprecated cmds will be removed at some point. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-28cfg: update scripts to use new stm32 driver namesSpencer Oliver
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-28docs: update to use new stm32 driver namesSpencer Oliver
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-28flash: update stm32 driver namesSpencer Oliver
Use consistent names for the stm32 family flash drivers, eg. stm32x -> stm32f1x stm32f2xxx -> stm32f2x this makes it easier to add support for newer stm32 families. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-27cfg: add Fujitsu FM3 configSpencer Oliver
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-27doc: add Fujitsu FM3 flash driver infoSpencer Oliver
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-26remove doc on the deprecated '-p' optionJie Zhang
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-26Update doc about Jim since it's not a single .C file and a single .H file ↵Jie Zhang
any more Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-26add Fujitsu FM3 Family flash supportRonny Strutz
Signed-off-by: Ronny Strutz <ronny@ewoks.de> Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-18CPU name in TMPA900 config file should obviously be TMPA900 (not TMPA910).Michael Hunold
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-18build: do not install jimtclSpencer Oliver
We now make use of the new jimtcl --disable-install-jim Now we can install openocd without jimtcl bring installed. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-18jimtcl: update to support --disable-install-jimSpencer Oliver
Update jimtcl version to commit 6233a6c5d39928f1bfafa8f41cb1ddf0c5a83de0 This enable to to build jimtcl as a submodule but not install it. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-15stm32f2xxx: comments about frequency choiceØyvind Harboe
2011-07-14Do not append git info to version string when building from released tarballLuca Bruno
When building official releases from tarball, git commit info is not available in the building environment. Thus, automake should not try to append the git commit to the version string. Signed-off-by: Luca Bruno <lucab@debian.org> Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-12ftd2xx: handle FT_GetLatencyTimer bug in v1.04Spencer Oliver
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-12busblaster: Fix warnings when building against D2XXSpencer Oliver
The default is -Werror, so warnings become errors. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-12ft2232: Fix warnings when building against D2XXSteve Bennett
The default is -Werror, so warnings become errors Signed-off-by: Steve Bennett <steveb@workware.net.au> Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-12ftdi: update for latest libftdi 1.0.4Steve Bennett
For libftd2xx1.0.4, which uses a different directory structure than libftd2xx0.4.16 Without this fix the build fails with version 1.0.4 of the driver. Note that this does not fix --with-ftd2xx-lib=shared Signed-off-by: Steve Bennett <steveb@workware.net.au> Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-10Fix typo in command outputLuca Bruno
Fix a bunch of minor typo in user facing output. Signed-off-by: Luca Bruno <lucab@debian.org>
2011-07-04mips_m4k and arm7_9 : Fix soft bkpt endianess for 16-bit instructionsDrasko DRASKOVIC
The patch fix comparison of target data on the host by using target_buffer_get_u16() to transform current_instr to _host_ endianess before comparison.
2011-07-04cortex_m3: add auto maskisrv0.5.0-rc2Peter Horn
This patch extends the cortex_m3 maskisr command by a new option 'auto'. The 'auto' option handles interrupts during stepping in a way they are processed but don't disturb the program flow during debugging. Before one had to choose to either enable or disable interrupts. The former steps into interrupt handlers when they trigger. This disturbs the flow during debugging, making it hard to follow some piece of code when interrupts occur often. When interrupts are disabled, the flow isn't disturbed but code relying on interrupt handlers to be processed will stop working. For example a delay function counting the number of timer interrupts will never complete, RTOS task switching will not occur and output I/O queues of interrupt driven I/O will stall or overflow. Using the 'maskisr' command also typically requires gdb hooks to be supplied by the user to switch interrupts off during the step and to enable them again afterward. The new 'auto' option of the 'maskisr' command solves the above problems. When set, the step command allows pending interrupt handlers to be executed before the step, then the step is taken with interrupts disabled and finally interrupts are enabled again. This way interrupt processing stays in the background without disturbing the flow of debugging. No gdb hooks are required. The 'auto' option is the default, since it's believed that handling interrupts in this way is suitable for most users. The principle used for interrupt handling could probably be used for other targets too. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>