#132 why can't i get flash id

closed
None
5
2011-07-08
2006-10-29
xll
No

my target is a S3C4510B based router, the flash is
SST39VF800A.
i modified the source,add the routine for SST flash
chip and some other.

/*******************jedec.c**********************/

switch( i ){
case _SST: /* Query SST flash,
x16 mode */
bus_write( bus, 0x0000,
0xF0F0 ); /* Software ID Entry Sequence */
bus_write( bus, 0x5555,
0xAAAA );
bus_write( bus, 0x2AAA,
0x5555 );
bus_write( bus, 0x5555,
0x9090 );
mid = bus_read( bus, 0x0000 )
& 0xFFFF;
did = bus_read( bus, 0x0001 )
& 0xFFFF;
bus_write( bus, 0x0000,
0xF0F0 );
break;
case _AMD: /* Query AMD flash, x8
mode. */
bus_write( bus, 0x0, 0xf0 );
bus_write( bus, 0xAAA, 0xAA );
bus_write( bus, 0x555, 0x55 );
bus_write( bus, 0xAAA, 0x90 );
mid = bus_read( bus, 0x0);
did = bus_read( bus, 0x2);
bus_write( bus, 0x0, 0xf0 );
break;
case _INTEL: /* Query INTEL flash,
x8 mode. */
bus_write( bus, 0x0, 0xf0 );
bus_write( bus, 0xAAA, 0xAA );
bus_write( bus, 0x555, 0x55 );
bus_write( bus, 0xAAA, 0x90 );
mid = bus_read( bus, 0x0);
did = bus_read( bus, 0x2);
bus_write( bus, 0x0, 0xf0 );
break;
}
/*********************************************/

but i get 0x0 when run cmd "detectflash" and peek+any
ADDR, seems can't get the databus inputs.
PS: i can get the cpu's idcode
like this:
jtag> detect
IR length: 4
Chain length: 1
Device Id: 00011111000011110000111100001111
Manufacturer: Samsung
Part: S3C4510B
Revision: 01
Filename: /usr/local/share/jtag/samsung/s3c4510b/s3c451
0b
jtag> print
No. Manufacturer Part Stepping Instruction Register
-------------------------------------------------------
--------------------------------------
0 Samsung S3C4510B 01 BYPASS BR

Active bus:
*0: Samsung S3C4510B compatible bus driver via BSR
(JTAG part No. 0)
start: 0x00000000, length: 0x100000000, data width: 16
bit

Discussion

  • xll

    xll - 2006-10-29
    • summary: why i can't get flash id --> why can't i get flash id
     
  • xll

    xll - 2006-10-29
    • assigned_to: nobody --> telka
     
  • Marcel Telka

    Marcel Telka - 2011-07-08

    The openwince project is no longer active.

    If this report is related to JTAG Tools, please try UrJTAG at http://urjtag.sourceforge.net/

     
  • Marcel Telka

    Marcel Telka - 2011-07-08
    • status: open --> closed
     

Log in to post a comment.