Spencer Oliver
f0c0256b1f
armv4_5: add algorithms instruction breakpoint support
...
Update the arm_checksum_memory and arm_blank_check_memory
algorithms to use a breakpoint instruction on v5 arch.
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net >
2010-07-20 09:02:10 +01:00
Øyvind Harboe
1143bbc0c8
arm11 error propagation fixes
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-20 08:42:52 +02:00
Øyvind Harboe
e0525cd182
arm_jtag_scann error propagation fixes
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-20 08:24:53 +02:00
Øyvind Harboe
a9761c9093
arm_dpm: error propagation fixes
...
found by inspection
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-19 22:13:49 +02:00
Øyvind Harboe
441ea95f69
adi_jtag_ error propagation
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-19 22:13:49 +02:00
Øyvind Harboe
4333840ee3
arm: error propagation of arm_jtag_set_instr
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-19 22:13:49 +02:00
Øyvind Harboe
5164fe5563
arm_adi_v5: dap_run() error propagation
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-19 22:13:49 +02:00
Øyvind Harboe
b62c8d6009
arm_adi_v5: mem_ap_write error propagation
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-19 22:13:49 +02:00
Øyvind Harboe
a7315891ef
arm_adi_v5: error propagation of mem_ap_read_atomic_u32 failure
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-19 22:13:49 +02:00
Øyvind Harboe
7dcde11b45
mem_ap_read_u32 error propagation
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-19 22:13:49 +02:00
Øyvind Harboe
e7a1ec64bf
arm_adi_v5: add error propagation for dap_setup_accessport
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-19 22:13:49 +02:00
Øyvind Harboe
44ef0327dd
debug: debug entry error propagation
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-19 22:13:49 +02:00
Øyvind Harboe
6c573df11d
cortex a8: added timeout handling
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-19 22:13:49 +02:00
Øyvind Harboe
6a237c23c1
arm: add error propagation for enable/disable mmu caches
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-19 22:13:48 +02:00
Øyvind Harboe
70fee9207b
arm: add error propagation to generic get_ttb fn
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-19 22:13:48 +02:00
Øyvind Harboe
20c1d4cc9a
cortex a8: lots of error propagation fixes
...
found by code inspection
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-19 08:36:15 +02:00
Øyvind Harboe
221ce7c89b
cortex a8: mem_ap_read_buf_u32() error handling
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-19 08:36:15 +02:00
Øyvind Harboe
8249261b88
cortex a8: add missing error handling for cortex_a8_dap_write/read_coreregister_u32()
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-19 08:36:15 +02:00
Øyvind Harboe
a2d5b0ef77
cortex a8: add missing error handling from cortex_a8_exec_opcode()
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-19 08:36:15 +02:00
Øyvind Harboe
ad02493cf2
cortex a8: add missing error handling for mem_ap_atomic_write_u32()
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-19 08:36:14 +02:00
Øyvind Harboe
19fc52f008
cortex a8: add missing error handling for mem_ap_read_atomic_u32()
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-19 08:36:14 +02:00
Øyvind Harboe
b85dcae447
spelling fixes in comments
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-07-18 22:56:01 +02:00
David Brownell
a4dace3122
ARM ADI-V5: cleanup CID/PID addressing
...
Use addition for offsetting, not masking. Shorten some lines.
Make "component_start" print-only (unused otherwise; don't save).
Still doesn't resolve the issue where multiple components
are wrongly displaying as NVICs on some Cortex-M3 parts because
many PIDs appear to be zeroes ... maybe adapter related??
Signed-off-by: David Brownell <db@helium.(none)>
2010-07-16 19:22:15 -04:00
David Brownell
0672a6497e
ARM ADI-V5: PIDs and CIDs are 8 bits
...
Mask the upper bits after 32-bit reads.
Alsoo revert the ugly changes to use PRIx32; just cast to unsized
integers when printing (two chars not eight).
Signed-off-by: David Brownell <db@helium.(none)>
2010-07-13 19:34:04 -04:00
Spencer Oliver
e521f6415b
arm9: revert change arm9tdmi cmd group name to arm9
...
This reverts the incorrect change made to the arm9 cmd group in commit
d1eca9a74c .
The code now matches the docs and the release notes.
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net >
2010-07-12 19:48:45 +01:00
Øyvind Harboe
e5d1befe43
arm11: fix gaffe in no-ack transfers
...
The code did not transfer the last word in no-ack transfers.
The strange thing is that this did not lead to any
observable errors.
This gaffe was introduced in commit 1f5883ea56
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-06-23 11:10:30 +02:00
Antonio Borneo
6cb2d6dd7a
error number: review
...
Review allocation of error numbers in openocd
to avoid overlap.
Put brackets around negative numbers to avoid
issues during macro expansion.
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com >
2010-06-23 07:55:43 +02:00
Øyvind Harboe
d236a48e8f
cortex a8: only physical read/write's are available when target is running
...
Memory read/writes to virtual memory, requires that the CPU is
halted.
Use 'phys' option to write to memory while target is running.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-06-22 12:47:30 +02:00
Øyvind Harboe
33e7696cfa
target: $_TARGET mdw now has a phys option
...
just like the mdw command
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-06-22 12:43:30 +02:00
Øyvind Harboe
8b82171f75
target: mwX on target object now supporst phys argument
...
$_TARGETNAME mww phys 0x10 0xdeadbeef
=> write 0xdeadbeef to physical address 0x10
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-06-22 12:36:32 +02:00
Edgar Grimberg
bf8d954352
target: Fix shadow issues on Mac
...
wait is declared in /usr/include/sys/wait.h
Signed-off-by: Edgar Grimberg <edgar.grimberg@zylin.com >
2010-06-22 08:24:23 +02:00
Øyvind Harboe
b50bb632ad
cortex a8: print message that locking debug access succeeded on second try
...
when locking the debug access fails on the first try, it's a
bit noisy, so print out message that it succeeded on second try.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-06-22 08:22:01 +02:00
Øyvind Harboe
4d238c7f91
cortex a8: add error propagation for poll/resume
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-06-22 08:22:01 +02:00
Øyvind Harboe
59bf45be1f
cortex a8: add timeouts waiting for restart, prepare and halt
...
It would previously sit in an infinite loop rather
than reporting an error.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-06-22 08:22:01 +02:00
Øyvind Harboe
37cfbe4917
cortex a8: add error propagation for mem_ap_read/write_atomic_u32
...
Error propagation avoids e.g. infinite loops waiting
for target to halt, etc.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-06-22 08:22:00 +02:00
Øyvind Harboe
19925e4d7f
arm_adi_v5: error propagation fixes
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-06-22 08:22:00 +02:00
Antonio Borneo
ff1c09fbea
target/avrt: review unused symbols
...
Remove unused functions:
- mcu_write_dr_u16
- mcu_write_dr_u8
- mcu_write_ir_u16
- mcu_write_ir_u32
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com >
2010-06-21 22:14:18 +08:00
Antonio Borneo
decd417064
target/avr: review scope of symbols
...
Add "static" qualifier to private functions.
Move duplicated global declarations from "target/avrt.c"
and "nor/avrf.c" to "target/avrt.h".
Remove unused declarations form "nor/avrf.c".
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com >
2010-06-21 22:14:17 +08:00
Antonio Borneo
d26b5236ba
target/feroceon: review scope of symbols
...
Add "static" qualifier to private functions.
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com >
2010-06-21 22:14:15 +08:00
Antonio Borneo
3f59fcf77e
target/mips_m4k: review scope of symbols
...
Add "static" qualifier to private functions.
Remove private prototypes from include file.
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com >
2010-06-21 22:14:14 +08:00
Øyvind Harboe
dcba070958
jtag: do not use jtag_get_error()
...
normal code should not call jtag_get_error(), but rather check
the return code from jtag_execute_queue().
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-06-21 13:43:23 +02:00
Øyvind Harboe
7013b960fe
adi_v5_jtag: add missing error handling
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-06-21 09:03:31 +02:00
Øyvind Harboe
8d1dcb9bcd
cortex a8: add missing error handling
...
cortex examine was missing error handling.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-06-21 09:03:31 +02:00
Øyvind Harboe
2a25c968bf
cortex a8: fix segfault for unexamined targets
...
print error message instead of segfaulting for
unexamined targets.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-06-19 09:26:53 +02:00
Antonio Borneo
b8f8d756a2
target/dsp563xx: review unused symbols
...
Remove unused functions:
- dsp563xx_jtag_senddat
- dsp563xx_write_ir_u16
- dsp563xx_write_dr_u16
- dsp563xx_write_ir_u32
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com >
2010-06-18 10:03:40 +02:00
Antonio Borneo
2319caff7d
target/dsp563xx: review scope of symbols
...
Add "static" qualifier to private functions.
Remove private prototypes from include file.
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com >
2010-06-18 10:03:40 +02:00
Øyvind Harboe
4d0d649ef9
mips_ejtag: -Wshadow warning fixes
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-06-15 23:27:08 +02:00
Øyvind Harboe
26a77f71e1
mips32_pracc: -Wshadow warning fixes
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-06-15 23:26:16 +02:00
Øyvind Harboe
e85fe0a637
mips_m4k: -Wshadow warning fixes
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-06-15 23:25:32 +02:00
Øyvind Harboe
43a9282203
mips32: -Wshadow warning fixes
...
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
2010-06-15 23:24:47 +02:00