I was pointed to this forum by an Atmel tech representative to post a question about writing to flash memory for the AT45DB161D (which has 2MB flash memory). My project is pretty simple in that it samples data from an analog to digital converter for an extended period of time and stores the results in an array. When the array fills up, I need to move it to flash memory.
My problem is that I have been unable to figure out how to read/write to flash memory. I cannot find any examples in C that show how this can be done. I feel like I’m spinning my wheels on something that should be pretty straightforward.
Can anyone point me in a direction of a code sample of how this can be done? I am using the SPDAT register to transfer the data, but no luck.
This is my first post so if I need to provide more information, please let me know.
Thanks in advance,