From 610918ecaead6105bb505de4dc122998d77c020d Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Wed, 31 Jul 2002 14:23:49 +0000 Subject: [PATCH] Fixed Flash state (switch to read mode). git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@84 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/src/detect.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/jtag/src/detect.c b/jtag/src/detect.c index 8c591247..3f2f7108 100644 --- a/jtag/src/detect.c +++ b/jtag/src/detect.c @@ -537,10 +537,24 @@ printf( "%s\n", register_get_string( p->prev_bsr ) ); if (d == 0x55AA55AA) printf( " at %08X\n", x * 256 * 1024 ); } - + + access_bus( p, AB_SETUP, 0x00000000, 0x00500050 ); + access_bus( p, AB_WRITE, 0x00000000, 0x00500050 ); + access_bus( p, AB_HOLD, 0x00000000, 0x00500050 ); + + access_bus( p, AB_SETUP, 0x00000000, 0x00980098 ); + access_bus( p, AB_WRITE, 0x00000000, 0x00980098 ); + access_bus( p, AB_HOLD, 0x00000000, 0x00980098 ); + + erase( p, b * 256 * 1024 ); } } + + access_bus( p, AB_SETUP, 0, 0x00FF00FF ); + access_bus( p, AB_WRITE, 0, 0x00FF00FF ); + access_bus( p, AB_HOLD, 0, 0x00FF00FF ); + { unsigned int i; unsigned int j;