cancel
Showing results for 
Search instead for 
Did you mean: 

Nor Flash

Anonymous
Not applicable

I am sending 0x05 or 0x35 and nothing goes out of SI. I put CS low before, the sck is functioning, and the when the data finished CS goes high. I tryed everything.

0 Likes
1 Solution
AlbertB_56
Employee

Hello Avppoian_3580241

I do not understand your statement :

" First I write Escreve_NOR(0x20,4); and when I read the data shows 0xFF. Then I changed my line command to Escreve_NOR(0x20,5);

and I compile and send the program and then the data are write and I can read correctly. The status register is reading 0x00, the status register too is reading 0x03. "

- Command 20h is Sector Erase

- 0xFFh is the Erased state.

" The status register is reading 0x00, the status register too is reading 0x03. "

   1). If only one status register, what is the status register actually reading, 0x00h or 0x03h?

   2). Which status register is reading 0x00h?

   3). Which status register is reading 0x03h?

Please clarify at your earliest convenience...

Best regards,

Albert

Cypress Applications Support

View solution in original post

0 Likes
8 Replies
AlbertB_56
Employee

Hello Avppoian_3580241,

What mode is the S25FL164K configured in?  SPI?, Dual? or Quad?

If the S25FL164K is configured in SPI mode, SI (pin-5) is an input signal pin only (SI = Serial-In);  data will be read from SO.

If the S25FL164K is configured in Dual mode, SI (pin-5) now becomes I/O-0;  data can be read from I/O-0 and I/O-1 in Dual mode.

If the S25FL164K is configured in Quad mode, SI (pin-5) now becomes I/O-0;  data can be read from I/O-0, I/O-1, I/O-2 and I/O-3

in Quad mode.

Please verify and confirm as to which mode the S25FL164K is configured in.

Thank you and best regards,

Albert

Cypress Applications Support

0 Likes
Anonymous
Not applicable

The S25FL164K is configured in SPI mode, SI (pin-5) is an input signal pin

only (SI = Serial-In); data will be read from SO. This is in way that you

told me. The SPI is in single mode, the first.

2018-07-17 17:55 GMT-03:00 asbr <community-manager@cypress.com>:

<http://www.cypress.com>

Cypress Developer Community

<https://community.cypress.com/?et=watches.email.thread>

I am trying to reading something of SL25164K but nothing goes out to SI

pin 5?

reply from asbr

<https://community.cypress.com/people/asbr?et=watches.email.thread> in *Nor

Flash* - View the full discussion

<https://community.cypress.com/message/163076?et=watches.email.thread#163076>

0 Likes
Anonymous
Not applicable

I am getting to read ID with command 0x9F but I write a data for example

0xAA and read and nothing happen, something is wrong. I have read the

datasheets but not so clear. I tun on write enable, then i erase a block of

64K, the i write the data 0xAA on adress 0x00 0x00 0x00 and then I read and

come 0xFF or nothing. There is a problem with the codes examples. This is

my code attached.

2018-07-18 8:13 GMT-03:00 Alexandre Voigt da Poian <avppoian@gmail.com>:

The S25FL164K is configured in SPI mode, SI (pin-5) is an input signal pin

only (SI = Serial-In); data will be read from SO. This is in way that

you told me. The SPI is in single mode, the first.

>

2018-07-17 17:55 GMT-03:00 asbr <community-manager@cypress.com>:

>> <http://www.cypress.com>

>> Cypress Developer Community

>> <https://community.cypress.com/?et=watches.email.thread>

>> I am trying to reading something of SL25164K but nothing goes out to SI

>> pin 5?

>>

>> reply from asbr

>> <https://community.cypress.com/people/asbr?et=watches.email.thread> in *Nor

>> Flash* - View the full discussion

>> <https://community.cypress.com/message/163076?et=watches.email.thread#163076>

>>

0 Likes
AlbertB_56
Employee

Hello Avppoian_3580241,

Please find attached the Serial Low level Drivers (SLLD) in regards to Serial NOR FLASH memory products.

Please use this SLLD for the S25FL164K

Hope this helps...

Best regards,

Albert

0 Likes
Anonymous
Not applicable

Not explain well, I tryed to do but nothing happens.

/*** ERASE SECTOR 1 4 KBYTES ***/

    CS_OFF;

    Delay();

    Escreve_NOR(0x06,1);

    Delay();

    CS_ON;

    Delay();

    CS_OFF;

    Delay();

    masterTxData[1] = 0x00;

    masterTxData[2] = 0x00;

    masterTxData[3] = 0x00;

    masterTxData[4] = 0x00;

    Escreve_NOR(0x20,4);

    Le_NOR(1);

    Delay();

    CS_ON;

    CS_OFF;

    Delay();

    Escreve_NOR(0x04,1);

    Delay();

    CS_ON;

    Delay();

    /**************************************************************************/

First I write Escreve_NOR(0x20,4); and when I read the data shows 0xFF. Then I changed my line command to Escreve_NOR(0x20,5); and I compile and send the program and then the data are write and I can read correctly. The status register is reading 0x00, the status register too is reading 0x03.

0 Likes
AlbertB_56
Employee

Hello Avppoian_3580241

I do not understand your statement :

" First I write Escreve_NOR(0x20,4); and when I read the data shows 0xFF. Then I changed my line command to Escreve_NOR(0x20,5);

and I compile and send the program and then the data are write and I can read correctly. The status register is reading 0x00, the status register too is reading 0x03. "

- Command 20h is Sector Erase

- 0xFFh is the Erased state.

" The status register is reading 0x00, the status register too is reading 0x03. "

   1). If only one status register, what is the status register actually reading, 0x00h or 0x03h?

   2). Which status register is reading 0x00h?

   3). Which status register is reading 0x03h?

Please clarify at your earliest convenience...

Best regards,

Albert

Cypress Applications Support

View solution in original post

0 Likes
Anonymous
Not applicable

I got it, I wasn´t reading the status register correctly after erase

command and now is ok.

2018-07-31 13:48 GMT-03:00 asbr <community-manager@cypress.com>:

<http://www.cypress.com>

Cypress Developer Community

<https://community.cypress.com/?et=watches.email.thread>

I am trying to reading something of SL25164K but nothing goes out to SI

pin 5?

reply from asbr

<https://community.cypress.com/people/asbr?et=watches.email.thread> in *Nor

Flash* - View the full discussion

<https://community.cypress.com/message/164621?et=watches.email.thread#164621>

0 Likes
AlbertB_56
Employee

Okay, thank you, that is good to know...

Best regards,

Albert

Cypress Applications Support

0 Likes