oharboe [Mon, 27 Jul 2009 14:46:49 +0000 (14:46 +0000)]
add "dummy" interface trick to the BUGS reporting suggestions
git-svn-id: svn://svn.berlios.de/openocd/trunk@2569
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Sun, 26 Jul 2009 20:00:39 +0000 (20:00 +0000)]
David Brownell <david-b@pacbell.net> More testcase work:
A5.3.11 Data processing (shifted register)
The usual kinds of problems; the most noteworthy were that
the "S"et flags bit was mis-handled in these instructions.
---
This is the last patch from a quickie set of tests covering all
encodings of the instructions with 32-bit opcodes. There may
be some corner cases left, plus the instructions that aren't
yet handled, but the Thumb2 disassembler is no longer just
"lightly" tested with GCC output ... the new code paths have
mostly been verified.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2568
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Sun, 26 Jul 2009 19:59:33 +0000 (19:59 +0000)]
More instruction decoding fixes:
A5.3.5 Load/store multiple
A5.3.7 Load word
There was a longstanding bug in Thumb-1 LDM; the rest of the LDM/STM
fixes are just using width specs to match UAL syntax, except for two
opcode name typos. Load word had two bitmask goofs.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2567
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Sun, 26 Jul 2009 19:58:25 +0000 (19:58 +0000)]
David Brownell <david-b@pacbell.net> More fixes from test cases:
A5.3.8 Load halfword, unallocated memory hints
It's mostly the usual sort of bitmasking goofage and getting the
width specs right. In one case an older x86 GCC generated bad code
unless I structred a conditional differently (sigh).
git-svn-id: svn://svn.berlios.de/openocd/trunk@2566
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Sun, 26 Jul 2009 19:56:58 +0000 (19:56 +0000)]
David Brownell <david-b@pacbell.net> More instruction decoding fixes:
A5.3.5 Load/store multiple
A5.3.7 Load word
There was a longstanding bug in Thumb-1 LDM; the rest of the LDM/STM
fixes are just using width specs to match UAL syntax, except for two
opcode name typos. Load word had two bitmask goofs.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2565
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Fri, 24 Jul 2009 16:49:44 +0000 (16:49 +0000)]
David Brownell <david-b@pacbell.net> More instruction decoding fixes based on test cases, covering
ARMv7-M arch manual:
A5.3.1 Data processing (modified immediate)
A5.3.3 Data processing (plain binary immediate)
A5.3.4 Branches and miscellaneous control
and other (immediate) encodings referenced there. Several of
these just tweak the new syntax ("Unified" ARM/Thumb: UAL) but
there were a few bugs too.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2564
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Fri, 24 Jul 2009 16:48:12 +0000 (16:48 +0000)]
David Brownell <david-b@pacbell.net> Bugfix some instruction decoding ... I've crafted asm files
with testcases covering several new encodings in these sections
of the ARMv7-M arch manual:
A5.3.12 Data processing (register)
A5.3.13 Miscellaneous operations
A5.3.14 Multiply, and multiply accumulate
A5.3.15 Long multiply, long multiply accumulate, and divide
The issues were mostly in '12 and '13; some new related 16-bit
opcodes had issues too.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2563
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Fri, 24 Jul 2009 05:42:45 +0000 (05:42 +0000)]
Andreas Fritiofson <andreas.fritiofson@gmail.com> I noticed there are a few checks for (rt == 0xf) even though that case
is handled with an early return at the top of the function.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2562
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Thu, 23 Jul 2009 15:35:16 +0000 (15:35 +0000)]
David Brownell <david-b@pacbell.net> thumb2 disassembly for Load halfword
git-svn-id: svn://svn.berlios.de/openocd/trunk@2561
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Thu, 23 Jul 2009 15:34:03 +0000 (15:34 +0000)]
David Brownell <david-b@pacbell.net> thumb2 disassembly for Load byte, memory hints
git-svn-id: svn://svn.berlios.de/openocd/trunk@2560
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Thu, 23 Jul 2009 07:04:21 +0000 (07:04 +0000)]
Ferdinand Postema <ferdinand@postema.eu> fix cygwin warnings
git-svn-id: svn://svn.berlios.de/openocd/trunk@2559
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Thu, 23 Jul 2009 07:02:43 +0000 (07:02 +0000)]
David Brownell <david-b@pacbell.net> fix warnings
git-svn-id: svn://svn.berlios.de/openocd/trunk@2558
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 22 Jul 2009 19:35:23 +0000 (19:35 +0000)]
Jonathan Cameron <jic23@cam.ac.uk> fix regression from 1836 when the reset_config command was removed from pxa270.cfg
git-svn-id: svn://svn.berlios.de/openocd/trunk@2557
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 22 Jul 2009 14:25:56 +0000 (14:25 +0000)]
Stefano Voulaz <s.voulaz@projecktstudio.com> first cut samsung_s3c2450
git-svn-id: svn://svn.berlios.de/openocd/trunk@2556
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
ntfreak [Tue, 21 Jul 2009 20:19:02 +0000 (20:19 +0000)]
David Brownell <david-b@pacbell.net>:
Dump SP on poll, and show whether it's MSP or PSP.
Thread mode can use either stack pointer, so this is
part of the state that's not yet displayed.
Shrink some lines.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2555
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
ntfreak [Tue, 21 Jul 2009 20:15:11 +0000 (20:15 +0000)]
David Brownell <david-b@pacbell.net>:
Clean up treatment of registers in ARMv7-M and Cortex-M3.
- At the arch level:
* Just list registers and names; don't impose core-specific
policy about how they are accessed.
* Each register has a symbol.
* Remove the register mode field (irrelevant to debugger)
- At the core/implementation level:
* Just map the registers to their relevant access methods;
don't require the arch level to say how that should work
(cores other than Cortex-M3 could do it differently).
* Don't use undefined bits from register 20.
* Use register IDs that are part of the ARMv7-M interface.
In short, there's now a real distinction between the arch
and core layers.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2554
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
ntfreak [Tue, 21 Jul 2009 20:05:05 +0000 (20:05 +0000)]
David Brownell <david-b@pacbell.net>:
Minor updates to the Thumb2 disassembly:
- Bugfixes:
* Distinguish branch from misc via "!=" not "=="
* MRS register shift is 8 bits (vs MSR being 16)
- Format tweaks:
* CPS needed tab (not space)
* add commma before some shifts
* add space after comma in LDM/STM
* use ".W" width spec on various instructions
git-svn-id: svn://svn.berlios.de/openocd/trunk@2553
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
ntfreak [Tue, 21 Jul 2009 20:03:17 +0000 (20:03 +0000)]
David Brownell <david-b@pacbell.net>:
Revert parts of the previous ARMv7-M register patch.
It turns out that part of the issue is a documentation
problem for the Cortex-M3 r1 parts. So for the rest,
simpler fixes are possible (in followup patch).
git-svn-id: svn://svn.berlios.de/openocd/trunk@2552
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
ntfreak [Mon, 20 Jul 2009 07:03:11 +0000 (07:03 +0000)]
- fix issue with reading device id, bug appeared when flash_address code was added
- fix issue when multiple flash chips are connected, eg. x16 x 2 on 32bit mcu bus
git-svn-id: svn://svn.berlios.de/openocd/trunk@2551
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Sun, 19 Jul 2009 19:31:54 +0000 (19:31 +0000)]
aduc flash problems have been resolved
git-svn-id: svn://svn.berlios.de/openocd/trunk@2550
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Fri, 17 Jul 2009 19:54:25 +0000 (19:54 +0000)]
Andreas Fritiofson <andreas.fritiofson@gmail.com> UTF8 fixes
git-svn-id: svn://svn.berlios.de/openocd/trunk@2549
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Thu, 16 Jul 2009 10:44:42 +0000 (10:44 +0000)]
added item to come up with slick new 32 bit jtag_add_xxx() API
git-svn-id: svn://svn.berlios.de/openocd/trunk@2548
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Thu, 16 Jul 2009 10:43:15 +0000 (10:43 +0000)]
microscopic whitespace cleanup
git-svn-id: svn://svn.berlios.de/openocd/trunk@2547
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Thu, 16 Jul 2009 10:30:50 +0000 (10:30 +0000)]
microscopic white space fixes
git-svn-id: svn://svn.berlios.de/openocd/trunk@2546
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
ntfreak [Thu, 16 Jul 2009 10:03:33 +0000 (10:03 +0000)]
- disable using parport ppdev under win32 hosts
git-svn-id: svn://svn.berlios.de/openocd/trunk@2545
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Thu, 16 Jul 2009 00:08:36 +0000 (00:08 +0000)]
Magnus Lundin <lundin@mlu.mine.nu>, Oyvind Harboe <oyvind.harboe@zylin.com>, David Brownell <david-b@pacbell.net>:
Move the dap command handler implementations to arm_adi_v5.c,
leaving just thin wrappers in armv7m.c. There should be no
change in functionality here. (From Magnus.)
Minor style cleanup: whitespace, line length, etc. Update spec
references to use docs which are currently available. (From Dave.)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2544
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Thu, 16 Jul 2009 00:08:21 +0000 (00:08 +0000)]
Magnus Lundin <lundin@mlu.mine.nu>, Oyvind Harboe <oyvind.harboe@zylin.com>, David Brownell <david-b@pacbell.net>:
Some cleanup of the ARMv7-M support:
- Reference the relevant ARMv7-M ARM doc (DDI 0405C to non-Vendors), and
update the Cortex-M3 doc refs (DDI 0337C is no longer available).
- Those registers aren't actually general, and some are incorrect (per all
public docs anyway). Update comments and code accordingly.
* What the Core Debug facility exposes is *implementation-specific*
not architectural. These values aren't fully portable. They match
Cortex-M3 ... so no current implementation will make trouble, but
the next v7m implementation might.
* Four of the registers are actually not exposed that way. Before
Cortex-M3 r2p0 they are read/written through MRS/MSR instructions.
In that newest silicon, they are four bytes in one register, not
four separate registers.
- Update the CM3 code to report when that one register is available,
and not try to access it when it isn't. Also declare the register
numbers that an eventual MRS/MSR solution will need to be using.
- Stop line wrapping the exception labels.
So for parts before r2p0 OpenOCD behavior is effectively unchanged, and
still buggy; but for those newer parts a few things might now be correct.
Most current Cortex-M3 parts use r1p1 (or earlier); this seems to include
most LM3S parts and all STM32 parts. Parts using r2p0 are available, and
include fourth generation LM3S parts ("Tempest") plus AT91SAM3 and LPC17xx
parts which are now sampling.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2543
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 15 Jul 2009 23:49:12 +0000 (23:49 +0000)]
David Brownell <david-b@pacbell.net>:
More 32-bit Thumb2 instruction decoding:
A5.3.7 Load word
git-svn-id: svn://svn.berlios.de/openocd/trunk@2542
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 15 Jul 2009 23:49:05 +0000 (23:49 +0000)]
David Brownell <david-b@pacbell.net>:
More 32-bit Thumb2 instruction decoding:
A5.3.12 Data processing (register)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2541
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 15 Jul 2009 23:49:00 +0000 (23:49 +0000)]
David Brownell <david-b@pacbell.net>:
More 32-bit instruction decoding:
A5.3.11 Data processing (shifted register)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2540
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 15 Jul 2009 23:48:54 +0000 (23:48 +0000)]
David Brownell <david-b@pacbell.net>:
More instructions decoded:
A5.3.5 Load/store multiple
The preferred PUSH/POP syntax is shown when appropriate.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2539
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 15 Jul 2009 23:48:43 +0000 (23:48 +0000)]
David Brownell <david-b@pacbell.net>:
More instructions decoded:
A5.3.14 Multiply, and multiply accumulate
A5.3.15 Long multiply, long multiply accumulate, divide
The EABI requires *adjacent* register pairs, but the long multiply
ops can use any pair of registers; interesting.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2538
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 15 Jul 2009 23:48:37 +0000 (23:48 +0000)]
David Brownell <david-b@pacbell.net>:
More Thumb2 32-bit opcode support:
A5.3.10 Store single data item
Byte, word, halfword. Offset, pre-index, post-index. And
a "make like you're unprivileged" option when using small
immediate offsets.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2537
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 15 Jul 2009 23:48:32 +0000 (23:48 +0000)]
David Brownell <david-b@pacbell.net>:
Print old-style Thumb NOP instructions as such. (GCC uses "mov r8, r8"
instead of the architected NOP which is new in Thumb2.)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2536
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 15 Jul 2009 23:48:27 +0000 (23:48 +0000)]
David Brownell <david-b@pacbell.net>:
Make disassembly of the Thumb load-literal instruction show the
address of the literal being loaded (so users can avoid doing
that math themselves). Add and use an Align(PC,4) utility.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2535
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 15 Jul 2009 23:48:21 +0000 (23:48 +0000)]
David Brownell <david-b@pacbell.net>:
Make the Thumb2 disassembler handle more 32-bit instructions:
A5.3.3 Data processing (plain binary immediate)
These use mostly twelve bit literals, but there are also bitfield
and saturated add primitives.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2534
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 15 Jul 2009 23:48:16 +0000 (23:48 +0000)]
David Brownell <david-b@pacbell.net>:
Make the Thumb2 disassembler handle more 32-bit instructions:
A5.3.1 Data processing (modified immediate)
My small sample shows GCC likes to use many of these instructions.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2533
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 15 Jul 2009 23:48:11 +0000 (23:48 +0000)]
David Brownell <david-b@pacbell.net>:
Make the Thumb2 disassembler handle a bunch of 32-bit instructions:
A5.3.4 Branches and miscellaneous control
Note that this shifts some responsabililty out of helper functions,
making the code and layout simpler for 32-bit decoders: they only
need to know how to format the instruction and its parameters.
Also, technical note: with this patch, Thumb1 decoders could now
call the Thumb2 decoder if they wanted to get nicer treatment of
the exiting 32-bit B/BLX instructions.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2532
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 15 Jul 2009 23:39:48 +0000 (23:39 +0000)]
David Brownell <david-b@pacbell.net>:
Change layout of Thumb disassembly to work better with Thumb2:
- Move opcode to the left, allowing space for four hex bytes:
* after address, two spaces not one tab (taking 6 spaces)
* after 2-byte opcode, four spaces before tab
- Also, after opcode mnemonic use a tab not a space, to make
operands line up
Sample output (after some patches decoding a few 32-bit instructions):
0x00003e5a 0xf4423200 ORR r2, r2, #131072 ; 0x20000
0x00003e5e 0x601a STR r2, [r3, #0x0]
0x00003e60 0x2800 CMP r0, #0x00
0x00003e62 0xd1f3 BNE 0x00003e4c
0x00003e64 0xf008fa38 BL 0x0000c2d8
The affected lines of code now wrap at sane margins too.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2531
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 15 Jul 2009 23:39:37 +0000 (23:39 +0000)]
David Brownell <david-b@pacbell.net>:
Initial support for disassembling Thumb2 code. This works only for
Cortex-M3 cores so far. Eventually other cores will also need Thumb2
support ... but they don't yet support any kind of disassembly.
- Update the 16-bit Thumb decoder:
* Understand CPS, REV*, SETEND, {U,S}XT{B,H} opcodes added
by ARMv6. (It already seems to treat CPY as MOV.)
* Understand CB, CBNZ, WFI, IT, and other opcodes added by
in Thumb2.
- A new Thumb2 instruction decode routine is provided.
* This has a different signature: pass the target, not the
instruction, so it can fetch a second halfword when needed.
The instruction size is likewise returned to the caller.
* 32-bit instructions are recognized but not yet decoded.
- Start using the current "UAL" syntax in some cases. "SWI" is
renamed as "SVC"; "LDMIA" as "LDM"; "STMIA" as "STM".
- Define a new "cortex_m3 disassemble addr count" command to give
access to this disassembly.
Sanity checked against "objdump -d" output; a bunch of the new
instructions checked out fine.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2530
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 15 Jul 2009 12:30:06 +0000 (12:30 +0000)]
print errno when parport fails to open.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2529
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 15 Jul 2009 06:43:28 +0000 (06:43 +0000)]
retire Eclipse settings, charset will be set elsewhere.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2528
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Tue, 14 Jul 2009 18:30:00 +0000 (18:30 +0000)]
Eclipse settings include charset.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2527
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Tue, 14 Jul 2009 18:24:59 +0000 (18:24 +0000)]
David Brownell <david-b@pacbell.net> mention udev, and correct D2XX speed mentions
git-svn-id: svn://svn.berlios.de/openocd/trunk@2526
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
ntfreak [Tue, 14 Jul 2009 11:57:59 +0000 (11:57 +0000)]
- fix small typo in documentation
git-svn-id: svn://svn.berlios.de/openocd/trunk@2525
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Tue, 14 Jul 2009 10:38:26 +0000 (10:38 +0000)]
1.54 snapshot
git-svn-id: svn://svn.berlios.de/openocd/trunk@2523
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Tue, 14 Jul 2009 09:02:00 +0000 (09:02 +0000)]
Archive released NEWS file: NEWS -> NEWS-0.2.0
Create new NEWS file from release script template.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2522
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Tue, 14 Jul 2009 08:54:36 +0000 (08:54 +0000)]
Bump minor version and add tag:
Bump minor package version number: 0.2.0 -> 0.3.0
Add '-in-development' version tag: 0.3.0 -> 0.3.0-in-development
git-svn-id: svn://svn.berlios.de/openocd/trunk@2521
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Tue, 14 Jul 2009 08:53:40 +0000 (08:53 +0000)]
Remove '-in-development' version tag: 0.2.0-in-development -> 0.2.0
git-svn-id: svn://svn.berlios.de/openocd/trunk@2517
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Tue, 14 Jul 2009 08:52:28 +0000 (08:52 +0000)]
Improve the release script before 0.2.0:
1) Only archive NEWS file on major and minor relesae, not bug-fixes.
2) Switch back to correct development branch during final release step.
3) Add do_svn_switch helper to ensure package variables are reloaded.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2516
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Tue, 14 Jul 2009 07:35:29 +0000 (07:35 +0000)]
Split Windows README instructions into new file, with a few fixes.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2515
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Tue, 14 Jul 2009 06:39:55 +0000 (06:39 +0000)]
Make the parport-ppdev option enabled by default. This may require
giving --disable-parport-ppdev to configure on some platform(s).
git-svn-id: svn://svn.berlios.de/openocd/trunk@2514
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
ntfreak [Mon, 13 Jul 2009 06:36:51 +0000 (06:36 +0000)]
Gary Carlson <gcarlson@carlson-minot.com>
Spencer Oliver <spen@spen-soft.co.uk>
- fix jlink win32/linux/darwin startup issues
- see https://lists.berlios.de/pipermail/openocd-development/2009-July/009438.html
git-svn-id: svn://svn.berlios.de/openocd/trunk@2513
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Sun, 12 Jul 2009 19:32:22 +0000 (19:32 +0000)]
Xiaofan Chen <xiaofanc@gmail.com> document my experiment
with MinGW cross build.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2512
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Sun, 12 Jul 2009 19:31:13 +0000 (19:31 +0000)]
Xiaofan Chen <xiaofanc@gmail.com> retire obsolete patch. OpenOCD only supports 0.14 and newer and the patch was for 0.14.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2511
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Sun, 12 Jul 2009 19:29:08 +0000 (19:29 +0000)]
Magnus Lundin Thc cortex_m3_poll function does not identify that a target is running unless we transition from RESET.
This patch correctly identifies a running target.
Patch made a tad more palatable by David Brownell <david-b@pacbell.net>
git-svn-id: svn://svn.berlios.de/openocd/trunk@2510
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Sun, 12 Jul 2009 14:11:43 +0000 (14:11 +0000)]
Peter Denison <openwrt@marshadder.org> workaround for broken USBprog w/short tms sequences
git-svn-id: svn://svn.berlios.de/openocd/trunk@2509
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Sun, 12 Jul 2009 14:08:16 +0000 (14:08 +0000)]
David Brownell <david-b@pacbell.net> Mention how parallel clock voting implementations of RTCK work,
and reference TI's free VHDL code.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2508
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
duane [Sat, 11 Jul 2009 02:01:22 +0000 (02:01 +0000)]
Simple warning fix
git-svn-id: svn://svn.berlios.de/openocd/trunk@2507
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Fri, 10 Jul 2009 08:47:10 +0000 (08:47 +0000)]
wrote up workaround for xscale/debug_handler.bin bug
git-svn-id: svn://svn.berlios.de/openocd/trunk@2506
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Fri, 10 Jul 2009 08:46:12 +0000 (08:46 +0000)]
noted XScale (or USBProg) problem
git-svn-id: svn://svn.berlios.de/openocd/trunk@2505
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Fri, 10 Jul 2009 07:21:12 +0000 (07:21 +0000)]
David Brownell <david-b@pacbell.net> split EK board support out
from the target CPU support .
git-svn-id: svn://svn.berlios.de/openocd/trunk@2504
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 8 Jul 2009 22:26:42 +0000 (22:26 +0000)]
Add style rule to avoid combining assignment and logical tests.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2503
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 8 Jul 2009 22:26:36 +0000 (22:26 +0000)]
Add section to provide some documentation for cross-compiling.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2502
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 8 Jul 2009 22:26:29 +0000 (22:26 +0000)]
Add microscopic style guide at the end of the PATCH primer.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2501
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 8 Jul 2009 22:26:20 +0000 (22:26 +0000)]
Add comments to top-level files to "excuse" their Doxygen markup.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2500
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 8 Jul 2009 18:29:03 +0000 (18:29 +0000)]
Fix SEGFAULTs and broken error handling for flash programming w/working area
git-svn-id: svn://svn.berlios.de/openocd/trunk@2499
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 8 Jul 2009 10:38:50 +0000 (10:38 +0000)]
fix formatting of xscale bug entry(learning every day)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2498
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 8 Jul 2009 10:25:39 +0000 (10:25 +0000)]
Xscale installation regression entered
git-svn-id: svn://svn.berlios.de/openocd/trunk@2497
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 8 Jul 2009 10:25:23 +0000 (10:25 +0000)]
typo in comment
git-svn-id: svn://svn.berlios.de/openocd/trunk@2496
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 8 Jul 2009 08:05:21 +0000 (08:05 +0000)]
some TODO notes on aduc702x which clearly needs more work & testing
git-svn-id: svn://svn.berlios.de/openocd/trunk@2495
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 8 Jul 2009 06:49:15 +0000 (06:49 +0000)]
i.MX27 reset problems fixed & update remaining reset problems notes
git-svn-id: svn://svn.berlios.de/openocd/trunk@2494
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 8 Jul 2009 06:32:27 +0000 (06:32 +0000)]
sharpen reset_config for imx27 - use both trst & srst. srst pulls trst.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2493
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Tue, 7 Jul 2009 16:50:28 +0000 (16:50 +0000)]
srst pulls trst according to Freescale docs for i.mx27
git-svn-id: svn://svn.berlios.de/openocd/trunk@2492
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Tue, 7 Jul 2009 11:39:04 +0000 (11:39 +0000)]
Zach Welch: move bugs into the right section
git-svn-id: svn://svn.berlios.de/openocd/trunk@2491
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Tue, 7 Jul 2009 11:32:58 +0000 (11:32 +0000)]
Use reference to mailing list for known arm926ejs bugs rather fill The List with lots of details
git-svn-id: svn://svn.berlios.de/openocd/trunk@2490
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Tue, 7 Jul 2009 11:29:34 +0000 (11:29 +0000)]
fixed a small typo in howto create doxygen docs
git-svn-id: svn://svn.berlios.de/openocd/trunk@2489
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Tue, 7 Jul 2009 10:47:23 +0000 (10:47 +0000)]
fix return value for "reset" and "runtest" command. Found by code inspection.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2488
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Tue, 7 Jul 2009 10:43:44 +0000 (10:43 +0000)]
delete long retired commented out code (daemon_startup)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2487
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Tue, 7 Jul 2009 10:33:20 +0000 (10:33 +0000)]
more arm926ejs bugs
git-svn-id: svn://svn.berlios.de/openocd/trunk@2486
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Tue, 7 Jul 2009 06:54:14 +0000 (06:54 +0000)]
added known arm926ejs regressions
git-svn-id: svn://svn.berlios.de/openocd/trunk@2485
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Mon, 6 Jul 2009 21:16:11 +0000 (21:16 +0000)]
David Brownell <david-b@pacbell.net> Update docs to say that "arm7_9 dbgrq enable" is the default
on ARM9 cores, and update the DaVinci config files so they
no longer explicitly specify it.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2484
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
ntfreak [Mon, 6 Jul 2009 15:41:55 +0000 (15:41 +0000)]
- change sleep to usleep - fixes issue under win32 build
git-svn-id: svn://svn.berlios.de/openocd/trunk@2483
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
ntfreak [Mon, 6 Jul 2009 15:19:10 +0000 (15:19 +0000)]
- fix build when using a cross compiler - do not try and run any host tools
- add missing types.h when platform does not contain elf.h
git-svn-id: svn://svn.berlios.de/openocd/trunk@2482
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Mon, 6 Jul 2009 15:04:20 +0000 (15:04 +0000)]
more debug output for translation of arm mode number to enum
git-svn-id: svn://svn.berlios.de/openocd/trunk@2481
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Mon, 6 Jul 2009 14:58:13 +0000 (14:58 +0000)]
a bit more debug output for translation of invalid mode numbers
git-svn-id: svn://svn.berlios.de/openocd/trunk@2480
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Mon, 6 Jul 2009 14:25:25 +0000 (14:25 +0000)]
Fix certain arm926ejs targets(e.g. i.MX27) which report an unknown MOE(method of entry) - interpret this as dbgrq. "reset run" + "halt" + "step" now works.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2479
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Mon, 6 Jul 2009 13:42:11 +0000 (13:42 +0000)]
Fix regression in "step" command introduced in 2190
git-svn-id: svn://svn.berlios.de/openocd/trunk@2478
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Mon, 6 Jul 2009 12:03:55 +0000 (12:03 +0000)]
revert svn 1679 - fixes cp15 read/write timeout. Single stepping still broken.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2477
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Mon, 6 Jul 2009 11:26:34 +0000 (11:26 +0000)]
Update Release Script documentation to reflect current implementation.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2476
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Mon, 6 Jul 2009 11:26:28 +0000 (11:26 +0000)]
The late birth of the NEWS file also caused me to revisit the release
process once again and reconsider it in some detail. In doing so,
some further revisions to the process were required:
1) The URL of the repository is embedded in the released code.
- The packages need to be created from the tagged branch.
- The URL then points to where to get the tagged code.
2) Improve the instructions for NEWS handling.
- NEWS file must be updated for each release; describe that process.
- The NEWS file should be archived an recreated for each release.
3) Add detail steps for the berliOS release process.
4) Minor cleanups to release process doxygen markup.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2475
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Mon, 6 Jul 2009 11:26:21 +0000 (11:26 +0000)]
Add NEWS file for the 0.2.0 release.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2474
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Mon, 6 Jul 2009 11:21:28 +0000 (11:21 +0000)]
Add script to automate most of the release process.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2473
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Mon, 6 Jul 2009 10:34:49 +0000 (10:34 +0000)]
Ferdinand Postema <ferdinand@postema.eu>:
Updates to private TAP state tables in amtjtagaccel interface driver.
The first change is the neccesary one to correct a long-standing bug that
caused the IDCODE to be shifted by one bit too many. This was caused by
an incorrect path from state RESET to state DRSHIFT.
The value of those 2 bytes were 0x8a and 0x04. This means that the
bitstream to do this transition is 0b 00100 01010 (send LSB first). This
will bring you from the reset state to the shift state; however, you
enter the shift-state twice, which explains why the ID-CODE that will be
read next will be shifted 1 bit. The fix changes these to 0x05 and 0x00.
This will send the bitstream 0b 00101 (send LSB first). This will bring
the TAP controller from the RESET state to the DRSHIFT state directly,
without entering the DRSHIFT state twice.
After checking the whole table, two other transitions were found that
could be optimized (5 bits in stead of 10 bits).
Summary off all changes:
From To Old values Old Bitstream New values New Bitstream Remarks
---- ------- ---------- ------------- ---------- ------------- -------
RESET DRSHIFT 0x8a 0x04
0b00100 01010 0x05 0x00
0b00101 1,2
IDLE DRSHIFT 0x85 0x08
0b01000 00101 0x04 0x00
0b00100 2
IDLE IRSHIFT 0x8b 0x08
0b01000 01011 0x06 0x00
0b00110 2
[1] Fixes the IDCODE bug
[2] Optimization
git-svn-id: svn://svn.berlios.de/openocd/trunk@2472
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Mon, 6 Jul 2009 10:34:33 +0000 (10:34 +0000)]
Gary Carlson <gcarlson@carlson-minot.com>:
Fix intermittent J-Link interface startup failures:
- Use usb_reset to ensure selected dongle is in known good state.
- Assert emulator reset durning status check to prevent supurious failures.
- Eliminate status check loop; not needed due to other fixes.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2471
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Mon, 6 Jul 2009 09:32:22 +0000 (09:32 +0000)]
10ms timeout check on cp15 read/write
git-svn-id: svn://svn.berlios.de/openocd/trunk@2470
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Mon, 6 Jul 2009 09:28:37 +0000 (09:28 +0000)]
simplify debug_reason check
git-svn-id: svn://svn.berlios.de/openocd/trunk@2469
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Mon, 6 Jul 2009 08:45:31 +0000 (08:45 +0000)]
Fix maintainer-clean target in doc directory.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2468
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Mon, 6 Jul 2009 08:05:58 +0000 (08:05 +0000)]
bitrot: fix numerous syntax errors
added correct jtag device id
git-svn-id: svn://svn.berlios.de/openocd/trunk@2467
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Mon, 6 Jul 2009 08:04:57 +0000 (08:04 +0000)]
added known problem w/line number's being off in syntax errors for target reset events
git-svn-id: svn://svn.berlios.de/openocd/trunk@2466
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
Linking to existing account procedure
If you already have an account and want to add another login method
you
MUST first sign in with your existing account and
then change URL to read
https://review.openocd.org/login/?link
to get to this page again but this time it'll work for linking. Thank you.
SSH host keys fingerprints
1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=.. |
|+o.. . |
|*.o . . |
|+B . . . |
|Bo. = o S |
|Oo.+ + = |
|oB=.* = . o |
| =+=.+ + E |
|. .=o . o |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)