Hi
There are some notes about configuring for the AT45DBXXXX in the SP5 release notes (
http://www.utasker.com/software/V1.3/SP_M5223X_Notes.txt - 8. SPI FLASH SW uploads).
Presently the code supports one device specifically to allow software uploads - see also the users' guide to using it with the M5223X:
http://www.utasker.com/docs/uTasker/BM-Booloader_for_M5223X.PDFThe configuration uses #define SPI_SW_UPLOAD and then some details about the device used as follows (in app_hw_m5223x.h).
#define SPI_FLASH_PAGE_LENGTH 264 // standard page size (B-device only allows 256)
//#define SPI_FLASH_PAGE_LENGTH 256 // size when power of 2 mode selected (only possible on D-device)
#define SPI_FLASH_BLOCK_LENGTH (8*SPI_FLASH_PAGE_LENGTH) // block size - a block can be deleted
#define SPI_FLASH_SECTOR_LENGTH (64*4*SPI_FLASH_PAGE_LENGTH) // exception sector 0a is 2k and sector 0b is 62k
#define SPI_FLASH_PAGES 1024 // 256k part expected
#define SPI_DATA_FLASH_SIZE (SPI_FLASH_PAGES*SPI_FLASH_PAGE_LENGTH)
The settings which you have been looking at (SPI_EEPROM) are for use with smaller SPI based EEPROM devices, which is described here:
http://www.utasker.com/docs/uTasker/uTaskerSPI_EEPROM.pdfThis allows the uFileSystem to operate in these external devices.
When using the SPI FLASH the uFileSystem is still internal but the SPI FLASH can be used for SW uploads as well as for direct access by the application (but not as a part of the file system).
We have additional support for multiple SPI FLASH devices in our development version which will be released at some time in the future. Possibly it will eventually be integrated to work with the uFileSystem as well.
There is also a circuit diagram for wiring the AT45DB041D at:
http://www.uTasker.com/docs/M5223X/spi_flash_freescale.PDFThe same wiring is used for all devices of this type (irrespective of their internal size).
Regards
Mark