Difference between revisions of "How to use flash if uni"

From steamWiki
Jump to: navigation, search
(Created page with 'This guide describes how to use the flash_if_uni system (which consists of flash_if_uni.c and flash_if_uni.h). flash_if_uni allows a designer a simple means of communicating wit…')
(No difference)

Revision as of 08:14, 24 June 2010

This guide describes how to use the flash_if_uni system (which consists of flash_if_uni.c and flash_if_uni.h).

flash_if_uni allows a designer a simple means of communicating with Atmel Flash products (AT49BV322A, AT49BV322AT, AT49BV322D, AT49BV322DT) from a Xilinx EDK (Microblaze) project.




When using flash_if_uni all options are controlled by #defines at the top of flash_if_uni.h. The following constants are defined.

  • FLASH_ADDR: This is the Base Address of the XPS_EMC_MCH Memory Controller IP Core in your EDK Project that connects to your Atmel Flash. This should be set to the constant given for the Base Address for the XPS_EMC_MCH in the xparameters.h file generated by EDK.
  • FLASH_RDY_ADDR: This is the Base Address of the XPS_GPIO General Purpose IO IP Core in your EDK Project that connects to the Ready line from your Atmel Flash. This should be set to the constant given for the Base Address for the appropriate XPS_GPIO in the xparameters.h file generated by EDK.
  • FLASH_RDY_MASK: This is a hex number describing which bit in the XPS_GPIO (that FLASH_RDY_ADDR points to) is connected to the Ready line from your Atmel Flash. If the Ready line is the only thing connected to the XPS_GPIO then this should be set to 0xFFFFFFFF
  • EDK_VERSION: