aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-10-09stm32f1x: use register base instead of register offsetAndreas Fritiofson1-44/+51
Access the different flash banks' registers using a bank specific register base and a register specific offset. This is equivalent but feels more natural. Some accesses were discovered that maybe should not be hard coded to bank0 registers. Add a note about that. Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2011-10-09cortex_m3: use armv7m's async algorithm implementationAndreas Fritiofson1-0/+2
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2011-10-09armv7m: implement async algorithm functionsAndreas Fritiofson2-40/+84
Split armv7m_run_algorithm into two pieces and use them to reimplement it. The arch_info parameter is used to keep context between the two calls, so both calls must refer to the same armv7m_algorithm struct. Ugly but works for a proof-of-concept. Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2011-10-09target: add async algorithm entries to the target typeAndreas Fritiofson3-0/+99
On supported targets, this may be used to start a long running algorithm in the background so the target may be interacted with during execution and later wait for its completion. The most obvious use case is a double buffered flash algorithm that can upload the next block of data while the algorithm is flashing the current. Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2011-10-08arm-jtag-ew: Send GDB keep_alive() messages when logging USB communicationSimon Barner1-0/+3
- Ticket: #35
2011-10-08arm-jtag-ew: FormattingSimon Barner1-1/+1
2011-10-08arm-jtag-ew: In armjtagew_init(), set initial JTAG speed to 32 kHz (before ↵Simon Barner1-0/+3
TAP initialization). This prevents rare communication errors during startup.
2011-10-08arm-jtag-ew: Emit a warning if interface firmware version != 1.6Simon Barner1-0/+5
2011-10-08arm-jtag-ew: Declare interface as `jtag_only'Simon Barner1-0/+1
2011-10-08arm-jtag-ew: Provide armjtagew_speed_div() in order to fix interactive use ↵Simon Barner1-0/+9
of `adapter_khz'
2011-10-08arm-jtag-ew: Fix setting interface speed (2/2)Simon Barner1-2/+2
Interface expects speed in Hz, not kHz - Ticket #34
2011-10-08arm-jtag-ew: Fix setting interface speed (1/2)Simon Barner1-1/+1
CMD_SET_TCK_FREQUENCY message length is 5, not 4 - Ticket: #34
2011-10-08Add udev rules for openmoko neo1973 debug boardEugeniy Meshcheryakov1-0/+3
2011-10-03STM32L: Added flash driver and targetClément Burin des Roziers5-0/+1117
Added the flash driver for the STM32L family, which highly differ from the STM32F family. Added the TCL target file for JTAG access.
2011-10-01Verdex: Add support for Gumstix Verdex boards.Ash Charles1-0/+17
Gumstix Verdex is a PXA270-based series of computer-on-modules. This configuration file is based off the voipac.cfg configuration with a different flash memory configuration. This has been tested flyswatter adapter to reflash a Gumstix Verdex XL6P board.
2011-09-30u8500 : config for L2 cacheMichel Jaouen1-0/+6
2011-09-30armv7a ,cortex a : add L1, L2 cache support, va to pa supportMichel Jaouen6-230/+911
2011-09-30jim-nvp is moving from jimtcl to openocdSteve Bennett6-4/+620
The jim-nvp code is specific to openocd, so it belongs in openocd, not in the core jimtcl. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-09-30AM/DM37x: add ES1.2 silicon type into accountVladimir Zapolskiy1-1/+1
The missing value for ES1.2 silicon revision is mentioned in sprugn4m.pdf, and the recent TI Beagleboard XM is powered by it, so let support the revision.
2011-09-23add target events, run algorithm and default r/w buffer apiMathias K1-7/+173
Target events are added to get better gdb support. The run algorithm functionality are implemented to support feature fast flash write functionality. The new r/w buffer api is now used to support the special memory address handling. The output of the md command was fixed.
2011-09-23kinetis : fix deadlock on device having hasidcode false.Michel Jaouen1-3/+1
2011-09-17kinetis cpu flash driverMathias K3-1/+566
Initial release of the freescale kinetis cpu flash driver.
2011-09-16contrib: fix udev rules for tty based adaptorsLuca Bruno1-2/+2
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>
2011-09-16kinetis auto mass erase on secured devicesMathias K1-0/+182
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.
2011-09-11Fixes and spellchecks for various Buspirate output messagesLuca Bruno1-9/+9
Signed-off-by: Luca Bruno <lucab@debian.org>
2011-09-09Add definition for the STEVAL-PCC010 board with the STM32F207Uwe Bonnes1-0/+9
2011-09-02Implementation of a new jtag remote_bitbang driver.Richard Uhler6-0/+397
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.
2011-09-01ULINK driver: Remove typedefs in ulink.cMartin Schmölzer1-36/+35
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
2011-09-01ULINK driver: Remove typedefs in OpenULINK firmware: Use typedefs from ↵Martin Schmölzer11-206/+162
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>
2011-09-01ULINK driver: Remove typedefs in OpenULINK firmware USB descriptor structuresMartin Schmölzer2-37/+45
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
2011-08-31usleep to jtag_sleepRodrigo L. Rosa1-16/+16
this will help avoid platform specific timing issues
2011-08-31static for some functionsRodrigo L. Rosa1-2/+2
made two functions into static, since they are not required by anything external
2011-08-31speed up, relocate functionRodrigo L. Rosa1-46/+51
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
2011-08-31Merge branch 'dsp5680xx_cherry' of git://repo.or.cz/openocd/dsp568013 into fixØyvind Harboe4-133/+401
2011-08-31ULINK driver: Update firmware image to reflect the latest changes in source ↵Martin Schmoelzer1-229/+334
code. Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
2011-08-31ULINK driver: Add '-lm' linker flag when building this driver (required for ↵Martin Schmoelzer1-0/+4
correct calculation of JTAG TCK speed setting) Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
2011-08-31ULINK driver: Implement variable TCK frequency in OpenOCD driverMartin Schmoelzer1-37/+366
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
2011-08-31ULINK driver: Implement variable TCK frequency in OpenULINK firmwareMartin Schmölzer4-34/+408
Also, speed up jtag_clock_tck() significantly (150 kHz -> 375 kHz) Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
2011-08-31ULINK driver: Fix whitespace in OpenULINK firmware usb.c module (trivial)Martin Schmoelzer1-1/+1
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
2011-08-31ULINK driver: Implement JTAG_PATHMOVE commandMartin Schmoelzer1-1/+51
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
2011-08-31ULINK driver: Implement JTAG_STABLECLOCKS commandMartin Schmölzer1-0/+54
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
2011-08-31ULINK driver: Implement command to manually force downloading firmware image ↵Martin Schmölzer1-3/+37
from arbitrary location Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
2011-08-31ULINK driver: Re-order queue functions to reflect the order in commands.hMartin Schmölzer1-79/+79
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
2011-08-31ULINK driver: Properly propagate return values in ulink_execute_queue()Martin Schmölzer1-0/+4
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
2011-08-31ULINK driver: Update some comments, fix some coding mistakesMartin Schmölzer1-4/+7
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
2011-08-31vsllink driver compile fails with'vsllink_debug_buffer' defined but not usedsimonqian.openocd1-3/+3
USB communication is handled by code under versaloon directory. So _DEBUG_USB_COMMS_ should not be used in vsllink.c. Attachment is the patch.
2011-08-30removed trailing whitespacesRodrigo L. Rosa1-96/+96
emacs is awesome. replace-regexp RET [ ]+$ RET RET and it's done
2011-08-30fix enter debug mode for lockingRodrigo L. Rosa1-13/+55
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%.
2011-08-30fix irlen handlingRodrigo L. Rosa1-5/+10
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.
2011-08-30fix debug mode,lock,unlockRodrigo L. Rosa1-13/+210
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