An example project for PSoC5LP EMIF interfacing to Cypress Fast SRAM CY7C1019DV33-10ZSXI is attached.
This can be used as reference project to interface with any SRAM.
This containd two standerd patterns as well to test the SRAM.
Good example, and give us some description of the project will be better.
Funny to watch some Cypress Gurus talk to each other in the developer community!
Big broad smile
This project can also be slightly modified to place variables in the EMIF section. This can be done by using a custom linker script file which defines an EMIF section. Now, you can define your custom EMIF section within this and place variables in the External Memory.
You can check the attached project. A modified linker file EMIF_var.ld has been used. Please note to set this as a custom linker script file in the linker settings.
This project demonstrates how to place the variable in the EMIF section.
just for clarification, the variable foo is 'directly' written with value 25, and 'indirectly' read by the macro?
Yes, thats right. 0x60000000 is mapped to the EMIF address and you get the EMIF data by the reading the contents of this address using the MACRO.
Thanks and Regards
thank you for clarification.