Hi,
Thank you for your help - I have now implemented the integrated ANT-FS commands in a similar manner to the standard ANT messages found in the ANTInterface.c file.
However, when I send the following messages, ANTFS_InitFSMemory() returns with an error:
ANTFS_InitEEPROMDevice(64, 1); // 64 bytes per page, 2 byte address
Returns 0x00 FS_NO_ERROR Operation successful
ANTFS_FormatFSMemory(4, 4); // 4 sectors, 4 pages per sector
Returns 0x00 FS_NO_ERROR Operation successful
ANTFS_InitFSMemory();
Returns 0x01 FS_MEMORY_UNFORMATTED_ERROR NVM not formatted before attempting a file operation
I am using a 128-Kbit EEPROM.
Datasheet
Using a logic analyzer I have checked the SPI communication between the C7 and EEPROM. I have attached the output from this test. To summarize. the ANTFS_InitEEPROMDevice message doesn't result in any SPI communication. The ANTFS_FormatFSMemory message results in the C7 sending a number of characters to the EEPROM,, however the EEPROM (MISO) responds with either 0xFF or 0x00 every time. The ANTFS_InitFSMemory message results in a similar behaviour to the previous message.
Do you know what could be the cause of the error in response to the ANTFS_InitFSMemory message?
Is it likely to be due to a hardware issue (EEPROM not properly connected)? Or perhaps an initialization issue (am I using incorrect values to initialize a 128Kbit EEPROM)?
Thanks in advance for any assistance you can provide.