openocd.git
8 years agorlink: remove redundant text from log messages
Andreas Fritiofson [Sat, 16 Jul 2011 21:41:44 +0000 (23:41 +0200)]
rlink: remove redundant text from log messages

__FILE__ and __LINE__ are already printed using the log macros.

Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
8 years agorlink: remove duplicated code
Andreas Fritiofson [Sat, 16 Jul 2011 14:32:50 +0000 (16:32 +0200)]
rlink: remove duplicated code

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>
8 years agorlink: fix reply counter to enable sending full buffers
Andreas Fritiofson [Sat, 16 Jul 2011 12:30:20 +0000 (14:30 +0200)]
rlink: fix reply counter to enable sending full buffers

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>
8 years agorlink: more indentation fixes
Andreas Fritiofson [Sat, 16 Jul 2011 12:09:08 +0000 (14:09 +0200)]
rlink: more indentation fixes

Remove unnecessary block scopes to reduce indentation level.

Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
8 years agorlink: fix indentation errors
Andreas Fritiofson [Sat, 16 Jul 2011 12:03:39 +0000 (14:03 +0200)]
rlink: fix indentation errors

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>
8 years agomips32 : Fixed memory byte access
Drasko DRASKOVIC [Mon, 25 Jul 2011 12:23:35 +0000 (14:23 +0200)]
mips32 : Fixed memory byte access

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).

8 years agomips32: Sync Caches to Make Instr Writes Effective
Drasko DRASKOVIC [Thu, 7 Jul 2011 15:59:13 +0000 (17:59 +0200)]
mips32: Sync Caches to Make Instr Writes Effective

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.

8 years agomips32: Added CP0 coprocessor R/W routines
Drasko DRASKOVIC [Thu, 7 Jul 2011 15:41:20 +0000 (17:41 +0200)]
mips32: Added CP0 coprocessor R/W routines

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.

8 years agomips_m4k: common_magic should be unsigned
Drasko DRASKOVIC [Thu, 7 Jul 2011 14:38:38 +0000 (16:38 +0200)]
mips_m4k: common_magic should be unsigned

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.

8 years agomips32: Removed Unnecessary JTAG Queue Flush
Drasko DRASKOVIC [Tue, 5 Jul 2011 15:37:05 +0000 (17:37 +0200)]
mips32: Removed Unnecessary JTAG Queue Flush

jtag_execute_queue() is executed as a part of mips_ejtag_drscan_32().
No need for this to be done before - removed for optimisation.

8 years agofix tapenabler return code
Rodrigo L. Rosa [Tue, 9 Aug 2011 18:25:23 +0000 (11:25 -0700)]
fix tapenabler return code

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.

8 years agofix return error msj
Rodrigo L. Rosa [Tue, 9 Aug 2011 18:24:42 +0000 (11:24 -0700)]
fix return error msj

retval was not correctly propagated

8 years agoflash/nor/cfi: fix TopBottom for atmel chips
Andreas Bießmann [Tue, 12 Jul 2011 10:38:22 +0000 (12:38 +0200)]
flash/nor/cfi: fix TopBottom for atmel chips

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>
8 years agoRevert "dsp5680xx: disable for now, it generates warnings"
Øyvind Harboe [Tue, 9 Aug 2011 18:14:50 +0000 (20:14 +0200)]
Revert "dsp5680xx: disable for now, it generates warnings"

This reverts commit d567df02b9f3e7d2e7e78b3c2907ecad9aa4bbd4.

8 years agodsp5680xx fix constante ref
Rodrigo L. Rosa [Wed, 20 Jul 2011 03:04:46 +0000 (20:04 -0700)]
dsp5680xx fix constante ref

a counter was incorrectly set
when i added the macros i incorrectly called them.
fixed that.

8 years agodsp5680xx fix FM clk
Rodrigo L. Rosa [Wed, 20 Jul 2011 03:03:08 +0000 (20:03 -0700)]
dsp5680xx fix FM clk

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.

8 years agodps5680xx fix warnings
Rodrigo L. Rosa [Wed, 20 Jul 2011 03:01:19 +0000 (20:01 -0700)]
dps5680xx fix warnings

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.)

8 years agoArchive and recreate NEWS file.
Jean-Christophe PLAGNIOL-VILLARD [Tue, 9 Aug 2011 05:34:50 +0000 (13:34 +0800)]
Archive and recreate NEWS file.

Archive released NEWS file as NEWS-0.5.0.
Create new NEWS file from release script template.

8 years agoBump minor version and add -dev tag.
Jean-Christophe PLAGNIOL-VILLARD [Tue, 9 Aug 2011 05:34:50 +0000 (13:34 +0800)]
Bump minor version and add -dev tag.

Bump minor package version number: 0.5.0 -> 0.6.0
Add '-dev' version tag: 0.6.0 -> 0.6.0-dev

8 years agoThe openocd 0.5.0 release. v0.5.0
Jean-Christophe PLAGNIOL-VILLARD [Tue, 9 Aug 2011 05:34:50 +0000 (13:34 +0800)]
The openocd 0.5.0 release.

Remove '-dev' version tag: 0.5.0-dev -> 0.5.0

8 years agoarm11: disable broken optimization for setting current scan chain
Øyvind Harboe [Fri, 5 Aug 2011 07:57:46 +0000 (09:57 +0200)]
arm11: disable broken optimization for setting current scan chain

8 years agoAutomatically generate ChangeLog from git log for release tarball
Luca Bruno [Wed, 3 Aug 2011 13:20:06 +0000 (14:20 +0100)]
Automatically generate ChangeLog from git log for release tarball

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>
8 years agocfg: allow stellaris device class override
B. A. Bryce [Tue, 2 Aug 2011 10:33:03 +0000 (11:33 +0100)]
cfg: allow stellaris device class override

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>
8 years agoetb: fix incorrect previous patchset
Jie Zhang [Mon, 1 Aug 2011 16:15:19 +0000 (17:15 +0100)]
etb: fix incorrect previous patchset

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>
8 years agocfg: support calling legacy stm32 scripts
Spencer Oliver [Fri, 29 Jul 2011 16:01:31 +0000 (17:01 +0100)]
cfg: support calling legacy stm32 scripts

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>
8 years agodocs: remove obsolete luminary target info
Spencer Oliver [Thu, 28 Jul 2011 15:06:24 +0000 (16:06 +0100)]
docs: remove obsolete luminary target info

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>
8 years agoflash: add support for deprecated stm32 flash cmds
Spencer Oliver [Thu, 28 Jul 2011 11:47:49 +0000 (12:47 +0100)]
flash: add support for deprecated stm32 flash cmds

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>
8 years agocfg: update scripts to use new stm32 driver names
Spencer Oliver [Thu, 28 Jul 2011 10:45:09 +0000 (11:45 +0100)]
cfg: update scripts to use new stm32 driver names

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
8 years agodocs: update to use new stm32 driver names
Spencer Oliver [Thu, 28 Jul 2011 10:44:48 +0000 (11:44 +0100)]
docs: update to use new stm32 driver names

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
8 years agoflash: update stm32 driver names
Spencer Oliver [Thu, 28 Jul 2011 10:42:27 +0000 (11:42 +0100)]
flash: update stm32 driver names

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>
8 years agocfg: add Fujitsu FM3 config
Spencer Oliver [Wed, 27 Jul 2011 09:56:25 +0000 (10:56 +0100)]
cfg: add Fujitsu FM3 config

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
8 years agodoc: add Fujitsu FM3 flash driver info
Spencer Oliver [Wed, 27 Jul 2011 09:28:24 +0000 (10:28 +0100)]
doc: add Fujitsu FM3 flash driver info

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
8 years agoremove doc on the deprecated '-p' option
Jie Zhang [Thu, 21 Jul 2011 15:29:20 +0000 (11:29 -0400)]
remove doc on the deprecated '-p' option

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
8 years agoUpdate doc about Jim since it's not a single .C file and a single .H file any more
Jie Zhang [Thu, 21 Jul 2011 15:16:50 +0000 (11:16 -0400)]
Update doc about Jim since it's not a single .C file and a single .H file any more

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
8 years agoadd Fujitsu FM3 Family flash support
Ronny Strutz [Tue, 26 Jul 2011 20:14:47 +0000 (21:14 +0100)]
add Fujitsu FM3 Family flash support

Signed-off-by: Ronny Strutz <ronny@ewoks.de>
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
8 years agoCPU name in TMPA900 config file should obviously be TMPA900 (not TMPA910).
Michael Hunold [Mon, 18 Jul 2011 07:20:31 +0000 (09:20 +0200)]
CPU name in TMPA900 config file should obviously be TMPA900 (not TMPA910).

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
8 years agobuild: do not install jimtcl
Spencer Oliver [Mon, 18 Jul 2011 13:02:31 +0000 (14:02 +0100)]
build: do not install jimtcl

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>
8 years agojimtcl: update to support --disable-install-jim
Spencer Oliver [Mon, 18 Jul 2011 13:01:05 +0000 (14:01 +0100)]
jimtcl: update to support --disable-install-jim

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>
8 years agostm32f2xxx: comments about frequency choice
Øyvind Harboe [Fri, 15 Jul 2011 10:05:37 +0000 (12:05 +0200)]
stm32f2xxx: comments about frequency choice

8 years agoDo not append git info to version string when building from released tarball
Luca Bruno [Sat, 9 Jul 2011 21:44:39 +0000 (23:44 +0200)]
Do not append git info to version string when building from released tarball

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>
8 years agoftd2xx: handle FT_GetLatencyTimer bug in v1.04
Spencer Oliver [Tue, 12 Jul 2011 14:51:18 +0000 (15:51 +0100)]
ftd2xx: handle FT_GetLatencyTimer bug in v1.04

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
8 years agobusblaster: Fix warnings when building against D2XX
Spencer Oliver [Tue, 12 Jul 2011 13:40:19 +0000 (14:40 +0100)]
busblaster: Fix warnings when building against D2XX

The default is -Werror, so warnings become errors.

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
8 years agoft2232: Fix warnings when building against D2XX
Steve Bennett [Tue, 12 Jul 2011 11:56:21 +0000 (12:56 +0100)]
ft2232: Fix warnings when building against D2XX

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>
8 years agoftdi: update for latest libftdi 1.0.4
Steve Bennett [Tue, 12 Jul 2011 11:34:27 +0000 (12:34 +0100)]
ftdi: update for latest libftdi 1.0.4

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>
8 years agoFix typo in command output
Luca Bruno [Sun, 10 Jul 2011 14:58:31 +0000 (16:58 +0200)]
Fix typo in command output

Fix a bunch of minor typo in user facing output.

Signed-off-by: Luca Bruno <lucab@debian.org>
9 years agomips_m4k and arm7_9 : Fix soft bkpt endianess for 16-bit instructions
Drasko DRASKOVIC [Mon, 4 Jul 2011 10:55:00 +0000 (12:55 +0200)]
mips_m4k and arm7_9 : Fix soft bkpt endianess for 16-bit instructions

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.

9 years agocortex_m3: add auto maskisr v0.5.0-rc2
Peter Horn [Mon, 4 Jul 2011 10:25:26 +0000 (11:25 +0100)]
cortex_m3: add auto maskisr

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>
9 years agoRevert "cortex_m3: add auto maskisr"
Spencer Oliver [Mon, 4 Jul 2011 10:19:19 +0000 (11:19 +0100)]
Revert "cortex_m3: add auto maskisr"

This reverts commit ff640f197a9a343b2f3ed10e9174e35282334e8c.

Original patch reverted as Author's name was incorrectly set.

9 years agomips_m4k : Fix soft breakpoint endianess handling
Drasko DRASKOVIC [Fri, 1 Jul 2011 19:12:54 +0000 (21:12 +0200)]
mips_m4k : Fix soft breakpoint endianess handling

In order to compare data read from the target with some marcros or data
defined on the host, we must transform this read data from target
endianess to host endianess.
target_read_memory() gets bytes from target to the host, but keeps them in _target_
endianess. This is OK if we just want to temporary keep this data on the
host, like keeping breakpoint->orig_instr. But if we want to use this
data for any ispections and comparisons on the host side, we must
transform it to _host_ endianess, by using target_buffer_get_u32()
function.
Currently this transformation is missing, and check current_instr ==
MIPS32_SDBBP will never pass if target and host endianess differ,
because current_instr will be kept in _target_ endianess and
MIPS32_SDBBP will be kept in _host_ endianess,

The patch fix this issue by using target_buffer_get_u32() to transform current_instr to
_host_ endianess before comparison.

9 years agojimtcl: update to 0.71 based release
Spencer Oliver [Wed, 29 Jun 2011 15:01:54 +0000 (16:01 +0100)]
jimtcl: update to 0.71 based release

The actual release is 411e92fea9621630eb350e0c2bb43543e553b84f as we
had a few issues relating to its use within openocd.

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
9 years agodsp5680xx: disable for now, it generates warnings
Øyvind Harboe [Tue, 28 Jun 2011 16:35:34 +0000 (18:35 +0200)]
dsp5680xx: disable for now, it generates warnings

Use "git revert <commit>" to revert this commit, then build and
repair and post patch to the mailing list.

Warnings generated with:

