Martin Schmölzer
03e4ae8481
Add source code for new ULINK driver
2011-06-26 17:43:50 +02:00
Drasko DRASKOVIC
37aaa28292
Fix load_image for ELF with all p_paddr set to zero
...
So far image_load command tries to load ELF binaries to address
discovered by reading p_paddr member of a Program header of an ELF
segment.
However, ELF specifications says for p_paddr : ...Because System V
ignores physical addressing for application programs, this member has
unspecified contents for executable files and shared objects.
ARM ELF specifiaction goes even further, demanding that this member
be set to zero, using the p_vaddr as a segment load address.
To avoid the cases to wrong addr where p_paddr is zero,
we are now using p_vaddr to as a load destination in case that *all*
p_paddr == 0. Basically, this patch re-implements the approach present in
BDF's elf.c, which is used by GDB also (so that we can be consistent).
2011-06-24 11:00:35 +02:00
Spencer Oliver
e7c611deea
build: do not included generated files in distribution
...
We have to use this method as automake seems to ignore nodist_ on libs.
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-06-17 12:22:37 +01:00
Spencer Oliver
16cbe1216a
build: add missing files to make dist
...
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-06-17 12:21:01 +01:00
Spencer Oliver
3428035a7e
build: add missing files from dist release
...
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-06-17 09:31:13 +01:00
Tomek CEDRO
37d5ac6378
ADAPTER: Fixed transport selection mechanism to support transports other than jtag (if defined).
2011-06-16 19:49:54 +02:00
Tomek CEDRO
9f40d41f68
OPENOCD: Renamed ambiguous main2() into openocd_thread() to show possible solution for thread support in future.
2011-06-16 17:27:12 +02:00
Øyvind Harboe
c8b5719802
transport: move files over to transport folder
...
as we introduce swd and jtag as two transports, we want
to start up with a new transport folder to organize the
code a bit.
2011-06-13 15:51:04 +02:00
Rodrigo L. Rosa
47aa65b3e8
doxy more
2011-06-12 11:18:27 +02:00
Rodrigo L. Rosa
d343941386
doxy & cleanup
2011-06-12 11:18:27 +02:00
Rodrigo L. Rosa
cbe201fe6b
fix protection behavior
2011-06-12 11:18:27 +02:00
Rodrigo L. Rosa
7b0ead520d
cleanup trailing whitespaces
2011-06-12 11:18:27 +02:00
Rodrigo L. Rosa
f4b9a2fc8b
flash speed improved
2011-06-12 11:18:27 +02:00
Rodrigo L. Rosa
ca76e4a423
removed unnecessary actions/controls
2011-06-12 11:18:27 +02:00
Rodrigo L. Rosa
c4bcb0b95a
cleanup flash module command
2011-06-12 11:18:27 +02:00
Rodrigo L. Rosa
d539fc856f
fix read for verify_image
2011-06-12 11:18:27 +02:00
Rodrigo L. Rosa
f42353d821
fix read speed improved by queueing commands
2011-06-12 11:18:27 +02:00
Rodrigo L. Rosa
f4a3db0d4a
fix flash driver size, sector erase
2011-06-12 11:18:27 +02:00
Rodrigo L. Rosa
56d3927abf
Added minimodule (ftdi) interface
2011-06-12 11:18:27 +02:00
Øyvind Harboe
33f9bec9ec
Silence -O3 warning
2011-06-07 17:58:41 +02:00
Freddie Chopin
1cfb2287a6
Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - leftover changes
2011-06-07 17:53:33 +02:00
Stefan Mahr
5d9b7cdd2b
mips: add nor flash write from memory block
2011-06-05 22:45:21 +02:00
Rodrigo L. Rosa
c989de0cea
crc check on flashed data
2011-06-04 09:52:14 +02:00
Rodrigo L. Rosa
d09bef2622
code cleanup
2011-06-04 09:52:14 +02:00
Freddie Chopin
f499bab698
Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - dubious fixes
2011-06-04 09:46:48 +02:00
Freddie Chopin
f6315d5e5b
Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes
2011-06-04 09:35:13 +02:00
Stefan Mahr
796086cd49
mips: fixup fastdata
...
fixup fastdata
2011-06-01 07:23:42 +02:00
Stefan Mahr
524d79ebe7
mips: fix some more endian madness
2011-06-01 07:23:35 +02:00
Stefan Mahr
875298bc53
mips: fix swapping if running on big endian host
2011-05-29 23:21:23 +02:00
Damjan Marion
9b4628ddab
Fixed values for Samung NAND chips
2011-05-28 19:44:17 +02:00
Damjan Marion
db91a36fdd
Improve NAND flash detection
...
Detect based on both manufacturer id and chip id
if manufacturer id is defined in table
2011-05-28 14:30:58 +02:00
Damjan Marion
acdf14eb43
Reorganize NAND flash table
...
- added manufacturer field
- name moved to the end for better text alignment
2011-05-28 14:27:48 +02:00
Stefan Mahr
73988aea1f
mips: fix swapping if openocd is running on big endian host
2011-05-28 14:25:06 +02:00
Alan Bowman
212db44fcf
Report actual current thread
2011-05-25 22:05:26 +02:00
Alan Bowman
a57daf23db
Add eCos/Cortex RTOS support
2011-05-25 22:05:23 +02:00
Stefan Mahr
6d6837f988
add support for spansion flash on mindspeed c300 eval board
...
Signed-off-by: Stefan Mahr <stefan.mahr@sphairon.com>
2011-05-25 22:02:40 +02:00
Spencer Oliver
5d7d08a1f0
dsp5680xx: whitespace cleanup
...
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-05-23 10:23:34 +01:00
Spencer Oliver
d16b0ea6d4
Fix build issue under cygwin
...
cygwin does not define sleep, so use our internal win32 version.
caused by commit 9d4aec6bda
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-05-23 10:22:12 +01:00
Rodrigo L. Rosa
ef599aebfd
flashing speed improved using queued jtag. error propagation improved.
2011-05-19 07:27:02 +02:00
Jie Zhang
ee124401a2
Get register value if it's invalid in cache.
2011-05-18 18:52:20 +02:00
Alan Bowman
6d9f61fb65
Corrected test for invalid current_threadid
2011-05-18 18:51:10 +02:00
Rodrigo L. Rosa
129f099ef1
flash support (only full erase/write) for 568013 and 568037
2011-05-18 18:47:55 +02:00
Rodrigo L. Rosa
9d4aec6bda
partial support for 568013 and 568037, target integration.
2011-05-18 18:47:50 +02:00
Alan Bowman
6349a47ebc
Correct stacking direction and use of address offset
2011-05-14 16:59:29 +02:00
Jie Zhang
7d8053e93f
Remove useless MIPS code in avr32_ap7k.c.
2011-05-03 21:59:08 +02:00
Jonas Hörberg
e3f3f60a02
adapter speed: require init script setting and centralize activation from drivers to core.c
...
Signed-off-by: Jonas Hörberg <jhorberg@sauer-danfoss.com>
2011-05-01 00:38:04 +02:00
Øyvind Harboe
5c739b148e
ecos: add 64 bit types for sprintf/sscanf
2011-04-28 22:17:48 +02:00
Michel Jaouen
1e7e594452
gdb_server : 'R' command replied by OK
2011-04-28 12:22:39 +02:00
Michel Jaouen
5578935eff
cortex_a : smp support
...
Conflicts:
src/target/cortex_a.c
2011-04-28 12:22:29 +02:00
Michel Jaouen
b778b36f29
smp : infra for smp minimum support
2011-04-28 12:22:10 +02:00
Øyvind Harboe
36d60ee6c8
cfi: leave check on whether target is running to target_write_memory()
...
there was a check in clearing the status register that
called exit() if the target was running. target_write_memory()
has such a check and will report the error correctly.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-04-27 23:02:28 +02:00
SimonQian
5bd1f0bad4
add STM32F2 revY
2011-04-26 12:05:07 +02:00
SimonQian
2e88162b00
remove read of flash_size in STM32F2
2011-04-26 12:04:57 +02:00
Damjan Marion
5d987bca9c
buspirate: fix building on some OSes
2011-04-26 11:55:54 +02:00
Michel Jaouen
3c6af518b3
rtos : compilation error on amd64
2011-04-19 12:53:56 +02:00
Alexandre Pereira da Silva
32ede8fa21
Fix non cfi x16 nor flash connected to x8 bus. The ids in the table should be masked before comparison.
2011-04-19 12:53:05 +02:00
Alexandre Pereira da Silva
e105915a4a
Make the LPC32xx nand driver support up to 5 address cycles. This will only work in the SLC driver.
2011-04-19 12:51:49 +02:00
Alexandre Pereira da Silva
2ed19d3b9b
Make the LPC32xx slc nand driver the default
2011-04-19 12:51:36 +02:00
Øyvind Harboe
e984dc1f16
jtag: clarify jtag->init() and jtag->quit() definitions
...
only set jtag global pointer if jtag->init() succeeds. Less code,
more clear what the rules are.
Fix nit that error value from init() was not propagated unmodified.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-04-19 12:43:16 +02:00
Broadcom Corporation (Evan Hunter)
b69119668e
RTOS Thread awareness support wip
...
- works on Cortex-M3 with ThreadX and FreeRTOS
Compared to original patch a few nits were fixed:
- remove stricmp usage
- unsigned compare fix
- printf formatting fixes
- fixed a bug with overrunning a memory buffer allocated with malloc.
2011-04-15 08:24:18 +02:00
Spencer Oliver
f9feeacb7f
pic32: update pic32mx flash driver
...
Update devices as per the latest programming manual.
We now use the full DEVID to identify the target. Previously we used
a 8bit id but that has now been changed in the manual.
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-04-14 09:17:17 +01:00
Luca Ellero
ecd5e5de7f
Replace byte-access to memory with faster word-access
...
Freescale iMX53 doesn't seem to like unaligned accesses to his memory
mapped registers.
Anyway this patch makes dump_image/load_image 4X faster for every
access through APB.
Signed-off-by: Luca Ellero <lroluk@gmail.com>
2011-04-13 21:33:11 +02:00
Luca Ellero
81f238f522
Add opcodes for load/store registers words immediate post-indexed
...
Signed-off-by: Luca Ellero <lroluk@gmail.com>
2011-04-13 21:32:24 +02:00
Michel JAOUEN
08303f10aa
cortex_a :apb mem read/write working with mmu_on
...
Conflicts:
src/target/cortex_a.c
2011-04-13 10:57:02 +02:00
Michel JAOUEN
28ddd16ddc
cortex_a : multiple target on the same dap
2011-04-13 10:56:52 +02:00
Michel JAOUEN
a7844aa4e8
cortex_a : use dap ref from armv4_5common
2011-04-13 10:56:42 +02:00
Jean-Christophe PLAGNIOL-VILLARD
13cf987bb8
jlink: jlink_debug_buffer use inline function when _DEBUG_USB_COMMS_ not define
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
2011-04-09 10:12:08 +02:00
Ali Lown
c7a17b8466
Buffering for up to 64 bytes in USB Blaster.
...
Uses a global buffer.
Add self to acknowledgements.
2011-04-08 18:26:09 +02:00
Ali Lown
24943498e6
Add support for LED to USB Blaster code.
2011-04-08 18:26:09 +02:00
Michel JAOUEN
5e86c5173c
cortex_a : implement jtag console for cortex_a
2011-04-06 06:45:39 +02:00
Drasko DRASKOVIC
719f9ecde3
Added mips_ejtag_drscan_32_out() for optimization.
2011-04-05 08:21:29 +02:00
Drasko DRASKOVIC
bc9afcd4d1
Corrected waiting on PrAcc in wait_for_pracc_rw(). Added necessary check that PrAcc is "1" before FASTDATA access.
2011-04-05 08:21:25 +02:00
Drasko DRASKOVIC
b125689459
Added correct endianess treatment for big endian targets. Now it is possible to use mips_m4k_write_memory() and mips_m4k_read_memory() to correctly set-up SDRAM, as well as bulk data write, which already handled endianess well. Also added correct endianess manipulation in case of fallback from erroneus bulk write to simple write (to avoid byte swapping two times).
2011-04-05 08:21:17 +02:00
Øyvind Harboe
a1d9f16320
cortex_a: delete dbgbase hack vestiges
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-04-01 21:00:44 +02:00
Michel JAOUEN
930d70f1a3
cortex_a: fix gaffe in first implementation of -dbgbase
2011-04-01 18:59:02 +02:00
Øyvind Harboe
3b7c9585db
Merge remote branch 'origin/master' into HEAD
2011-04-01 13:02:24 +02:00
Øyvind Harboe
a0b83e82f7
mips: fix gaffe in previous commit
...
accidentally invoked return jtag_execute_queue() in the
middle of a fn. Hmm.... I would have expected gcc or
at least lint to catch this.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-04-01 12:32:41 +02:00
Øyvind Harboe
977df18f50
cortex_a: remove broken dbgbase patchup code
...
the patchup code would get false positives when checking
whether a dbgbase had to be corrected.
The solution is to have autodetect default, with manual override
in scripts.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-04-01 10:00:41 +02:00
Øyvind Harboe
378567da4e
mips: illustrates how to improve performance
...
Do not require unecessary roundtrips for clocking out
data.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-04-01 08:59:11 +02:00
Øyvind Harboe
2615bf4398
types: write memory now uses const
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-04-01 08:59:07 +02:00
Øyvind Harboe
d76fd2aac7
mips: delete kludgy code that modifies data sent to write_memory()
...
Could this cause confusion as data sent to write would be flipped
and then if the caller subsequently used the data, e.g. a
compare mismatch might happen?
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-03-31 23:46:56 +02:00
Øyvind Harboe
1b9e80f7e6
startup: fix bugs in cleanup upon errors during startup
...
Importantly adapter cleanup will now happen upon startup failure.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-03-31 23:46:56 +02:00
Øyvind Harboe
0c1ebf2673
mips: mips32_pracc_exec error propagation fixes
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-03-31 23:46:56 +02:00
Øyvind Harboe
83ab5ad240
mips: mips_ejtag_get_impcode error propagation added
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-03-31 23:46:56 +02:00
Øyvind Harboe
667c65552e
mips: fix mips_ejtag_set_instr error handling
...
this fn does not fail, it queues data.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-03-31 23:36:45 +02:00
Øyvind Harboe
e1f5055bb0
mips: fix error handling for jtag_execute_queue()
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-03-31 23:08:53 +02:00
Øyvind Harboe
f169f86bd1
xscale: fix gaffe in phys write
...
it would *read* instead of *write* to memory
when the MMU was disabled.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-03-31 18:46:14 +02:00
Øyvind Harboe
8d338f3296
cortex-a: use -dbgbase option
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-03-31 09:30:48 +02:00
Øyvind Harboe
b75bdb7b04
target: add -dbgbase option to target configuration
...
Really a Cortex-A specific option, but there is no
system in place to support target specific options
currently and there has been no need for such a system
until now.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-03-31 09:30:48 +02:00
Olivier Schonken
ac6f8f9616
at91sam3: Modified cidr comparisson to ignore version bits
...
production processor versions increment, thus the version
bits should be ignored for future proofing. e.g.
Engineering sample version == 0x00, production version 0x01
2011-03-30 16:01:00 +02:00
Alexandre Pereira da Silva
56f705525c
Clarify LPC32XX address cycles message
...
Hi,
This is a more descriptive message about LPC32XX error, when the nand
chip needs 5 address cycles.
Thanks.
2011-03-30 08:04:15 +02:00
Alexandre Pereira da Silva
54ec0c4a8a
Add Micron 2GiB nand
...
Hi,
This will add support for a new nand chip device.
Thanks.
2011-03-30 08:04:01 +02:00
Andrew Lyon
be14e8cbb0
bugfix for step <address> mips_m4k
...
The patch below fixes step <address> on mips_m4k.
Spencer Oliver <spen@spen-soft.co.uk>:
The current code is used on all other arch's - is
there a underlying issue with those aswell ?
2011-03-29 12:50:54 +02:00
Øyvind Harboe
68bd107c6d
command: fix leak when executing commands
...
found via valgrind, not observed/reported.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-03-27 23:51:30 +02:00
Øyvind Harboe
dec80e1cff
cortex_a: rename cortex_a8.c/h to cortex_a.c/h
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-03-22 11:29:10 +01:00
Øyvind Harboe
a843789ede
omap4430: tried to add in workaround for broken dbgbase query
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-03-22 09:21:16 +01:00
Øyvind Harboe
fc574c64bb
cortex a9: merge cortex a9 and a8 code
...
better to keep this in a single file.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-03-22 09:10:21 +01:00
Øyvind Harboe
ec2b8d71ac
zy1000: fix bug in ir scan handling
...
set cur_instr to BYPASS as optimisation code will
rely on checking the cached value.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-03-21 13:47:02 +01:00
Øyvind Harboe
a343570195
zy1000: removed JTAG master TCP/IP server
...
Move ZY1000 OpenOCD driver more in the direction of being
a client to simplify code.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-03-21 08:11:03 +01:00
Øyvind Harboe
17201b5847
dsp563xx_once: fix warning and potential bug
...
I don't think dsp563xx_once_read_register() would ever
be called with len==0, but it would have been broken in
that case.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2011-03-20 19:47:58 +01:00