aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2011-10-13target: whitespace cleanupSpencer Oliver
Change-Id: I1453f4f3dc0add529da20577e38b8b82d7d00366 Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net> Reviewed-on: http://openocd.zylin.com/18 Reviewed-by: Alex Austin <alex.austin@spectrumdsi.com> Tested-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2011-10-13breakpoint : smp software breakpoint issueMichel Jaouen
Change-Id: Iefe78bad71d4fdb38ae412ab8fe2f6282836c22e Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com> Reviewed-on: http://openocd.zylin.com/14 Tested-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2011-10-11breakpoint : indentationMichel Jaouen
Change-Id: Icdb8f72dbb516cd0dfc612c3d61b6801f6382be6 Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-10-11replace berlios url's with sourceforge url'sSpencer Oliver
Change-Id: I1c9957bb64df87cee7c5e832f21453eb8934a5fb Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-10-09stm32f1x: use async algorithm in flash programming routineAndreas Fritiofson
Let the target algorithm be running in the background and buffer data continuously through a FIFO. This reduces or removes the effect of latency because only a very small number of queue executions needs to be done per buffer fill. Previously, the many repeated target state changes, register accesses (really inefficient) and algorithm uploads caused the flash programming to be latency bound in many cases. Now it should scale better with increased throughput. Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2011-10-09stm32f1x: use register base instead of register offsetAndreas Fritiofson
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 Fritiofson
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2011-10-09armv7m: implement async algorithm functionsAndreas Fritiofson
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 Fritiofson
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 Barner
- Ticket: #35
2011-10-08arm-jtag-ew: FormattingSimon Barner
2011-10-08arm-jtag-ew: In armjtagew_init(), set initial JTAG speed to 32 kHz (before ↵Simon Barner
TAP initialization). This prevents rare communication errors during startup.
2011-10-08arm-jtag-ew: Emit a warning if interface firmware version != 1.6Simon Barner
2011-10-08arm-jtag-ew: Declare interface as `jtag_only'Simon Barner
2011-10-08arm-jtag-ew: Provide armjtagew_speed_div() in order to fix interactive use ↵Simon Barner
of `adapter_khz'
2011-10-08arm-jtag-ew: Fix setting interface speed (2/2)Simon Barner
Interface expects speed in Hz, not kHz - Ticket #34
2011-10-08arm-jtag-ew: Fix setting interface speed (1/2)Simon Barner
CMD_SET_TCK_FREQUENCY message length is 5, not 4 - Ticket: #34
2011-10-03STM32L: Added flash driver and targetClément Burin des Roziers
Added the flash driver for the STM32L family, which highly differ from the STM32F family. Added the TCL target file for JTAG access.
2011-09-30armv7a ,cortex a : add L1, L2 cache support, va to pa supportMichel Jaouen
2011-09-30jim-nvp is moving from jimtcl to openocdSteve Bennett
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-23add target events, run algorithm and default r/w buffer apiMathias K
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 Jaouen
2011-09-17kinetis cpu flash driverMathias K
Initial release of the freescale kinetis cpu flash driver.
2011-09-16kinetis auto mass erase on secured devicesMathias K
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 Bruno
Signed-off-by: Luca Bruno <lucab@debian.org>
2011-09-02Implementation of a new jtag remote_bitbang driver.Richard Uhler
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ölzer
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ölzer
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ölzer
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
2011-08-31usleep to jtag_sleepRodrigo L. Rosa
this will help avoid platform specific timing issues
2011-08-31static for some functionsRodrigo L. Rosa
made two functions into static, since they are not required by anything external
2011-08-31speed up, relocate functionRodrigo L. Rosa
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 Harboe
2011-08-31ULINK driver: Update firmware image to reflect the latest changes in source ↵Martin Schmoelzer
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 Schmoelzer
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 Schmoelzer
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
2011-08-31ULINK driver: Implement variable TCK frequency in OpenULINK firmwareMartin Schmölzer
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 Schmoelzer
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
2011-08-31ULINK driver: Implement JTAG_PATHMOVE commandMartin Schmoelzer
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
2011-08-31ULINK driver: Implement JTAG_STABLECLOCKS commandMartin Schmölzer
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ölzer
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ölzer
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ölzer
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at>
2011-08-31ULINK driver: Update some comments, fix some coding mistakesMartin Schmölzer
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.openocd
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. Rosa
emacs is awesome. replace-regexp RET [ ]+$ RET RET and it's done
2011-08-30fix enter debug mode for lockingRodrigo L. Rosa
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. Rosa
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. Rosa
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
2011-08-30fix error handling during haltRodrigo L. Rosa
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.