nios2-elf-gcc (GCC) 3.4.6 (Altera Nios II 9.1 b222)

openocd/src/target/dsp5680xx.c: In function 'eonce_rx_upper_data':
openocd/src/target/dsp5680xx.c:252: warning: cast increases required
alignment of target type
openocd/src/target/dsp5680xx.c: In function 'eonce_rx_lower_data':
openocd/src/target/dsp5680xx.c:268: warning: cast increases required
alignment of target type
openocd/src/target/dsp5680xx.c: In function 'eonce_pc_store':
openocd/src/target/dsp5680xx.c:508: warning: dereferencing type-punned
pointer will break strict-aliasing rules
openocd/src/target/dsp5680xx.c: In function 'dsp5680xx_read':
openocd/src/target/dsp5680xx.c:736: warning: cast increases required
alignment of target type
openocd/src/target/dsp5680xx.c:737: warning: cast increases required
alignment of target type
openocd/src/target/dsp5680xx.c: In function 'dsp5680xx_write_8':
openocd/src/target/dsp5680xx.c:823: warning: cast increases required
alignment of target type
openocd/src/target/dsp5680xx.c: In function 'dsp5680xx_write':
openocd/src/target/dsp5680xx.c:938: warning: cast increases required
alignment of target type
openocd/src/target/dsp5680xx.c:941: warning: cast increases required
alignment of target type
openocd/src/target/dsp5680xx.c: In function 'dsp5680xx_f_wr':
openocd/src/target/dsp5680xx.c:1355: warning: cast increases required
alignment of target type

9 years agomips4k: fix big-endian hosts and host alignment problems
Øyvind Harboe [Tue, 28 Jun 2011 16:22:32 +0000 (18:22 +0200)]
mips4k: fix big-endian hosts and host alignment problems

the code was making assumptions about the endianness of the host.

9 years agodsp5680xx: fix compilation problems
Øyvind Harboe [Tue, 28 Jun 2011 16:09:48 +0000 (18:09 +0200)]
dsp5680xx: fix compilation problems

use a more specific global variable name than "context", which
can easily conflict with other things.

9 years agocortex_m3: add auto maskisr v0.5.0-rc1
Spencer Oliver [Tue, 28 Jun 2011 13:16:48 +0000 (14:16 +0100)]
cortex_m3: add auto maskisr

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>
9 years agocortex_m3: add BKPT_TYPE_BY_ADDR define
Peter Horn [Tue, 28 Jun 2011 13:08:22 +0000 (14:08 +0100)]
cortex_m3: add BKPT_TYPE_BY_ADDR define

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
9 years agobuild: cleanup jimtcl generated configure.gnu
Spencer Oliver [Mon, 27 Jun 2011 15:08:56 +0000 (16:08 +0100)]
build: cleanup jimtcl generated configure.gnu

We use configure.gnu to pass options to the jimtcl submodule.
Make sure a distclean removes any generated files

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
9 years agoAdd description for configure argument "--enable-ulink" to README file
Martin Schmölzer [Mon, 20 Jun 2011 17:52:33 +0000 (19:52 +0200)]
Add description for configure argument "--enable-ulink" to README file

9 years agoAdd OpenULINK driver files generated by SDCC to .gitignore
Martin Schmölzer [Mon, 20 Jun 2011 17:52:17 +0000 (19:52 +0200)]
Add OpenULINK driver files generated by SDCC to .gitignore

9 years agoAdd -DPKGLIBDIR to AM_CPPFLAGS.
Martin Schmölzer [Mon, 20 Jun 2011 17:51:46 +0000 (19:51 +0200)]
Add -DPKGLIBDIR to AM_CPPFLAGS.

This is required so the OpenULINK driver knows the install location of the OpenULINK
firmware image.

9 years agoInclude ULINK driver in src/jtag/drivers/Makefile.am
Martin Schmölzer [Mon, 20 Jun 2011 17:51:16 +0000 (19:51 +0200)]
Include ULINK driver in src/jtag/drivers/Makefile.am

A new variable "nobase_dist_pkglib_DATA" is introduced to install
the OpenULINK firmware image to $PREFIX/lib/openocd/OpenULINK/ulink_firmware.hex

Also, the variable "EXTRA_DIST" is used to include the OpenULINK firmware source
in the OpenOCD source distribution.

9 years agoInclude ULINK driver in src/Makefile.am
Martin Schmölzer [Mon, 20 Jun 2011 17:50:54 +0000 (19:50 +0200)]
Include ULINK driver in src/Makefile.am

