-
1. Re: 4 byte addressing of Cypress S25FL128S
SudheeshK_26 Jul 21, 2017 2:46 AM (in response to julien_2615036)Hello,
Are you migrating from 128Mb (S25FL128S ) part to our 1Gb (S70FL01GS) part? Please clarify.
You can download our low level driver for our SPI flash devices from the following link: http://www.cypress.com/documentation/software-and-drivers/low-level-driver-spi-flash?source=search&cat=software_tools, you can use this as a reference to write your application to access our flash device.
Details about command sequence to program our flash devices are available in the datasheets.
S25FL128S: http://www.cypress.com/file/177966/download
S70FL01GS: http://www.cypress.com/file/233721/download
Thanks and Regards,
Sudheesh
-
2. Re: 4 byte addressing of Cypress S25FL128S
julien_2615036 Jul 21, 2017 3:48 AM (in response to SudheeshK_26)Thanks for your answer,
It's a mistake. I'm using the S25FL128S to store data. It's working with a 3 bytes address i can store data with Page Program, but i need to use a 4 bytes adress. And for the time being i cannot using it.
Do you have some sample code to enable and use 4 bytes addressing for this flash and other necessary instructions for sector programming.Thanks & Regards,
-
3. Re: 4 byte addressing of Cypress S25FL128S
krishnag_71 Jul 21, 2017 11:47 PM (in response to julien_2615036)Hi Julien,
In order to use 4 byte addressing scheme the BAR[7] bit has to be "1" .
The Bank Register Write ( BRWR 17h) command is used to write the Extended address control bit (EXTADD) that is also in BAR[7].
Because this command is part of the addressing method and is not changing data in the flash memory, this command does not require the WREN command to precede it.
Once it is set you can page program (4PP) using instruction code "12h". Please try and let us know if you are facing any issues.
Thanks,
Krishna.
-
4. Re: 4 byte addressing of Cypress S25FL128S
julien_2615036 Jul 24, 2017 12:43 AM (in response to krishnag_71)Hi Krishna,
I tried to use the command 17h to send 01h to the extended address control, and after I tried to write with command 12h and read with the command 13h but I do not get anything
Best regards,
Julien,
-
5. Re: 4 byte addressing of Cypress S25FL128S
krishnag_71 Jul 25, 2017 8:25 PM (in response to julien_2615036)Hi Julien,
Can you please let us know which MCU you are using. Does it support 4 byte addressing ?
Thanks,
Krishna.
-
6. Re: 4 byte addressing of Cypress S25FL128S
julien_2615036 Jul 25, 2017 11:20 PM (in response to krishnag_71)Hi Krishna,
I'm using the nrf52832 from Nordic.
-
7. Re: 4 byte addressing of Cypress S25FL128S
krishnag_71 Jul 26, 2017 3:30 AM (in response to julien_2615036)Hi Julien,
Can you read the values of BAR register, Status Registers, configuration register and provide the values to us.
Is it possible for you to provide your code for review.
Thanks,
Krishna.
-
8. Re: 4 byte addressing of Cypress S25FL128S
krishnag_71 Jul 26, 2017 3:44 AM (in response to julien_2615036)Hi Julien,
I believe though S25FL128S device supports the extended address features in the same way it ignores bits 31 to 24 of any address because the main flash array only needs 24 bits of address. It enables simple migration from the 128-Mb density to higher density devices without changing the address handling aspects of software. It could be one of the reasons why 4 byte addressing is not working in your case.
Thanks,
Krishna.
-
9. Re: 4 byte addressing of Cypress S25FL128S
SudheeshK_26 Aug 1, 2017 2:28 AM (in response to julien_2615036)Hi Julien,
I could not understand the status registers, configuration register and bank address register data you provided. All these registers are of size 8 bits and the screen shots you attached shows these registers as an array of size 16 and type unsigned char. Could you please let me know how to decode it?
Thanks and Regards,
Sudheesh