aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2010-01-07MIPS: whitespace cleanupSpencer Oliver5-219/+218
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2010-01-06MIPS: fastdata bulk write fallbackSpencer Oliver2-9/+7
If fastdata access fails, then fallback to default mips_m4k_write_memory Remove unnecessary fastdata loader verify check Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2010-01-05buildfix with -DNDEBUGDavid Brownell1-1/+4
Don't save that state unless its only user, an assertion, is compiled. Saving it broke a cygwin build. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-01-05don't require 'openocd.cfg' to startDavid Brownell1-2/+4
Starting the daemon with with just a bare "openocd" I saw: Can't find openocd.cfg That's not an error; don't treat it as if it were. There may be an error later -- like, "no interface set up" -- but let messages only report real errors, not fake ones.
2010-01-05ARM: add #defines for JTAG ack codesDavid Brownell2-6/+9
JTAG has only two possible JTAG ack codes for APACC and DPACC register reads/writes. Define them, and remove empty "else" clause in the code which now uses those codes. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-01-05ARM: add comments re DAP assumptionsDavid Brownell1-2/+14
I think some of these assumptions are not well-founded. Related, that swjdp_transaction_endcheck() is a bit iffy. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-01-05MIPS: pracc access tweaksSpencer Oliver1-15/+8
reorder the pracc access so we can save a few access cycles Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2010-01-05MIPS: optimize pracc accessSpencer Oliver4-88/+51
remove unnecessary nops when accessing ejtag pracc general fastdata patch cleanup Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2010-01-05parport: output port as hex rather than decSpencer Oliver1-1/+1
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2010-01-05MIPS: merge mips fast_data patch from David N. ClaffeyDavid Claffey7-7/+244
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2010-01-05gdb: fix regression in gdb_port commandØyvind Harboe1-2/+3
The gdb_port command can be invoked during normal execution to report the port used for gdb, whereas it was listed as CONFIG stage only, which caused an error when excuting it to return the reported error. Also in line with the grander goal of making more commands available during all "modes" (perhaps retiring config mode), there is no particular reason to limit gdb_port to the config stage. Regression was introduced in: b3bf1d12b2fdfba1c1cbee3e1afbfbb27cbd1a26 aka v0.4.0-rc1-32-gb3bf1d1 Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2010-01-04ARMv7-M: use AP_REG_* symbolDavid Brownell1-1/+6
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-01-03FT2232: fix doc typoDavid Brownell1-1/+1
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-01-03JTAG/drivers: ft2232 docsDavid Brownell1-7/+33
Add doxyegen description for this driver. Correct the helptext (configures *or* displays based on #params), and usage (use the same BNF as the User's Guide). Remove superfluous #include Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-01-03JTAG/Drivers: Amontec JTAG accelerator fixesDavid Brownell1-6/+19
Remove superfluous #include. Correct the helptext (configures *or* displays based on #params), and usage (use the same BNF as the User's Guide). Add doxygen -- file-level description and a @todo for doing RTCK correctly. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-01-03JTAG: Amontec JTAG accelerater "rtck" is backDavid Brownell1-1/+1
The command processing conversion a while back lost the "rtck" enable/disable command; restore it. NOTE that having such a command is wrong; there's a standard way to enable adaptive clocking ("speed 0"). Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-01-03JTAG/drivers: cleanup jtag_interface structsDavid Brownell8-80/+74
Get rid of excess indents. Ditto superfluous "&" before function pointers. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-01-03JTAG/drivers: amt_jtagaccel fixes + cleanupDavid Brownell1-14/+43
Build fixes: it failed abysmally with PPDEV enabled. Swapped a build-time error with a FIXME comment in the affected macros. Cleanup: remove "&" before function pointers, and excess indent, for the interface struct declaration. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-01-02ARM: ADIv5 JTAG symbol cleanupDavid Brownell2-35/+68
Rename DAP_IR_* as JTAG_DP_* since those symbols are specifically for JTAG-DP (or SWJ-DP in JTAG mode), and won't work with SWD. Define the JTAG ABORT and IDCODE instructions for completeness; add a comment about where to (someday) use ABORT. Fix messaging which assumes everything is an SWJ-DP; say "JTAG-DP" instead, it's at least more appropriate for all JTAG transports. Shrink the affected lines. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-01-02ARM: dap info fix + tweaksDavid Brownell1-8/+14
Fix: don't print the BASE address except if it's a MEM-AP; that's an unlikely error, but there's no point getting it wrong. Tweaks: comments, capitalization. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-01-02ARM: ADIv5 export cleanupDavid Brownell2-31/+35
Make some private functions "static". Remove their public declarations, and what is now an obviously unused function. Shrinks this object's size (about 5% on x86_64) while making the code's scope easier to understand. Shrink the affected lines. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-01-02ARM: ADIv5 symbol and comment cleanupDavid Brownell2-29/+94
Instead of magic numbers, use their AP_REG_* constants. Rename the ROM address symbol as BASE to match ARM's documentation. Comment various other symbols in the header; add some missing ones. Remove an unused struct. Add some doxygen for stuff including the DAP structure and initialization. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-01-02Cortex-M3: minor breakpoint cleanupDavid Brownell1-12/+25
Shrink some lines, add some comments, simplify some tests. During debug startup, log the core revision level too. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-01-02streamline and document helptext mode displaysDavid Brownell7-16/+29
Most commands are usable only at runtime; so don't bother saying that, it's noise. Moreover, tokens like EXEC are cryptic. Be more clear: highlight only the commands which may (also) be used during the config stage, thus matching the docs more closely. There are - Configuration commands (per documentation) - And also some commands that valid at *any* time. Update the docs to note that "help" now shows this mode info. This also highlighted a few mistakes in command configuration, mostly commands listed as "valid at any time" which shouldn't have been. This just fixes ones I noted when sanity testing. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-01-02Fix usage/help search for subcommands.Dean Glazeski1-7/+34
This makes it so that the usage/help command properly uses the whole command, including subcommand, in the search for help information. This previously caused erroneous output from the usage command handler. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-01-02Add the current command to the command informationDean Glazeski1-0/+1
I wanted to make it so I can be ignorant of a commands invocation string, so I tried to use CMD_CURRENT (aka cmd->current) which is supposed to house a pointer to the current command.  It turns out that this wasn't being set. This patch adds the current command structure to the command invocation structure before sending it along to the command handler. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-12-30ARM7_9: Fix segfaultsAntonio Borneo2-0/+11
Handlers for commands - arm7_9 semihosting <enable | disable> - $_TARGETNAME arp_reset assert 1 didn't check if target has already been examined, and could segfault when using the NULL pointer "arm7_9->eice_cache". Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-12-30whitespace cleanup, mostly for docsAntonio Borneo4-351/+351
Remove useless space/tab at end of lines. Remove spaces in indentation and replace with tab. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-12-30ARM9TDMI: Fix segfault.Antonio Borneo1-0/+6
The handler for "arm9tdmi vector_catch ..." did not check if target has already been examined. Without this fix it segfaults when using NULL pointer "arm7_9->eice_cache". Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-12-30zy1000: add zy1000_ prefix to uart commandØyvind Harboe1-1/+1
less polution of the general namespace(preventive action, no problems reported). Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-12-30zy1000: unlock flash upon startup for revcØyvind Harboe1-0/+14
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-12-30zy1000: reconfigure FPGA upon reset instead of just the CPUØyvind Harboe1-0/+8
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-12-30zy1000: firmware upgrade fixes for revcØyvind Harboe1-16/+45
Use ecos firmwareutil upgrade utilities Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-12-30zy1000: less warningsØyvind Harboe1-3/+2
use inline for static functions in header files to avoid warnings about fn not being used. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2009-12-28MinGW build fixesFreddie Chopin4-7/+7
Print "ssize_t" as "%ld" (+ cast to long) not as "%zu". Official MinGW (gcc 3.4.5) doesn't understand "z" flag. Signed-off-by: Freddie Chopin <freddie_chopin@op.pl> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-12-28stm32x commands get "usage"Freddie Chopin1-0/+5
Add .usage fields to stm32x command_registration, so that "help stm32x" shows required parameters. Signed-off-by: Freddie Chopin <freddie_chopin@op.pl> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-12-28Fix Luminary FT2232 layout docs/configsDavid Brownell1-0/+8
Most of this patch updates documentation and comments for various Luminary boards, supporting two bug fixes by helping to make sense of the current mess: - Recent rev C lm3s811 eval boards didn't work. They must use the ICDI layout, which sets up some signals that the older boards didn't need. This is actually safe and appropriate for *all* recent boards ... so just make "luminary.cfg" use the ICDI layout. - "luminary-lm3s811.cfg", was previously unusable! No VID/PID; and the wrong vendor string. Make it work, but reserve it for older boards where the ICDI layout is wrong. - Default the LM3748 eval board to "luminary.cfg", like the other boards. If someone uses an external JTAG adapter, all boards will use the same workaround (override that default). The difference between the two FT2232 layouts is that eventually the EVB layout will fail cleanly when asked to enable SWO trace, but the ICDI layout will as cleanly be able to enable it. Folk using "luminary.cfg" with Rev B boards won't see anything going wrong until SWO support is (someday) added. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-12-28NOR: last_addr also needs correction when checking alignmentPiotr Esden-Tempski1-0/+1
Otherwise the new alignment checking algorithm thinks that the address is not aligned, because it is way beyond the last sector. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-12-27NOR: make flash_write_unlock() pad to sector endDavid Brownell1-2/+42
Resolve a regression when using newish automagic "write_image" modes, by always padding to the end of affected sectors. Also document some issues associated with those automagic options, in the User's Guide and also some related code comments. We might need similar padding at the *beginning* of some sectors, but this is a minimalist fix for the problems which have currently been reported (plus doc updates). Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-12-26Driver for USB-JTAG, Altera USB-Blaster and compatiblesCatalin Patulea4-0/+602
The 10-pin JTAG layout used with these adapters is used by a variety of platforms including AVR. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-12-26ARM: add comment re register exportsDavid Brownell2-0/+2
Modern versions of GDB can understand VFP3 and iwMMXt hardware.
2009-12-26NOR: messaging fixDavid Brownell1-2/+2
Fix syntax error: default to "wrote N bytes"; writing a single byte is an unusual case, not the normal one.
2009-12-26NOR: Allocate the right amount of memoryDavid Brownell1-1/+1
Switch to calloc() to simplify review and initialization.
2009-12-26cygwin 1.7 build fixesDavid Brownell6-14/+16
It's less accepting of signed char ... insisting that e.g. tolower() not receive one as a parameter. It's probably good to phase out such usage, given the number of bugs that lurk in the vicinity (assumptions that char is unsigned), so fix these even though such usage is actually legal. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-12-26PARPORT code cleanup:Antonio Borneo1-6/+5
Align elements in array. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
2009-12-21Packaging fix, NEWS updateDavid Brownell1-1/+3
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-12-21Packaging fixDavid Brownell1-0/+1
Don't forget to list target/arm_opcodes.h Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-12-21help: list all commands that match stringOyvind Harboe1-21/+35
Restore behavior where help lists all commands that match string passed to help. Signed-off-by: Oyvind Harboe <oyvind.harboe@zylin.com>
2009-12-20Cortex-M3: cleanupDavid Brownell1-45/+111
Misc: - Introduce some "struct reg" temporaries, for clarity - Shorten lines - Add some missing whitespace - Clean up comments - Add notes about some fault handling issues - Most of these errata workarounds are for *OLD* chip revisions Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-12-20ARM11: recognize ARM11 MPCoreDavid Brownell1-5/+11
And add my copyright. MPCore is untested, but it's the only other ARM11 core to care about. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>