Flash choice for L1 boards

Technical discussions related to any XMOS development kit or reference design. Eg XK-1A, sliceKIT, etc.
User avatar
Folknology
XCore Legend
Posts: 1274
Joined: Thu Dec 10, 2009 10:20 pm
Contact:

Flash choice for L1 boards

Post by Folknology »

Some help regarding flash choice please

I notice the XK1 uses a 4Mbit flash chip - AT25DF041A
Why does it use a 4Mbit flash rather than a 1Mbit given it only has 64K space for prog+data?

I notice that the USB ref design uses a 1Mbit AT25FS010N, does that mean this chip can be used with L1 designs? i.e. is it supported by the xmos libflash?

regards
Al


User avatar
leon_heller
XCore Expert
Posts: 546
Joined: Thu Dec 10, 2009 10:41 pm
Location: St. Leonards-on-Sea, E. Sussex, UK.
Contact:

Post by leon_heller »

They probably had lots of the larger device for use with the bigger XMOS chips, and it was cheaper to use those than to place a separate order for the smaller device.
User avatar
Berni
Respected Member
Posts: 363
Joined: Thu Dec 10, 2009 10:17 pm
Contact:

Post by Berni »

Yeah the 4 core devices need more memory, also the rest of the flash can be used to store your own data. Flash also got dirt cheep by now so a few extra bytes is always welcome. Also memory chips seam to be very standardized like the 25 being common in the part name of SPI memory, the pinouts are identical, package sizes are often only standard PDIP or SOIC, and the interface standard is very similar (There are sometimes differences between very big and very small devices because of the big ones needing more address bits)
richard
Respected Member
Posts: 318
Joined: Tue Dec 15, 2009 12:46 am

Post by richard »

libflash / xflash supports the following flash devices out of the box:

ALTERA_EPCS1
ATMEL_AT25DF041A
ST_M25PE10
ST_M25PE20
ATMEL_AT25FS010

These devices are supported on both the L1 and the G4. libflash can also be extended with new devices by providing a description of the of the flash device so long as the method of programming is similar enough to one devices listed above. For information about custom flash devices see the definition of the fl_DeviceSpec structure in flashlib.h and the following document:

The libflash Library (9.9)
User avatar
Folknology
XCore Legend
Posts: 1274
Joined: Thu Dec 10, 2009 10:20 pm
Contact:

Post by Folknology »

Thanks Richard for clarifying the currently supported flash.
User avatar
lilltroll
XCore Expert
Posts: 956
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

Post by lilltroll »

"also the rest of the flash can be used to store your own data"

How do you burn extra data to the flash ?
Probably not the most confused programmer anymore on the XCORE forum.
User avatar
leon_heller
XCore Expert
Posts: 546
Joined: Thu Dec 10, 2009 10:41 pm
Location: St. Leonards-on-Sea, E. Sussex, UK.
Contact:

Post by leon_heller »

Just write your own software within an application to access the unused portion of the chip.
Matt
Active Member
Posts: 50
Joined: Sat Feb 13, 2010 12:04 pm

Post by Matt »

How do you determine what space is left and where you can start writing your own data to?

Matt
kster59
XCore Addict
Posts: 162
Joined: Thu Dec 31, 2009 8:51 am

Post by kster59 »

Use writepage/readpage from the libflash.

Libflash has a routine that tells you where the bootpartition ends.

Nice powerful library once you figure it out with the lack of docs.
lilltroll wrote:"also the rest of the flash can be used to store your own data"

How do you burn extra data to the flash ?
User avatar
lilltroll
XCore Expert
Posts: 956
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

Post by lilltroll »

Why is the ALTERA EPCS1 so expensive ? Something special with it??
Probably not the most confused programmer anymore on the XCORE forum.
Post Reply