Spencer Oliver
0dac042a10
luminary: add new targets
...
update target support from latest SW-DRL 8049
Change-Id: I40aba4d30fe2b79fd955f466c64d99a1dfd63ecf
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk >
Reviewed-on: http://openocd.zylin.com/31
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com >
Tested-by: Øyvind Harboe <oyvindharboe@gmail.com >
2011-10-18 06:36:11 +00:00
Attila Kinali
2f6bdac60a
Add the SAM3N familly to the chip_details table
...
Change-Id: Ic122d324eacf6e667ed6008ebb84708be944222c
Signed-off-by: Attila Kinali <attila@kinali.ch >
Reviewed-on: http://openocd.zylin.com/29
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com >
Tested-by: Øyvind Harboe <oyvindharboe@gmail.com >
2011-10-17 17:40:25 +00:00
Øyvind Harboe
80c20a186b
target_request: add target_got_message() that can be used to improve DCC performance
...
API change to allow implementing a back-off algorithm for
polling hardware.
Change-Id: I6cbe8b4534c8dfeb8442305171ea96b5481c1f17
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
Reviewed-on: http://openocd.zylin.com/26
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com >
Tested-by: Øyvind Harboe <oyvindharboe@gmail.com >
2011-10-17 12:32:38 +00:00
Øyvind Harboe
ea295bd694
target: DCC / target message backoff algorithm
...
by immediately polling again when we have received a message from
the target instead of waiting 100ms, we can hope for much better
performance. More than 100x? :-)
Change-Id: Ieaf0c6c8b6e5addc482895670ffbf9a743e07a29
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
Reviewed-on: http://openocd.zylin.com/27
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com >
Tested-by: Øyvind Harboe <oyvindharboe@gmail.com >
2011-10-17 12:32:11 +00:00
Spencer Oliver
3828b5827d
arm-jtag-ew: whitespace cleanup
...
Change-Id: I8861e825f9c84525e0c09c3adaa3fe300640770d
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net >
Reviewed-on: http://openocd.zylin.com/21
Tested-by: Spencer Oliver <spen@spen-soft.co.uk >
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk >
2011-10-14 13:01:52 +00:00
Spencer Oliver
8c3c5e53e3
flash: fix lpc2000 driver typo
...
Change-Id: I3a759ed98a27fd186c12355b846d5e97dba86c5b
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk >
2011-10-14 14:18:56 +02:00
Spencer Oliver
8cd3832e2b
target: whitespace cleanup
...
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-13 20:18:43 +00:00
Michel Jaouen
5a7cff26a5
breakpoint : smp software breakpoint issue
...
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-13 18:54:04 +00:00
Michel Jaouen
3ab7855d1a
breakpoint : indentation
...
Change-Id: Icdb8f72dbb516cd0dfc612c3d61b6801f6382be6
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2011-10-11 22:04:24 +02:00
Spencer Oliver
cf692abe83
replace berlios url's with sourceforge url's
...
Change-Id: I1c9957bb64df87cee7c5e832f21453eb8934a5fb
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net >
2011-10-11 17:18:05 +01:00
Andreas Fritiofson
92b14f8ca9
stm32f1x: use async algorithm in flash programming routine
...
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-09 00:00:53 +02:00
Andreas Fritiofson
a147563ac1
stm32f1x: use register base instead of register offset
...
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-09 00:00:52 +02:00
Andreas Fritiofson
1163435e19
cortex_m3: use armv7m's async algorithm implementation
...
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com >
2011-10-09 00:00:52 +02:00
Andreas Fritiofson
9d4c466c21
armv7m: implement async algorithm functions
...
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-09 00:00:52 +02:00
Andreas Fritiofson
3f6ef7a40b
target: add async algorithm entries to the target type
...
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-09 00:00:52 +02:00
Simon Barner
e56e5a3929
arm-jtag-ew: Send GDB keep_alive() messages when logging USB communication
...
- Ticket: #35
2011-10-08 23:10:20 +02:00
Simon Barner
830e76fecd
arm-jtag-ew: Formatting
2011-10-08 23:10:11 +02:00
Simon Barner
028d9aa9ed
arm-jtag-ew: In armjtagew_init(), set initial JTAG speed to 32 kHz (before TAP initialization).
...
This prevents rare communication errors during startup.
2011-10-08 23:09:42 +02:00
Simon Barner
b1c74747b6
arm-jtag-ew: Emit a warning if interface firmware version != 1.6
2011-10-08 23:09:30 +02:00
Simon Barner
e4590dad08
arm-jtag-ew: Declare interface as `jtag_only'
2011-10-08 23:09:21 +02:00
Simon Barner
07bf5f443a
arm-jtag-ew: Provide armjtagew_speed_div() in order to fix interactive use of `adapter_khz'
2011-10-08 23:09:05 +02:00
Simon Barner
8b61ed2e95
arm-jtag-ew: Fix setting interface speed (2/2)
...
Interface expects speed in Hz, not kHz
- Ticket #34
2011-10-08 23:08:46 +02:00
Simon Barner
3977c5169b
arm-jtag-ew: Fix setting interface speed (1/2)
...
CMD_SET_TCK_FREQUENCY message length is 5, not 4
- Ticket: #34
2011-10-08 23:08:15 +02:00
Clément Burin des Roziers
da8ce5f2e1
STM32L: Added flash driver and target
...
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-03 18:42:39 +02:00
Michel Jaouen
00ded4eb01
armv7a ,cortex a : add L1, L2 cache support, va to pa support
2011-09-30 09:45:26 +02:00
Steve Bennett
ef885d3b2a
jim-nvp is moving from jimtcl to openocd
...
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-30 09:38:22 +02:00
Mathias K
daa41473ab
add target events, run algorithm and default r/w buffer api
...
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-23 15:32:49 +02:00
Michel Jaouen
508bc7ca36
kinetis : fix deadlock on device having hasidcode false.
2011-09-23 15:31:39 +02:00
Mathias K
bfe634aa91
kinetis cpu flash driver
...
Initial release of the freescale kinetis cpu flash driver.
2011-09-17 14:20:37 +02:00
Mathias K
5c91551ea7
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.
2011-09-16 09:51:35 +02:00
Luca Bruno
4017af8492
Fixes and spellchecks for various Buspirate output messages
...
Signed-off-by: Luca Bruno <lucab@debian.org >
2011-09-11 00:07:54 +02:00
Richard Uhler
1411ad11c1
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.
2011-09-02 16:50:01 +02:00
Martin Schmölzer
48e8d2d21c
ULINK driver: Remove typedefs in ulink.c
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-09-01 07:02:38 +02:00
Martin Schmölzer
70d9d808e5
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 >
2011-09-01 07:02:38 +02:00
Martin Schmölzer
ea7c87e5e7
ULINK driver: Remove typedefs in OpenULINK firmware USB descriptor structures
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-09-01 07:02:38 +02:00
Rodrigo L. Rosa
355f183adb
usleep to jtag_sleep
...
this will help avoid platform specific timing issues
2011-08-31 15:46:05 -07:00
Rodrigo L. Rosa
c4a1728a2d
static for some functions
...
made two functions into static, since they are not required by anything external
2011-08-31 15:45:55 -07:00
Rodrigo L. Rosa
fb164bca55
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
2011-08-31 15:45:45 -07:00
Øyvind Harboe
fbbce95140
Merge branch 'dsp5680xx_cherry' of git://repo.or.cz/openocd/dsp568013 into fix
2011-08-31 16:27:09 +02:00
Martin Schmoelzer
353362651f
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 >
2011-08-31 16:25:42 +02:00
Martin Schmoelzer
1d135dddf2
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 >
2011-08-31 16:25:42 +02:00
Martin Schmoelzer
c331c9382f
ULINK driver: Implement variable TCK frequency in OpenOCD driver
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-08-31 16:25:42 +02:00
Martin Schmölzer
6446dbaacb
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 >
2011-08-31 16:25:41 +02:00
Martin Schmoelzer
c881fb8532
ULINK driver: Fix whitespace in OpenULINK firmware usb.c module (trivial)
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-08-31 16:25:41 +02:00
Martin Schmoelzer
d1bd5569b3
ULINK driver: Implement JTAG_PATHMOVE command
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-08-31 16:25:41 +02:00
Martin Schmölzer
118a9a9ca0
ULINK driver: Implement JTAG_STABLECLOCKS command
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-08-31 16:25:41 +02:00
Martin Schmölzer
b6e4d26695
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 >
2011-08-31 16:25:41 +02:00
Martin Schmölzer
d01cbd7143
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 >
2011-08-31 16:25:41 +02:00
Martin Schmölzer
b6f8b2ab66
ULINK driver: Properly propagate return values in ulink_execute_queue()
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-08-31 16:25:41 +02:00
Martin Schmölzer
3633e8d7b8
ULINK driver: Update some comments, fix some coding mistakes
...
Signed-off-by: Martin Schmölzer <martin.schmoelzer@student.tuwien.ac.at >
2011-08-31 16:25:41 +02:00