cancel
Showing results for 
Search instead for 
Did you mean: 

Nor Flash

NeBa_4740206
New Contributor

Hi,

I am using an MCU (ATSAME53J20A-AF) together with the S70FL01GSAGMFV010 NOR flash chip.

I want to have the S70FL01GSAGMFV010 be seen as a mass storage device by a USB host (any advice / examples / re-usable code ?).

Secondly I need advice / examples on memory management (i.e. bad sector management) for the NOR flash.

Any examples / advise / re-usable code would be highly appreciated ?

0 Likes
Reply
1 Solution
AlbertB_56
Employee

Hello,

Thank you for contacting Cypress Semiconductor

Please find attached the SPI Low Level Drivers (SLLD) for the S70FL01GS.

Best regards,

Albert

Cypress Semiconductor Corp.

An Infineon Technology Company

View solution in original post

0 Likes
Reply
8 Replies
AlbertB_56
Employee

Hello,

Thank you for contacting Cypress Semiconductor

Please find attached the SPI Low Level Drivers (SLLD) for the S70FL01GS.

Best regards,

Albert

Cypress Semiconductor Corp.

An Infineon Technology Company

View solution in original post

0 Likes
Reply
NeBa_4740206
New Contributor

Thank you.

I am trying to do something very basic.

I want to divide the memory into 32byte "pages".

Before every write of new 32byte data I have to do an erase right ?

Is it possible to do an erase for only 32bytes at a time ?

Or do I have to erase at least 4 x 1024 = 4kbytes at a time ?

0 Likes
Reply
AlbertB_56
Employee

Hello,

The S70FL01GS write buffer size is 512-byte.  It is certainly possible to program from one byte to 512-bytes.

Therefore, programming 32-bytes at a time is also possible.  However, the program time for 32-bytes would

be the same as programming 512-bytes.  It is highly recommended to fill the write buffer to 512-bytes to take

advantage of the program time.  There is no program time advantage with programming only 32-bytes.

The S70FL01GS has 256 256-KB sectors.  In regards to Sector Erase operation, the S70FL01GS has 256 KB

sector size.  Therefore, Sector Erase operation only erases the complete size of the sector, which is 256 KB.

Sectors cannot be partially erased. 

Best regards,

Albert

Cypress Semiconductor Corp.

An Infineon Technologies Company

0 Likes
Reply
AlbertB_56
Employee

Hello,

The S70FL01GS write buffer size is 512-byte.  It is certainly possible to program from one byte to 512-bytes.

Therefore, programming 32-bytes at a time is also possible.  However, the program time for 32-bytes would

be the same as programming 512-bytes.  It is highly recommended to fill the write buffer to 512-bytes to take

advantage of the program time.  There is no program time advantage with programming only 32-bytes.

The S70FL01GS has 256 256-KB sectors.  In regards to Sector Erase operation, the S70FL01GS has 256 KB

sector size.  Therefore, Sector Erase operation only erases the complete size of the sector, which is 256 KB.

Sectors cannot be partially erased.

Best regards,

Albert

Cypress Semiconductor Corp.

An Infineon Technologies Company

0 Likes
Reply
NeBa_4740206
New Contributor

Thank you.

Am I correct in saying that for this specific device I want to use I only need the files in folder:

....\Cypress_SLLD_v16.2.1\Cypress_SLLD_v16.2.1\device_specific\fls_S70fl01GS

0 Likes
Reply
NeBa_4740206
New Contributor

Or rather the correct files to be used for S70FL01GSAGMFV010 are

From folder:

.....\Cypress_SLLD_v16.2.1\device_specific\fls_S70fl01GS

     1. slld.c

     2. slld.h

     3. slld_targetspecific.h

From folder:

......\Cypress_SLLD_v16.2.1 (1)\Cypress_SLLD_v16.2.1\Hals\Generic

     1. slld_hal.c

     2. slld_hal.h

Is this correct for S70FL01GSAGMFV010 ?

0 Likes
Reply
NeBa_4740206
New Contributor

Please can you assist.  It is quite confusing as there also seems to be different slld.g, slld.c, slld_targetspecific.h etc files and compare the same name file to others seems quite different.

I have tried to compile the set of files for S70FL01GSAGMFV010 but get errors like:

     SPI_4DDRDIOR_CMD undeclared and others similar...

0 Likes
Reply
NeBa_4740206
New Contributor

I want to use the S70FL01GSAGMFV010  in Quad SPI mode if that helps ?

0 Likes
Reply