• AVR Freaks

Hot!SST26VF064B - Not reading Device ID

Author
Rituv
New Member
  • Total Posts : 9
  • Reward points : 0
  • Joined: 2019/06/11 22:13:39
  • Location: 0
  • Status: offline
2019/06/20 00:20:19 (permalink)
0

SST26VF064B - Not reading Device ID

Hi All,
 
I have interfaced Flash Memory SST26VF064B with LPC2138 through SPI1/SSP Lines [MOSI0.19,MISO0.18,SSEL0.20,SCK 0.17].
 
Memory is not reading Device ID. I have done code as follows:
void Read_ID(void)
{
unsigned int c;
IO0CLR = SS; // Select Slave
SPI_Send_Byte(READ_DATA);   // Read data=0.03 command for Memory
for(c=0;c<3;c++)
{
id_read[c]=SPI_ReceiveByte(); // it would read Three Bytes: 1.Manufacturer ID (BFH)
// 2. Device Type (26H) 3. Device ID (43H)
}
IO0SET = SS;
}
 
Please let me know if iam wrong somewhere.
 
Regards,
Rituv
#1

6 Replies Related Threads

    Rituv
    New Member
    • Total Posts : 9
    • Reward points : 0
    • Joined: 2019/06/11 22:13:39
    • Location: 0
    • Status: offline
    Re: SST26VF064B - Not reading Device ID 2019/06/20 00:28:12 (permalink)
    0
    Before Read data instruction to memory.
    Also i have given 0x9F instruction to read ID of Flash memory.
    #2
    Rituv
    New Member
    • Total Posts : 9
    • Reward points : 0
    • Joined: 2019/06/11 22:13:39
    • Location: 0
    • Status: offline
    Re: SST26VF064B - Not reading Device ID 2019/06/24 02:03:42 (permalink)
    0
    Hii All,

    After all global protection disable,Now I am receiving On reading of 0x9F that is FF 26 BF.
    It is not reading 1st byte.
    Can anybody give your suggestion to get Device ID?
    #3
    Rituv
    New Member
    • Total Posts : 9
    • Reward points : 0
    • Joined: 2019/06/11 22:13:39
    • Location: 0
    • Status: offline
    Re: SST26VF064B - Not reading Device ID 2019/06/27 03:18:26 (permalink)
    0
    Hii All,
     
    Now i have successfully received Device ID completely.
     
    Regards,
    Rituv
    #4
    Rituv
    New Member
    • Total Posts : 9
    • Reward points : 0
    • Joined: 2019/06/11 22:13:39
    • Location: 0
    • Status: offline
    Re: SST26VF064B - Not reading Device ID 2019/10/18 21:22:04 (permalink)
    0
    Hi all,
    I have send extra byte 0x0FF after Device ID reading command. then i can able to read actual device ID. otherwise it is answering incorrect device ID.
    I do not understand why we need to give extra bytes after each command to memory???.
     
    Anybody please explain.
    #5
    ric
    Super Member
    • Total Posts : 24600
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: SST26VF064B - Not reading Device ID 2019/10/18 21:45:03 (permalink)
    0
    Show the code for your SPI_ReceiveByte() function.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #6
    ixqprint
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2019/10/17 17:40:49
    • Location: 0
    • Status: offline
    Re: SST26VF064B - Not reading Device ID 2019/10/19 01:26:36 (permalink)
    0
    The same question
    #7
    Jump to:
    © 2019 APG vNext Commercial Version 4.5