summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* build: prepend --with-jim-ext=nvp to jimtcl configureSpencer Oliver2010-11-193-1/+30
| | | | | | | This allows us to add options to jimtcl configure. The default autoconf AC_CONFIG_SUBDIRS does not currently support this. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* build: add autobuild jimtcl to configure scriptsSpencer Oliver2010-11-185-2/+33
| | | | | | | | | | Rather than having to configure/build jimtcl openocd will do this as part of its own build. To use an external jimtcl lib specify disable-internal-jimtcl to the configure step. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* build: add common.mkSpencer Oliver2010-11-1813-43/+19
| | | | | | | Rather than specifying common makefile variables move them all to a common.mk. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* FLASH/NOR: Remove useless file tms470.hAntonio Borneo2010-11-173-40/+15
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file str9xpec.hAntonio Borneo2010-11-173-79/+50
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file str9x.hAntonio Borneo2010-11-173-62/+35
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file str7x.hAntonio Borneo2010-11-173-110/+83
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file stm32x.hAntonio Borneo2010-11-173-101/+74
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file stellaris.hAntonio Borneo2010-11-173-109/+85
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file pic32mx.hAntonio Borneo2010-11-173-96/+65
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file lpc288x.hAntonio Borneo2010-11-173-39/+13
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file lpc2000.hAntonio Borneo2010-11-173-73/+45
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file avrf.hAntonio Borneo2010-11-173-41/+16
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* flash: fix bug with multiple back-to-back flash chipsØyvind Harboe2010-11-171-3/+7
| | | | | | | | | | | flash programming via flash write_image or gdb load would produce a bogus error message that the flash chip was to small. The solution is to limit the current flash programming run to the current chip. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* FLASH/NOR: Remove useless file at91sam7.hAntonio Borneo2010-11-173-118/+91
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file at91sam3.hAntonio Borneo2010-11-173-25/+2
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* FLASH/NOR: Remove useless file spearsmi.hAntonio Borneo2010-11-173-32/+8
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* NOR/SPEARSMI: Add comments about SPIAntonio Borneo2010-11-171-4/+22
| | | | | | | | | SMI interface hides the real SPI bus between SPEAr and external flash. Added comments to highlight the SPI operation, to help a future rework in SPI generic and SPEAr specific drivers. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* TCL/SPEAr: Added Serial flash in board fileAntonio Borneo2010-11-161-0/+4
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* NOR/SPEAr: Add support for Serial NORAntonio Borneo2010-11-165-0/+774
| | | | | | | | Add support and documentation for STMicroelectronics SPEAr Serial Memory Interface (SMI). Code tested on SPEAr3xx only. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* httpd: retire this serverØyvind Harboe2010-11-1556-10051/+3
| | | | | | | | | | this never panned out and there are enough mistakes in the code that probably nobody used this. Use the tcl server and implement a standalone http app instead works fine. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* Add comments and tiny improvements to STM32 flash loader algorithmFreddie Chopin2010-11-152-34/+39
| | | | | | | | Add comments to assembly flash loader for STM32. Add tiny improvement in size of the algorithm (40 vs 48 bytes) and tiny speed improvement (~1.5%, as time is wasted on waiting for end of operation anyway). Signed-off-by: Freddie Chopin <freddie_chopin@op.pl>
* gdb: fix occasional crash when flash probe failedØyvind Harboe2010-11-151-3/+7
| | | | Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* gdb: improve error message when gdb connect failsØyvind Harboe2010-11-111-1/+1
| | | | | | | | | | | | | gdb connect can fail when the flash has not been probed. During gdb connect, the flash layout is reported, but this can not be automatically detected for a target that is powered up and OpenOCD supports connecting to gdb server even if the target is powered down. The solution is to turn of the gdb_memory_map feature. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* cortex_m3: report detected error condition in pollØyvind Harboe2010-11-091-6/+13
| | | | | | | | | | | | If the CPU crashed at some point, poll will discover this. Previously the poll fn would clear the error and print a warning, rather than propagating the error. The new behavior is to report the error back up, but still clear the error. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* target: document that target_poll() will report and clear sticky errorsØyvind Harboe2010-11-091-0/+12
| | | | Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* TCL scripts: replace "puts" with "echo"Antonio Borneo2010-11-0924-201/+201
| | | | Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* JIM: document "echo" commandAntonio Borneo2010-11-092-10/+16
| | | | | | | | | Document "-n" option in manual; Modify "echo" command definition as COMMAND_HANDLER to easily add help message Add help message aligned with manual. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* JIM: Add "-n" option to "echo"Antonio Borneo2010-11-091-1/+8
| | | | | | | | With the new JIMTCL, "puts" only writes to stdout. To write on telnet port too, "echo" must be used. This patch gives to "echo" similar commandline option of "puts". Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* stm32: return early upon block write failureØyvind Harboe2010-11-091-0/+3
| | | | | | only if we do not have enough ram do we continue. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* stm32: return error when failing to readØyvind Harboe2010-11-091-9/+25
| | | | | | | | | add missing error handling. Output warning when assuming maximum flash size in the family when failing to read. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* stm32: add error propagation on writesØyvind Harboe2010-11-091-42/+111
| | | | | | catch problems earlier. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* stm32: sharpen error handling for timeoutsØyvind Harboe2010-11-091-108/+69
| | | | | | delete lots of crud by handling this all in one spot. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* lpc3131: target definitionAndrew Leech2010-11-091-0/+76
|
* TCL scripts: add support for ST SPEAr310Antonio Borneo2010-11-067-0/+428
| | | | | | | | | | Initial support for ST SPEAr310 and for the evaluation board EVALSPEAr310 Rev. 2.0. Scripts are split in generic for SPEAr3xx family and specific for SPEAr310. This should easily allow adding new members of the family. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
* Add EfikaMX smarttop board supportMarek Vasut2010-11-051-0/+9
| | | | | | | This patch finally adds support for i.MX51 based Genesi USA EfikaMX smarttop board. Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
* CortexA8: Introduce Freescale i.MX51 variantMarek Vasut2010-11-051-0/+51
| | | | | | | | | | | This patch introduces support for Cortex A8 based Freescale i.MX51 CPU. This CPU has the Debug Access Port located at a different address (0x60008000) than TI OMAP3 series of CPUs. i.MX51 configuration file based on OMAP3 configuration file and an email from Alan Carvalho de Assis <acassis@gmail.com>. Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
* CortexA8: Implement debug base autodetectionMarek Vasut2010-11-051-7/+12
| | | | | | | Implement autodetection of debug base. Also, implement a function solving various hardware quirks (like iMX51 ROM Table location bug). Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
* ADIv5: Implement function to lookup CoreSight componentMarek Vasut2010-11-052-0/+45
| | | | | | | This patch implements "dap_lookup_cs_component()", which allows to lookup CS component by it's identification. Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
* ADIv5: Introduce function to detect ROM Table locationMarek Vasut2010-11-052-27/+56
| | | | | | | | | | | This patch adds function called "dap_detect_debug_base()", which should be called to get location of the ROM Table. By walking ROM Table, it's possible to discover the location of DAP. Sadly, some CPUs misreport this value, therefore I had to introduce an fixup table, which will be used in case such CPU is detected. Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
* arm964e: Add support for ARM946E target.ddraskovic2010-11-044-0/+769
| | | | | | | | | | | | | | | | | So far most of the people have been using existing ARM966E in the place of ARM946E, because they have practically the same scan chains. However, ARM946E has caches, which further complicates JATG handling via scan-chain. this was preventing single-stepping for ARM946E when SW breakpoints are used. This patch thus introduces : 1) Correct cache handling on memory write 2) Possibility to flush whole cache and turn it off during debug, or just to flush affected lines (faster and better) 3) Correct SW breakpoint handling and correct single-stepping 4) Corrects the bug on CP15 read and write, so CP15 values are now correctly R/W
* bootstrap: add quick start build instructionsØyvind Harboe2010-10-291-1/+13
| | | | | | | leave some bread-crumbs for users to figure out how to build OpenOCD Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* jimtcl: 0.63 releaseØyvind Harboe2010-10-292-0/+3
| | | | | | as a git module. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* jim tests: use installedØyvind Harboe2010-10-2914-14903/+79
| | | | Delete obsolete jim that comes with OpenOCD.
* src: add loader src descriptionSpencer Oliver2010-10-288-0/+17
| | | | | | - add comment where to find the various loaders src files. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* contrib: add ram loader src codeSpencer Oliver2010-10-289-0/+589
| | | | | | Add src code for ram loaders to contrib directory. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
* imx31pdk: use rclk w/1MHz fallbackØyvind Harboe2010-10-281-0/+17
| | | | | | | | measure_clk indicates ca. 3-4MHz, so 1MHz should be safe. Added self_test proc used to test that rclk worked. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* help: help now works on configuration commandsØyvind Harboe2010-10-271-3/+0
| | | | | | | | | help would not show help for commands when the command interpreter was in the wrong mode, which means that e.g. "help newtap" didn't work, it wouldn't show the "jtag newtap" help as it was a configuration command. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
* Make systesetreq typos read sysresetreq insteadPeter Stuge2010-10-252-2/+2
| | | | Signed-off-by: Peter Stuge <peter@stuge.se>
* Remove srst_pulls_trst from LPC1768 targetPeter Stuge2010-10-251-3/+0
| | | | | | | srst_pulls_trst may be true on some (broken) LPC1768 boards but is not true in general for the LPC1768. Signed-off-by: Peter Stuge <peter@stuge.se>