I am looking for C functions to interface the S25FL127 flash memory. Where can I find these function? I am using an SPI from an Atmel Xmega 256D3 and FreeRTOS with AVRGCC compiler.
I downloaded the driver. I am using the flash to store data for a data logger. I need a simple example to read and write data to flash. I understand that if the data need to be overwritten, the data need to be erase first. Is there some simple top level example to read and write data (that handle the erase) available?
Thank you for the files. I will take a look. I am battling some other issues right now and hopefully get back to the flash next week.
I downloaded the "slld.c" and "slld.h" and noticed that the macro definition for flash read and flash write is not defined anywhere. (line 2013 and 2014 of slld.h)
#define FLASH_WR(c,a,d,n) FLASH_WRITE(c,a,d,n)
#define FLASH_RD(c,a,d,n) FLASH_READ(c,a,d,n)
Am I missing something here? (no reference to FLASH_WRITE(c,a,d,n) or FLASH_READ(c,a,d,n)
You can find the functions "FLASH_WRITE" and "FLASH_READ" in "slld_hal_example.c" file.This is the file which you need to modify primarily according to commands you want to implement.