Helpful ReplyHot!SST26VF032 reading problem

Page: < 12 Showing page 2 of 2
Author
mayk888
New Member
  • Total Posts : 23
  • Reward points : 0
  • Joined: 2017/01/30 07:43:39
  • Location: 0
  • Status: offline
Re: SST26VF032 reading problem 2017/02/02 03:28:12 (permalink)
0
Hello ainhi
 
i'm also new and im trying to make work a sst26VF016B but i cannot make it. Can you tell me which changes did you have to do on sst25VF032B to use the sst26_32B? I tryied the examples of harmony  gfx/external_resources and the examples/drivers/sqi/sqi_gpio and dma but nothig works.
 
thanks
#21
kseg
Starting Member
  • Total Posts : 64
  • Reward points : 0
  • Joined: 2016/05/26 07:30:47
  • Location: 0
  • Status: offline
Re: SST26VF032 reading problem 2017/02/02 08:36:46 (permalink)
5 (1)
ainhi
Thank you everyone for your help.
 
At the end I couldn't make the SST26VF032 Flash work, so I bought SST26VF032B (which is quite different) and I managed it to work with the code of the SST25VF032B one (changing some minimal aspects).
 
Now, everything works with SST26VF032B!!!!




If I don't remember wrong.
 
only few operations can be done for SST26VF032 in SPI mode,  have to transfer SST26VF032 to SQI mode first for most operations.
 
SST26VF032B, easier to manipulate.  Full operations can be done in SPI mode.
#22
ainhi
New Member
  • Total Posts : 20
  • Reward points : 0
  • Joined: 2016/11/16 08:51:47
  • Location: 0
  • Status: offline
Re: SST26VF032 reading problem 2017/02/03 01:40:21 (permalink)
0

Hello ainhi

i'm also new and im trying to make work a sst26VF016B but i cannot make it. Can you tell me which changes did you have to do on sst25VF032B to use the sst26_32B? I tryied the examples of harmony  gfx/external_resources and the examples/drivers/sqi/sqi_gpio and dma but nothig works.
 
thanks

 
If you have the SST25VF32B working, I found everything I had to change on the Migration document: http://ww1.microchip.com/downloads/en/DeviceDoc/20005354A.pdf
 
I wrote functions for each operation (read, write, reset, erase...) and the function that sends the data is the one I mentioned in previous posts:

// Send one byte of data and receive one back at the same time
unsigned char write_SPI2(unsigned char data)
{
unsigned char result;

SPI2BUF = data; // write to buffer for TX
while(!SPI2STATbits.SPIRBF);
result = SPI2BUF; // read the received value

return result;
}

The major change is that you have to set the Unlock Global Protection register. In the SST25 you unlock the protection by writing on the Status Register, in this case, you send the command 0x98 to Unlock the protection.
 
If I remember correctly, everything else was quite similar, if not the same.
#23
Teimur
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2017/07/06 08:22:51
  • Location: 0
  • Status: offline
Re: SST26VF032 reading problem 2017/07/06 21:38:55 (permalink)
0
HI Ainhi,

I'm having the same problem even though I made the Unlock_Global_Block_Protection function and changed the rest of the commands.
My code worked fine on SST25VF032B but not on SST26VF032B.
Can you explicitly explain the Unlock_Global_Block_Protection function or maybe anything else that you changed
#24
ainhi
New Member
  • Total Posts : 20
  • Reward points : 0
  • Joined: 2016/11/16 08:51:47
  • Location: 0
  • Status: offline
Re: SST26VF032 reading problem 2017/10/02 03:03:00 (permalink)
0
Sorry for the late response, hope you already managed to solve your problem.
In case someone has this problem, I will leave here the code for the UGBP
 

#define SST26_CMD_WREN (unsigned)0x06
#define SST26_CMD_WRDI (unsigned)0x04
#define SST26_CMD_ULBPR  (unsigned)0x98
 
void SST26_WriteEnable(void)
{
    unsigned char aux;

    SST26_CS = 0;
    aux = write_SPI2(SST26_CMD_WREN);
    SST26_CS = 1;
}
 
void SST26_WriteDisable(void)
{
    unsigned char aux;

    SST26_CS = 0;
    aux = write_SPI2(SST26_CMD_WRDI);
    SST26_CS = 1;
}
 
void SST26_UnlockGBP()
{
    unsigned char aux;

    SST26_WriteEnable();

    SST26_CS = 0;
    aux = write_SPI2(SST26_CMD_ULBPR);
    SST26_CS = 1;

    SST26_WriteDisable();
    while(SST26_StatusRegister());
}

 
The commands are in the dataasheet, I made defines to make them easier to remember.
#25
yessine
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2018/10/03 09:24:10
  • Location: 0
  • Status: offline
Re: SST26VF032 reading problem 2018/10/08 01:38:59 (permalink)
0
Good morning , I try to use SST25PF040C to store some data , 
I have configured the flash and the communication of SPI .
the two function readId and readjDECiD work fine , but when i want to write in the status register 0x00 to disable the write protection block for memory , but,  i can't write a page program or read  the data from the SST25PF040C !
have someone any idea for this problem ? 
#26
Page: < 12 Showing page 2 of 2
Jump to:
© 2018 APG vNext Commercial Version 4.5