From 53d1f9b2ca5718e4996e9cf3406f857d0ed26df2 Mon Sep 17 00:00:00 2001 From: drath Date: Thu, 14 Jun 2007 09:47:00 +0000 Subject: - added manpage for OpenOCD (thanks to Uwe Hermann) - fixed bug in ARM926EJ-S cache handling that caused cache linefills to be disabled after first debug entry - added support for auto image type detection (thanks to Vincent Palatin) - further work on ETM trace decoding (tested with a ETB interface using an ETM in normal 16-bit port mode, still experimental) git-svn-id: svn://svn.berlios.de/openocd/trunk@169 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/flash/flash.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/flash/flash.c') diff --git a/src/flash/flash.c b/src/flash/flash.c index 58a467d2..fecb89b7 100644 --- a/src/flash/flash.c +++ b/src/flash/flash.c @@ -511,8 +511,6 @@ int handle_flash_write_command(struct command_context_s *cmd_ctx, char *cmd, cha duration_start_measure(&duration); - identify_image_type(&image.type, (argc == 4) ? args[3] : NULL); - image.base_address_set = 1; image.base_address = strtoul(args[1], NULL, 0); @@ -526,7 +524,7 @@ int handle_flash_write_command(struct command_context_s *cmd_ctx, char *cmd, cha return ERROR_OK; } - if (image_open(&image, args[1], FILEIO_READ) != ERROR_OK) + if (image_open(&image, args[1], (argc == 4) ? args[3] : NULL) != ERROR_OK) { command_print(cmd_ctx, "flash write error: %s", image.error_str); return ERROR_OK; -- cgit v1.2.3