From c882cb089477050eb46f5f9fba90ff52179acd71 Mon Sep 17 00:00:00 2001 From: mifi Date: Sun, 27 Jan 2008 14:05:59 +0000 Subject: - added autoprobe functionality - corrected blocksize handling from GDB "info mem" command (thanks to Øyvind and Spen for these patches) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.berlios.de/openocd/trunk@278 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/flash/lpc2000.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/flash/lpc2000.c') diff --git a/src/flash/lpc2000.c b/src/flash/lpc2000.c index 2252ca42..d887c805 100644 --- a/src/flash/lpc2000.c +++ b/src/flash/lpc2000.c @@ -72,6 +72,7 @@ flash_driver_t lpc2000_flash = .protect = lpc2000_protect, .write = lpc2000_write, .probe = lpc2000_probe, + .auto_probe = lpc2000_probe, .erase_check = lpc2000_erase_check, .protect_check = lpc2000_protect_check, .info = lpc2000_info @@ -185,7 +186,7 @@ int lpc2000_build_sector_list(struct flash_bank_s *bank) bank->num_sectors = num_sectors; bank->sectors = malloc(sizeof(flash_sector_t) * num_sectors); - + for (i = 0; i < num_sectors; i++) { if ((i >= 0) && (i < 8)) -- cgit v1.2.3