]> git.sur5r.net Git - openocd/log
openocd
13 years agocontrib: fix udev rules for tty based adaptors
Luca Bruno [Tue, 13 Sep 2011 13:11:01 +0000 (15:11 +0200)]
contrib: fix udev rules for tty based adaptors

Most serial adaptors are identified by udev with SUBSYSTEM=tty and
without DEVTYPE. This patch fix udev rules to work with any listed
tty-based adaptor. It has been tested with a FTDI-based Bus Pirate.

Signed-off-by: Luca Bruno <lucab@debian.org>
13 years agokinetis auto mass erase on secured devices
Mathias K [Mon, 12 Sep 2011 19:24:17 +0000 (21:24 +0200)]
kinetis auto mass erase on secured devices

This is a proof of concept to get access to the debug port of a
secured kinetis cpu. On full flash erase the cpu is automatically
secured and the debug port is not accessible.
To get this to work the srst line is needed and the necessary
configuration should be added to the configuration file.

13 years agoFixes and spellchecks for various Buspirate output messages
Luca Bruno [Sat, 10 Sep 2011 15:01:46 +0000 (17:01 +0200)]
Fixes and spellchecks for various Buspirate output messages

Signed-off-by: Luca Bruno <lucab@debian.org>
13 years agoAdd definition for the STEVAL-PCC010 board with the STM32F207
Uwe Bonnes [Thu, 1 Sep 2011 15:14:35 +0000 (17:14 +0200)]
Add definition for the STEVAL-PCC010 board with the STM32F207

13 years agoImplementation of a new jtag remote_bitbang driver.
Richard Uhler [Thu, 25 Aug 2011 20:29:33 +0000 (13:29 -0700)]
Implementation of a new jtag remote_bitbang driver.

The driver sends ascii encoded bitbang commands over unix sockets or TCP to
another process. This driver is useful for debugging software running on
processors which are being simulated.

13 years agoULINK driver: Remove typedefs in ulink.c
Martin Schmölzer [Wed, 31 Aug 2011 15:22:21 +0000 (17:22 +0200)]
ULINK driver: Remove typedefs in ulink.c

Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
13 years agoULINK driver: Remove typedefs in OpenULINK firmware: Use typedefs from stdint.h ...
Martin Schmölzer [Wed, 31 Aug 2011 14:51:41 +0000 (16:51 +0200)]
ULINK driver: Remove typedefs in OpenULINK firmware: Use typedefs from stdint.h (uint8_t, uint16_t) instead of custom typedefs in shorttypes.h (u8, u16, ...)

Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
13 years agoULINK driver: Remove typedefs in OpenULINK firmware USB descriptor structures
Martin Schmölzer [Tue, 30 Aug 2011 22:20:35 +0000 (00:20 +0200)]
ULINK driver: Remove typedefs in OpenULINK firmware USB descriptor structures

Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
13 years agousleep to jtag_sleep
Rodrigo L. Rosa [Wed, 31 Aug 2011 22:43:11 +0000 (15:43 -0700)]
usleep to jtag_sleep

this will help avoid platform specific timing issues

13 years agostatic for some functions
Rodrigo L. Rosa [Wed, 31 Aug 2011 19:37:20 +0000 (12:37 -0700)]
static for some functions

made two functions into static, since they are not required by anything external

13 years agospeed up, relocate function
Rodrigo L. Rosa [Wed, 31 Aug 2011 19:32:14 +0000 (12:32 -0700)]
speed up, relocate function

added an attempt to use the non-reseting halting sequence. if it fails, then the full sequence will be attempted. this makes things a bit faster most of the time.
changed the location of a function, avoiding a forward def

13 years agoMerge branch 'dsp5680xx_cherry' of git://repo.or.cz/openocd/dsp568013 into fix
Øyvind Harboe [Wed, 31 Aug 2011 14:27:09 +0000 (16:27 +0200)]
Merge branch 'dsp5680xx_cherry' of git://repo.or.cz/openocd/dsp568013 into fix