9 years agoInclude ULINK driver in configure.in
Martin Schmölzer [Mon, 20 Jun 2011 17:50:35 +0000 (19:50 +0200)]
Include ULINK driver in configure.in

9 years agoAdd ULINK interface script
Martin Schmölzer [Mon, 20 Jun 2011 17:50:18 +0000 (19:50 +0200)]
Add ULINK interface script

9 years agoInclude ULINK driver in src/jtag/interfaces.c
Martin Schmölzer [Mon, 20 Jun 2011 17:49:24 +0000 (19:49 +0200)]
Include ULINK driver in src/jtag/interfaces.c

9 years agoAdd OpenULINK firmware
Martin Schmölzer [Mon, 20 Jun 2011 17:49:49 +0000 (19:49 +0200)]
Add OpenULINK firmware

Build requires SDCC, the Small Device C Compiler.

9 years agoAdd source code for new ULINK driver
Martin Schmölzer [Mon, 20 Jun 2011 17:48:40 +0000 (19:48 +0200)]
Add source code for new ULINK driver

9 years agoFix load_image for ELF with all p_paddr set to zero
Drasko DRASKOVIC [Wed, 22 Jun 2011 10:45:21 +0000 (12:45 +0200)]
Fix load_image for ELF with all p_paddr set to zero

So far image_load command tries to load ELF binaries to address
discovered by reading p_paddr member of a Program header of an ELF
segment.

However, ELF specifications says for p_paddr : ...Because System V
ignores physical addressing for application programs, this member has
unspecified contents for executable files and shared objects.

ARM ELF specifiaction goes even further, demanding that this member
be set to zero, using the p_vaddr as a segment load address.

To avoid the cases to wrong addr where p_paddr is zero,
we are now using p_vaddr to as a load destination in case that *all*
p_paddr == 0. Basically, this patch re-implements the approach present in
BDF's elf.c, which is used by GDB also (so that we can be consistent).

9 years agobuild: do not included generated files in distribution
Spencer Oliver [Fri, 17 Jun 2011 11:22:37 +0000 (12:22 +0100)]
build: do not included generated files in distribution

We have to use this method as automake seems to ignore nodist_ on libs.

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
9 years agobuild: add missing files to make dist
Spencer Oliver [Fri, 17 Jun 2011 11:21:01 +0000 (12:21 +0100)]
build: add missing files to make dist

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
9 years agobuild: pass correct flags to jimtcl during make distcheck
Spencer Oliver [Fri, 17 Jun 2011 08:28:02 +0000 (09:28 +0100)]
build: pass correct flags to jimtcl during make distcheck

This is only for the case of a make distcheck.
During a normal release build these flags will be created by configure.gnu

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
9 years agobuild: add missing files from dist release
Spencer Oliver [Fri, 17 Jun 2011 08:26:18 +0000 (09:26 +0100)]
build: add missing files from dist release

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
9 years agoADAPTER: Fixed transport selection mechanism to support transports other than jtag...
Tomek CEDRO [Thu, 16 Jun 2011 06:54:58 +0000 (06:54 +0000)]
ADAPTER: Fixed transport selection mechanism to support transports other than jtag (if defined).

9 years agoOPENOCD: Renamed ambiguous main2() into openocd_thread() to show possible solution...
Tomek CEDRO [Thu, 16 Jun 2011 07:09:41 +0000 (07:09 +0000)]
OPENOCD: Renamed ambiguous main2() into openocd_thread() to show possible solution for thread support in future.

9 years agoAdded Olimex STM32 {H,P}107.cfg board
Dale Lukas Peterson [Wed, 15 Jun 2011 22:12:54 +0000 (15:12 -0700)]
Added Olimex STM32 {H,P}107.cfg board

9 years agotransport: move files over to transport folder
Øyvind Harboe [Mon, 13 Jun 2011 13:42:46 +0000 (15:42 +0200)]
transport: move files over to transport folder

as we introduce swd and jtag as two transports, we want
to start up with a new transport folder to organize the
code a bit.

9 years agoHACKING: add tip on how to write comments
Øyvind Harboe [Sun, 12 Jun 2011 09:33:37 +0000 (11:33 +0200)]
HACKING: add tip on how to write comments

9 years agoadded minimodule interface
rlrosa [Fri, 10 Jun 2011 20:26:47 +0000 (13:26 -0700)]
added minimodule interface

9 years agodoxy more
Rodrigo L. Rosa [Fri, 10 Jun 2011 19:24:55 +0000 (12:24 -0700)]
doxy more

