Hi Mark.
Now before me there is a problem: to write to EEPROM, and then to read writed data from EEPROM. I am configured system for working with SPI_FILE_SYSTEM , EEPROM configuration:
#define uFILE_START 0x0
#define EEPROM_1024K
...
#ifdef EEPROM_1024K
#define EEPROM_PAGE_SIZE 256 // respect larger page size in SPI EEPROM
#define FILE_GRANULARITY (4 * 1024) // File made up of 4k byte FLASH blocks
#define SINGLE_FILE_SIZE (FILE_GRANULARITY) // each file a multiple of 4k
#define FILE_SYSTEM_SIZE (256 * SINGLE_FILE_SIZE) // 1024k reserved for file system (including parameter blocks)
#endif
#define SPI_FLASH_PAGE_LENGTH 256 // size when power of 2 mode selected (only possible on D-device)
#define SPI_FLASH_BLOCK_LENGTH (16 * SPI_FLASH_PAGE_LENGTH) // block size 4k - a block can be deleted
#define SPI_FLASH_SECTOR_LENGTH (64 * SPI_FLASH_BLOCK_LENGTH) // exception sector 0a is 64k and sector 0 is 64k
#define SPI_FLASH_PAGES (SPI_FLASH_PAGE_LENGTH * 4 * 1024)
#define SPI_DATA_FLASH_SIZE (SPI_FLASH_PAGES * SPI_FLASH_PAGE_LENGTH)
, on to write down parameters at me it is impossible: the program strated loop( on function :
fnSetPar((PAR_DEVICE | TEMPORARY_PARAM_SET), (unsigned char *)&temp_pars->temp_parameters, sizeof(PARS)); ->
fnWaitWriteComplete(void); and not get out from it (ucStatus every time = 255).
. What I need to check up to be confidence, what the configuration of parameters is true or I don't forgotten do any operation with EEPROM?
Thanks.
Evgeni Kosakovski.