13 years agoULINK driver: Update firmware image to reflect the latest changes in source code.
Martin Schmoelzer [Tue, 23 Aug 2011 15:22:53 +0000 (17:22 +0200)]
ULINK driver: Update firmware image to reflect the latest changes in source code.

Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
13 years agoULINK driver: Add '-lm' linker flag when building this driver (required for correct...
Martin Schmoelzer [Thu, 4 Aug 2011 20:30:25 +0000 (22:30 +0200)]
ULINK driver: Add '-lm' linker flag when building this driver (required for correct calculation of JTAG TCK speed setting)

Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
13 years agoULINK driver: Implement variable TCK frequency in OpenOCD driver
Martin Schmoelzer [Thu, 4 Aug 2011 17:03:59 +0000 (19:03 +0200)]
ULINK driver: Implement variable TCK frequency in OpenOCD driver

Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
13 years agoULINK driver: Implement variable TCK frequency in OpenULINK firmware
Martin Schmölzer [Mon, 4 Jul 2011 17:03:29 +0000 (19:03 +0200)]
ULINK driver: Implement variable TCK frequency in OpenULINK firmware

Also, speed up jtag_clock_tck() significantly (150 kHz -> 375 kHz)

Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
13 years agoULINK driver: Fix whitespace in OpenULINK firmware usb.c module (trivial)
Martin Schmoelzer [Tue, 23 Aug 2011 12:21:56 +0000 (14:21 +0200)]
ULINK driver: Fix whitespace in OpenULINK firmware usb.c module (trivial)

Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
13 years agoULINK driver: Implement JTAG_PATHMOVE command
Martin Schmoelzer [Tue, 23 Aug 2011 14:53:03 +0000 (16:53 +0200)]
ULINK driver: Implement JTAG_PATHMOVE command

Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
13 years agoULINK driver: Implement JTAG_STABLECLOCKS command
Martin Schmölzer [Mon, 4 Jul 2011 10:29:02 +0000 (12:29 +0200)]
ULINK driver: Implement JTAG_STABLECLOCKS command

Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
13 years agoULINK driver: Implement command to manually force downloading firmware image from...
Martin Schmölzer [Mon, 4 Jul 2011 17:50:46 +0000 (19:50 +0200)]
ULINK driver: Implement command to manually force downloading firmware image from arbitrary location

Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
13 years agoULINK driver: Re-order queue functions to reflect the order in commands.h
Martin Schmölzer [Mon, 4 Jul 2011 10:38:47 +0000 (12:38 +0200)]
ULINK driver: Re-order queue functions to reflect the order in commands.h

Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
13 years agoULINK driver: Properly propagate return values in ulink_execute_queue()
Martin Schmölzer [Mon, 4 Jul 2011 10:30:13 +0000 (12:30 +0200)]
ULINK driver: Properly propagate return values in ulink_execute_queue()

Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
13 years agoULINK driver: Update some comments, fix some coding mistakes
Martin Schmölzer [Sun, 26 Jun 2011 23:00:15 +0000 (01:00 +0200)]
ULINK driver: Update some comments, fix some coding mistakes

Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
13 years agovsllink driver compile fails with'vsllink_debug_buffer' defined but not used
simonqian.openocd [Tue, 30 Aug 2011 17:52:20 +0000 (01:52 +0800)]
vsllink driver compile fails with'vsllink_debug_buffer' defined but not used

USB communication is handled by code under versaloon directory.
So _DEBUG_USB_COMMS_  should not be used in vsllink.c.
Attachment is the patch.

13 years agoremoved trailing whitespaces
Rodrigo L. Rosa [Wed, 31 Aug 2011 04:14:33 +0000 (21:14 -0700)]
removed trailing whitespaces

emacs is awesome.
replace-regexp RET [ ]+$ RET RET
and it's done

13 years agofix enter debug mode for locking
Rodrigo L. Rosa [Wed, 31 Aug 2011 04:08:59 +0000 (21:08 -0700)]
fix enter debug mode for locking

added an alternative way to enter debug mode, which does not require restarting the chip.
this will not always work, but in general it will (failure 0.3%), and failure is not a dramatic issue, simply have to use the full sequence.
the user can only access "halt", which uses the full sequence, so the user should not have any problems.
restarting the chip requires reconfiguring the flash module. the doc is very poor, so i'd rather have the two methods, and live with the 0.3%.

13 years agofix irlen handling
Rodrigo L. Rosa [Tue, 30 Aug 2011 21:46:20 +0000 (14:46 -0700)]
fix irlen handling

sometimes the master tap will be enabled, since tap switching is required during halt/lock/unlocking procedures.
now irscan handles this, avoiding unnecessary warnings and preventing errors.

13 years agofix debug mode,lock,unlock
Rodrigo L. Rosa [Tue, 30 Aug 2011 22:13:49 +0000 (15:13 -0700)]
fix debug mode,lock,unlock

got new info regarding setting the chip to debug mode, and locking/unlocking flash memory.
the newer implementation is a bit slower, but always works.
the previous implementation would randomly (as once every 25k-70k times) get the chip into a state where the freescale tool would be necessary. this is fixed now.

added functions to play around with the jtag state machine. they are not the happiest, but are necessary to be able to execute the halting/locking/unlocking sequences.

Conflicts:

src/target/dsp5680xx.c

13 years agofix error handling during halt
Rodrigo L. Rosa [Tue, 30 Aug 2011 21:26:05 +0000 (14:26 -0700)]
fix error handling during halt

the user can execute halt, but no enter_debug_mode. modified the error handling to suite this.
the new implementation of unlocking will use enter_debug_mode, and should not get the same errors as the user would, because not being able to enter debug mode is actually success when checking for locked flash.

13 years agooptional crc for flash writing
Rodrigo L. Rosa [Tue, 30 Aug 2011 21:19:09 +0000 (14:19 -0700)]
optional crc for flash writing

crc check was always performed on newly flashed data, now it is optional
flash mem can be locked by writing a specific word to a specific address in flash.
to verify flash, target must be halted, and this will (when the new halt sequence is implemented) require reseting the chip. if the target is reset after writing the lock words, then it will lock, hence the CRC will fail because it is not possible to read stuff from the target.

also added a function that resets the jtag state machine.
this is not used yet, but will be soon.
it is implemented to allow strict control over JTAG state machine, necessary to implement to halt and unlocking sequences.

13 years agodef syntax to match tap irlen
Rodrigo L. Rosa [Tue, 30 Aug 2011 20:49:44 +0000 (13:49 -0700)]
def syntax to match tap irlen

the master tap has a 4 bit irlen
changed the instructions to be 4 bit, ie, removed the zeros.
it makes it clearer to interpret.

13 years agodsp568013 disable polling by default
Rodrigo L. Rosa [Tue, 16 Aug 2011 02:50:59 +0000 (19:50 -0700)]
dsp568013 disable polling by default

13 years agocortex_a hybrid & context breakpoints
Heythem Bouhaja [Mon, 9 May 2011 08:40:35 +0000 (10:40 +0200)]
cortex_a hybrid & context breakpoints

13 years agoFix off by one bug in FreeRTOS
Evan Hunter [Fri, 26 Aug 2011 06:30:45 +0000 (16:30 +1000)]
Fix off by one bug in FreeRTOS

13 years agoAdd Valuline HD to config file
Jonathan Dumaresq [Wed, 24 Aug 2011 20:13:35 +0000 (16:13 -0400)]
Add Valuline HD to config file

This will add the BSTAP for the medium and high density devices

13 years agoThis will add the Value Line HD of stm32 devices.
Jonathan Dumaresq [Wed, 24 Aug 2011 20:08:18 +0000 (16:08 -0400)]
This will add the Value Line HD of stm32 devices.

This has been tested on STM32F100VE

13 years agoremove target argument from gdb packet handling functions
Jie Zhang [Wed, 24 Aug 2011 15:23:04 +0000 (11:23 -0400)]
remove target argument from gdb packet handling functions

13 years agoAdd suspended task list to FreeRTOS support
Evan [Mon, 18 Jul 2011 03:47:24 +0000 (13:47 +1000)]
Add suspended task list to FreeRTOS support

13 years agoFix FreeRTOS thread list parsing
Evan Hunter [Tue, 23 Aug 2011 04:02:24 +0000 (14:02 +1000)]
Fix FreeRTOS thread list parsing

13 years agoFix redbee config files
Jim Paris [Mon, 22 Aug 2011 20:48:14 +0000 (16:48 -0400)]
Fix redbee config files

Currently the board/redbee-*.cfg files incorrectly include the
interface definition.  Move the interfaces to interface/,
and create a single board/redbee.cfg that is common to both boards.
Intended usage is now:
  openocd -f interface/redbee-econotag.cfg -f board/redbee.cfg

13 years agonon_cfi: add SST39WF1601 support
Andreas Bießmann [Fri, 19 Aug 2011 14:53:40 +0000 (16:53 +0200)]
non_cfi: add SST39WF1601 support

Invented by jknick in sparkfun forum:
http://forum.sparkfun.com/viewtopic.php?t=19788

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
13 years agoFix Sam3u flash bank 1 issue
olivier Schonken [Sat, 20 Aug 2011 14:31:35 +0000 (16:31 +0200)]
Fix Sam3u flash bank 1 issue

13 years agocfi: add EN29LV800BB support
Gunnar Henne [Thu, 18 Aug 2011 08:52:16 +0000 (09:52 +0100)]
cfi: add EN29LV800BB support

Posted by telekatz@gmx.de in the bettyhacks forum for openocd
0.4.0 and integrated into 0.5.0 by Gunnar Henne.

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
13 years agoremove white space before TAB
Jie Zhang [Wed, 17 Aug 2011 15:21:22 +0000 (11:21 -0400)]
remove white space before TAB

13 years agobuild: check buspirate build host
Spencer Oliver [Tue, 16 Aug 2011 16:33:19 +0000 (17:33 +0100)]
build: check buspirate build host

buspirate has never supported building on native windows (mingw).
configure will now check this is not the case.

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
13 years agoversaloon driver update
SimonQian [Mon, 11 Jul 2011 17:48:05 +0000 (01:48 +0800)]
versaloon driver update

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
13 years agobuild: check guess-rev.sh can be found/executed
Spencer Oliver [Tue, 16 Aug 2011 11:06:57 +0000 (12:06 +0100)]
build: check guess-rev.sh can be found/executed

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
13 years agobuild: rename configure.in to configure.ac
Spencer Oliver [Tue, 16 Aug 2011 11:00:27 +0000 (12:00 +0100)]
build: rename configure.in to configure.ac

configure.ac is the correct name to use with modern autotools.

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
13 years agojim: update to fix mingw/msys build issues
Spencer Oliver [Tue, 16 Aug 2011 10:58:06 +0000 (11:58 +0100)]
jim: update to fix mingw/msys build issues

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
13 years agoshow git commit number even when cross-compiling
Jie Zhang [Mon, 15 Aug 2011 14:52:11 +0000 (10:52 -0400)]
show git commit number even when cross-compiling

AC_CHECK_FILE will die when cross-compiling. So don't use it to test the existence of guess-rev.sh.

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
13 years agojimtcl: delete OpenOCD's broken 'stacktrace' command
Øyvind Harboe [Sun, 14 Aug 2011 16:28:12 +0000 (18:28 +0200)]
jimtcl: delete OpenOCD's broken 'stacktrace' command

Use "info stacktrace" instead. This fixes build problems with
latest Jim Tcl.

13 years agomips: fix potential alignment error
Stefan Mahr [Wed, 10 Aug 2011 21:42:28 +0000 (23:42 +0200)]
mips: fix potential alignment error

13 years agomips: fix reading uint32 and uint16 when running on big endian host
Stefan Mahr [Wed, 10 Aug 2011 21:29:20 +0000 (23:29 +0200)]
mips: fix reading uint32 and uint16 when running on big endian host

13 years agotarget: add helper functions to get/set u16 or u32 array from/to buffer
Stefan Mahr [Wed, 10 Aug 2011 20:34:41 +0000 (22:34 +0200)]
target: add helper functions to get/set u16 or u32 array from/to buffer

13 years agoftd2xx: fix build warnings
Spencer Oliver [Wed, 10 Aug 2011 21:23:29 +0000 (22:23 +0100)]
ftd2xx: fix build warnings

Due to build warnings introduced in newer versions of ftd2xx we
use strings to report errors rather than result codes. This also
gives us the same behaviour as libftdi.

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
13 years agoremove useless pxref to SMP subsection
Jie Zhang [Wed, 10 Aug 2011 19:32:09 +0000 (15:32 -0400)]
remove useless pxref to SMP subsection

13 years agoMerge branch 'dsp5680xx_cherry' of git://repo.or.cz/openocd/dsp568013 into HEAD
Øyvind Harboe [Thu, 11 Aug 2011 14:23:15 +0000 (16:23 +0200)]
Merge branch 'dsp5680xx_cherry' of git://repo.or.cz/openocd/dsp568013 into HEAD

13 years agoEvaluate 'script' in the global scope
Steve Bennett [Thu, 11 Aug 2011 02:10:54 +0000 (12:10 +1000)]
Evaluate 'script' in the global scope

Scripts sourced via 'script' should evaluate in the global
scope to make it easy to set and reference global variables.

Signed-off-by: Steve Bennett <steveb@workware.net.au>
13 years agofix return code from dsp5680xx_read
Rodrigo L. Rosa [Fri, 5 Aug 2011 18:40:05 +0000 (11:40 -0700)]
fix return code from dsp5680xx_read

it returned ERROR_OK even though it actually failed.
this made the Tcl interface report success, though it had not succeeded.

13 years agorenamed for clarity
Rodrigo L. Rosa [Fri, 5 Aug 2011 18:38:12 +0000 (11:38 -0700)]
renamed for clarity

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)

13 years agorlink: read only the expected number of bytes
Andreas Fritiofson [Sat, 16 Jul 2011 21:37:40 +0000 (23:37 +0200)]
rlink: read only the expected number of bytes

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>
13 years agorlink: simplify and optimize queue fill level checks
Andreas Fritiofson [Sat, 16 Jul 2011 23:02:59 +0000 (01:02 +0200)]
rlink: simplify and optimize queue fill level checks

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

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

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

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

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

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

13 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

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

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

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

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

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

13 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

13 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

13 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

13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>