Fixed Flash state (switch to read mode).

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@84 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Marcel Telka 23 years ago
parent 55b58deae3
commit 610918ecae

@ -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;

Loading…
Cancel
Save