9 years agodoxy & cleanup
Rodrigo L. Rosa [Fri, 10 Jun 2011 19:24:27 +0000 (12:24 -0700)]
doxy & cleanup

9 years agofix protection behavior
Rodrigo L. Rosa [Fri, 10 Jun 2011 19:23:52 +0000 (12:23 -0700)]
fix protection behavior

9 years agocleanup trailing whitespaces
Rodrigo L. Rosa [Fri, 10 Jun 2011 19:23:34 +0000 (12:23 -0700)]
cleanup trailing whitespaces

9 years agoflash speed improved
Rodrigo L. Rosa [Fri, 10 Jun 2011 19:23:17 +0000 (12:23 -0700)]
flash speed improved

9 years agoremoved unnecessary actions/controls
Rodrigo L. Rosa [Fri, 10 Jun 2011 19:21:49 +0000 (12:21 -0700)]
removed unnecessary actions/controls

9 years agocleanup flash module command
Rodrigo L. Rosa [Fri, 10 Jun 2011 19:21:22 +0000 (12:21 -0700)]
cleanup flash module command

9 years agofix read for verify_image
Rodrigo L. Rosa [Fri, 10 Jun 2011 19:20:59 +0000 (12:20 -0700)]
fix read for verify_image

9 years agofix read speed improved by queueing commands
Rodrigo L. Rosa [Fri, 10 Jun 2011 19:20:18 +0000 (12:20 -0700)]
fix read speed improved by queueing commands

9 years agofix flash driver size, sector erase
Rodrigo L. Rosa [Fri, 10 Jun 2011 19:19:58 +0000 (12:19 -0700)]
fix flash driver size, sector erase

9 years agoAdded minimodule (ftdi) interface
Rodrigo L. Rosa [Fri, 10 Jun 2011 19:19:32 +0000 (12:19 -0700)]
Added minimodule (ftdi) interface

9 years agoAdded configuration file for STM3220G-EVAL board.
Laurent Charpentier [Mon, 6 Jun 2011 10:47:52 +0000 (12:47 +0200)]
Added configuration file for STM3220G-EVAL board.

9 years agoAdded configuration file for stm32f2xxx.
Laurent Charpentier [Mon, 6 Jun 2011 09:51:38 +0000 (11:51 +0200)]
Added configuration file for stm32f2xxx.

9 years agoSilence -O3 warning
Øyvind Harboe [Tue, 7 Jun 2011 15:58:41 +0000 (17:58 +0200)]
Silence -O3 warning

9 years agoFix "unused variable" warnings (errors) detected with GCC 4.7.0 - leftover changes
Freddie Chopin [Fri, 3 Jun 2011 20:10:03 +0000 (22:10 +0200)]
Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - leftover changes

9 years agomips: add nor flash write from memory block
Stefan Mahr [Fri, 3 Jun 2011 09:10:34 +0000 (11:10 +0200)]
mips: add nor flash write from memory block

9 years agocrc check on flashed data
Rodrigo L. Rosa [Thu, 2 Jun 2011 16:59:18 +0000 (09:59 -0700)]
crc check on flashed data

9 years agocode cleanup
Rodrigo L. Rosa [Thu, 2 Jun 2011 16:52:33 +0000 (09:52 -0700)]
code cleanup

9 years agoFix "unused variable" warnings (errors) detected with GCC 4.7.0 - dubious fixes
Freddie Chopin [Fri, 3 Jun 2011 20:13:35 +0000 (22:13 +0200)]
Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - dubious fixes

9 years agoFix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes
Freddie Chopin [Fri, 3 Jun 2011 20:10:03 +0000 (22:10 +0200)]
Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes

9 years agouptech2410
Bear [Thu, 2 Jun 2011 10:17:28 +0000 (12:17 +0200)]
uptech2410

9 years agobootstrap: Various code improvements
Tormod Volden [Wed, 1 Jun 2011 18:59:52 +0000 (20:59 +0200)]
bootstrap: Various code improvements

- Do not specify -e twice.
- Use "which" instead of calling commands that might not exist.
- Fix bashism ("==" is C not sh)
- Carefully quote potentially empty variables
- Check command arguments before doing anything
- Rewrite argument checking to be more easily extensible
- Consistent indentation
- UNIX style error messages

9 years agomips: fixup fastdata
Stefan Mahr [Tue, 31 May 2011 07:33:01 +0000 (09:33 +0200)]
mips: fixup fastdata

fixup fastdata