I am trying to interface an ATXMEGA128A1U with a 32Kbyte external ram( IS61LV256AL-10TLI ). The circuit is the same as the xmega xplained board (atxmega128a1u version) and is printed in a pcb.I used the atmel EBI library from the AVR1312 application note.
For testing I used the two read and write functions that came with the library.
I am a bit clueless with the whole ordeal, I know that there are older posts conserning external ram but I can't find a complete example of how the ram is properly used. The most efficient way I found was creating a section attribute and using it only with global variables. I've also modified the memory section of the project properties .
#define XRAM __attribute__ ((section (".xram"))) uint8_t variable XRAM;
I am sure that I got the addresses wrong on both .xram and EBI base address.
Testing with both XRAM variables and the SRAM read/write fucntions didn't produce any results. Could you please check if there is some way too obvious mistake?
Thank you for your time!