aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-08-30fix error handling during haltRodrigo L. Rosa1-4/+4
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.
2011-08-30optional crc for flash writingRodrigo L. Rosa3-19/+39
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.
2011-08-30def syntax to match tap irlenRodrigo L. Rosa1-4/+4
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.
2011-08-30dsp568013 disable polling by defaultRodrigo L. Rosa1-1/+5
2011-08-30cortex_a hybrid & context breakpointsHeythem Bouhaja6-48/+542
2011-08-27Fix off by one bug in FreeRTOSEvan Hunter1-2/+2
2011-08-25Add Valuline HD to config fileJonathan Dumaresq1-1/+7
This will add the BSTAP for the medium and high density devices
2011-08-25This will add the Value Line HD of stm32 devices.Jonathan Dumaresq1-0/+37
This has been tested on STM32F100VE
2011-08-24remove target argument from gdb packet handling functionsJie Zhang6-68/+66
2011-08-24Add suspended task list to FreeRTOS supportEvan1-0/+1
2011-08-24Fix FreeRTOS thread list parsingEvan Hunter1-5/+8
2011-08-24Fix redbee config filesJim Paris5-16/+13
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
2011-08-24non_cfi: add SST39WF1601 supportAndreas Bießmann2-0/+15
Invented by jknick in sparkfun forum: http://forum.sparkfun.com/viewtopic.php?t=19788 Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
2011-08-21Fix Sam3u flash bank 1 issueolivier Schonken1-2/+3
2011-08-18cfi: add EN29LV800BB supportGunnar Henne3-0/+19
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>
2011-08-17remove white space before TABJie Zhang1-1/+1
2011-08-16build: check buspirate build hostSpencer Oliver1-0/+4
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>
2011-08-16versaloon driver updateSimonQian14-457/+2490
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-08-16build: check guess-rev.sh can be found/executedSpencer Oliver1-1/+1
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-08-16build: rename configure.in to configure.acSpencer Oliver1-0/+0
configure.ac is the correct name to use with modern autotools. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-08-16jim: update to fix mingw/msys build issuesSpencer Oliver1-0/+0
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-08-15show git commit number even when cross-compilingJie Zhang1-11/+5
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>
2011-08-14jimtcl: delete OpenOCD's broken 'stacktrace' commandØyvind Harboe1-31/+0
Use "info stacktrace" instead. This fixes build problems with latest Jim Tcl.
2011-08-12mips: fix potential alignment errorStefan Mahr1-1/+19
2011-08-12mips: fix reading uint32 and uint16 when running on big endian hostStefan Mahr1-37/+20
2011-08-12target: add helper functions to get/set u16 or u32 array from/to bufferStefan Mahr2-0/+37
2011-08-11ftd2xx: fix build warningsSpencer Oliver4-78/+164
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>
2011-08-11remove useless pxref to SMP subsectionJie Zhang1-1/+1
2011-08-11Merge branch 'dsp5680xx_cherry' of git://repo.or.cz/openocd/dsp568013 into HEADØyvind Harboe1-143/+141
2011-08-11Evaluate 'script' in the global scopeSteve Bennett1-2/+2
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>
2011-08-10fix return code from dsp5680xx_readRodrigo L. Rosa1-1/+1
it returned ERROR_OK even though it actually failed. this made the Tcl interface report success, though it had not succeeded.
2011-08-10renamed for clarityRodrigo L. Rosa1-142/+140
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 Fritiofson1-10/+6
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 Fritiofson1-44/+34
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 Fritiofson1-10/+5
__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 Fritiofson1-19/+9
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 Fritiofson1-7/+9
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 Fritiofson1-103/+100
Remove unnecessary block scopes to reduce indentation level. Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2011-08-10rlink: fix indentation errorsAndreas Fritiofson1-363/+363
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 DRASKOVIC1-22/+27
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 DRASKOVIC2-29/+322
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 DRASKOVIC6-5/+355
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 DRASKOVIC1-1/+1
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 DRASKOVIC1-7/+1
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. Rosa1-2/+6
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. Rosa1-3/+3
retval was not correctly propagated
2011-08-09flash/nor/cfi: fix TopBottom for atmel chipsAndreas Bießmann1-4/+17
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 Harboe4-14/+8
This reverts commit d567df02b9f3e7d2e7e78b3c2907ecad9aa4bbd4.
2011-08-09dsp5680xx fix constante refRodrigo L. Rosa1-1/+1
a counter was incorrectly set when i added the macros i incorrectly called them. fixed that.
2011-08-09dsp5680xx fix FM clkRodrigo L. Rosa1-0/+2
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.