aboutsummaryrefslogtreecommitdiff
path: root/src/flash/flash.c
AgeCommit message (Collapse)AuthorFilesLines
2009-04-19Zach Welch <zw@superlucidity.net> fix signed/unsigned comparisonsoharboe1-6/+6
git-svn-id: svn://svn.berlios.de/openocd/trunk@1466 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-04-18The following patches was applied:mifi1-24/+22
- openocd-flash-static-keyword-v3.patch - openocd-lpc2000-fix-erase-obo.patch - openocd-jlink-fix-sign-ptr-warn.patch - openocd-wextra-etm.patch - openocd-wextra-jtag.patch - openocd-add-new-tap-symbols-v6.patch Many thanks to Zach Welch <zw(at)superlucidity.net> git-svn-id: svn://svn.berlios.de/openocd/trunk@1462 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-03-05Audrius Urmanavičius <didele.deze@gmail.com> cleanup flash filloharboe1-3/+3
git-svn-id: svn://svn.berlios.de/openocd/trunk@1399 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-02-19John Woods <johnrw@gmail.com> fix checks for addresses at upper end of the ↵oharboe1-3/+3
universe git-svn-id: svn://svn.berlios.de/openocd/trunk@1377 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-02-12- issue warning when flash image exceeds configured flash size.ntfreak1-0/+4
- see https://lists.berlios.de/pipermail/openocd-development/2009-February/004680.html git-svn-id: svn://svn.berlios.de/openocd/trunk@1371 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-01-02John McCarthy <jgmcc@magma.ca> pic32mx flash wipoharboe1-1/+6
git-svn-id: svn://svn.berlios.de/openocd/trunk@1296 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-12-13- remove target specific variant and use target->variant memberntfreak1-4/+0
- fix build warning in cortex_m3 - code cleanup - remove trailing lf and convert c++ comments git-svn-id: svn://svn.berlios.de/openocd/trunk@1238 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-12-11- typo with flash bank help commandntfreak1-1/+1
- typo with flash erase_sector in texi git-svn-id: svn://svn.berlios.de/openocd/trunk@1225 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-11-07ocd_flash_banks now returns empty list when no flash banks are configured ↵oharboe1-5/+0
instead of failing. Allows more orthogonal implementations of tcl code. git-svn-id: svn://svn.berlios.de/openocd/trunk@1147 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-11-07ocd_flash_banks now returns empty list when no flash banks are configured ↵oharboe1-2/+2
instead of failing. Allows more orthogonal implementations of tcl code. git-svn-id: svn://svn.berlios.de/openocd/trunk@1144 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-11-03Rick Altherr <kc8apf@kc8apf.net> - fix warningsoharboe1-1/+1
git-svn-id: svn://svn.berlios.de/openocd/trunk@1126 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-11-02Rick Altherr <kc8apf@kc8apf.net> - fix flash write_bank output.oharboe1-1/+1
git-svn-id: svn://svn.berlios.de/openocd/trunk@1120 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-10-16fix error handling in flash filloharboe1-11/+7
git-svn-id: svn://svn.berlios.de/openocd/trunk@1074 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-10-16removed autoerase from flash fillXoharboe1-23/+13
git-svn-id: svn://svn.berlios.de/openocd/trunk@1070 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-10-14Laurentiu Cocanu - more error handling fixesoharboe1-8/+31
git-svn-id: svn://svn.berlios.de/openocd/trunk@1059 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-09-27- convert spaces to tabs in at91sam7.[ch]ntfreak1-17/+15
- add missing svn props git-svn-id: svn://svn.berlios.de/openocd/trunk@1009 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-09-26Gheorghe Guran <roatlasro@yahoo.com> redone at91sam7 driver. Old driver ↵oharboe1-18/+21
source file renamed. The old driver is still invoked by default and the new driver is invoked by using at91sam7_new git-svn-id: svn://svn.berlios.de/openocd/trunk@1007 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-09-24- renamed x7926 driver to aduc702x to match other flash driversntfreak1-2/+2
- removed c99 types (mingw issues) from aduc driver and cleanup - updated docs for aduc702x flash driver git-svn-id: svn://svn.berlios.de/openocd/trunk@995 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-09-24 "marcel" <M.W.Wijlaars@tue.nl>, oharboe1-37/+39
I have the ADuC702x flashdriver working again (see attachment). It adds the option to erase and write the ADuC702x flash git-svn-id: svn://svn.berlios.de/openocd/trunk@992 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-09-20- added myself to copyright on files i remember adding large contributions ↵ntfreak1-1/+4
for over the years - cleaned up headers to match rest of code - added missing svn props for previously added files git-svn-id: svn://svn.berlios.de/openocd/trunk@987 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-08-24Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us> fix end of ↵oharboe1-1/+1
address space flash sector comparision git-svn-id: svn://svn.berlios.de/openocd/trunk@961 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-08-19fixed error handling in flash bank.oharboe1-5/+6
git-svn-id: svn://svn.berlios.de/openocd/trunk@933 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-08-17fixed not halted error messagesoharboe1-0/+2
git-svn-id: svn://svn.berlios.de/openocd/trunk@925 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-08-17Richard <news@muppet.plus.com> fixed bug in padding codeoharboe1-5/+4
git-svn-id: svn://svn.berlios.de/openocd/trunk@923 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-08-05Duane Ellis: fix warningsoharboe1-1/+1
git-svn-id: svn://svn.berlios.de/openocd/trunk@890 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-25added yours sincerely for files where I feel that I've made non-trivial ↵oharboe1-0/+3
contributions. git-svn-id: svn://svn.berlios.de/openocd/trunk@872 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-20openocd@duaneellis.com fix naming confusion. Use ocd_ prefix for ocd API ↵oharboe1-1/+1
consistently. git-svn-id: svn://svn.berlios.de/openocd/trunk@839 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-18- fix incorrectly registered function openocd_array2memntfreak1-4/+2
- removed unused variables - reformatted lpc288x.[ch] - fixed helper/Makefile.am dependencies - add correct svn props to added files git-svn-id: svn://svn.berlios.de/openocd/trunk@829 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-18Charles Hardin <ckhardin@gmail.com> move tcl stuff nearer to where it belongs.oharboe1-7/+3
git-svn-id: svn://svn.berlios.de/openocd/trunk@824 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-17Charles Hardin <ckhardin@gmail.com> move jim into helperoharboe1-2/+1
git-svn-id: svn://svn.berlios.de/openocd/trunk@822 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-17Charles Hardin <ckhardin@gmail.com> and Øyvind Harboeoharboe1-1/+1
This patch just uses the command.c interface to create tcl commands for the root level commands and avoids a bit of the "TCL" bleed into the rest of the openocd code. Multilevel commands also supported. git-svn-id: svn://svn.berlios.de/openocd/trunk@818 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-16flash_banks now follow OpenOCD scripting API rulesoharboe1-0/+5
git-svn-id: svn://svn.berlios.de/openocd/trunk@814 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-09"flash banks" is now implemented in Tcl on top of "flash_banks". ↵oharboe1-23/+0
openocd_throw prefix is no longer required when executing OpenOCD commands from tcl. git-svn-id: svn://svn.berlios.de/openocd/trunk@779 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-07-09added flash_banks low level command.oharboe1-0/+42
git-svn-id: svn://svn.berlios.de/openocd/trunk@776 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-05-27- moved flash erase_check target code to target.cntfreak1-206/+52
git-svn-id: svn://svn.berlios.de/openocd/trunk@694 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-05-27flash_write will attempt to pad image sectionsntfreak1-8/+28
git-svn-id: svn://svn.berlios.de/openocd/trunk@693 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-05-20Edgar Grimberg fixes some memory handling issues andoharboe1-0/+3
a problem with arm7_9_debug_entry not executing a code path upon crashes. git-svn-id: svn://svn.berlios.de/openocd/trunk@669 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-24Close dangling file handleoharboe1-1/+1
git-svn-id: svn://svn.berlios.de/openocd/trunk@616 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-23Pavel Chromy's on chip flash loaderoharboe1-0/+2
git-svn-id: svn://svn.berlios.de/openocd/trunk@612 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-20Karl RobinSod <karl.robinsod@gmail.com> added lpc288x support. Some work ↵oharboe1-0/+2
remaining, committing for test/collaboration purposes. git-svn-id: svn://svn.berlios.de/openocd/trunk@597 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-19- flash.c change stricmp to strcmpntfreak1-1/+1
git-svn-id: svn://svn.berlios.de/openocd/trunk@595 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-19retired auto_erase, added optional erase arg to flash write_image.oharboe1-25/+18
git-svn-id: svn://svn.berlios.de/openocd/trunk@593 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-18- Flash auto-erase is disabled by defaultdrath1-2/+3
git-svn-id: svn://svn.berlios.de/openocd/trunk@592 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-18Enabled auto erase, gdb memory map and gdb flash programming by default.oharboe1-1/+2
git-svn-id: svn://svn.berlios.de/openocd/trunk@591 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-08added a couple of LOG_ERROR() messages to improve logfile.oharboe1-0/+3
git-svn-id: svn://svn.berlios.de/openocd/trunk@548 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-04- reverted some of the changes that possibly broke arm926ejs. Waitingoharboe1-10/+8
for a bit more info before I can tell with confidence whether or not this would have any effect. - worked on error propagation and output for flash git-svn-id: svn://svn.berlios.de/openocd/trunk@539 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-03- Work on fixing erase check. Many implementations are plain broken.oharboe1-30/+234
Wrote a default flash erase check fn which uses CFI's target algorithm w/fallback to memory reads. - "flash info" no longer prints erase status as it is stale. - "flash erase_check" now prints erase status. erase check can take a *long* time. Work in progress - arm7/9 with seperate srst & trst now supports reset init/halt after a power outage. arm7/9 no longer makes any assumptions about state of target when reset is asserted. - fixes for srst & trst capable arm7/9 with reset init/halt - prepare_reset_halt retired. This code needs to be inside assert_reset anyway - haven't been able to get stm32 write algorithm to work. Fallback flash write does work. Haven't found a version of openocd trunk where this works. - added target_free_all_working_areas_restore() which can let be of restoring backups. This is needed when asserting reset as the target must be assumed to be an unknown state. Added some comments to working areas API - str9 reset script fixes - some guidelines - fixed dangling callbacks upon reset timeout git-svn-id: svn://svn.berlios.de/openocd/trunk@536 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-02fix flash info - now reports erased state properlyoharboe1-1/+53
git-svn-id: svn://svn.berlios.de/openocd/trunk@534 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-01- fixes for jtag_khz committed.oharboe1-0/+116
- wip, flash fillw/h/b. For testing purposes. git-svn-id: svn://svn.berlios.de/openocd/trunk@531 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-03-25- rename log functions to stop conflicts under win32 (wingdi)ntfreak1-15/+15
git-svn-id: svn://svn.berlios.de/openocd/trunk@523 b42882b7-edfa-0310-969c-e2dbd0fdcd60