This application is an example of how to execute a single function as well as complete binary from external SDRAM. The code has been tested on EVK1100, EVK1104 and UC3C-EK
For executing a single function:
Set EXECUTE_FUNCTION_IN_SDRAM to 1 in conf_sdram.h (EXECUTE_CODE_IN_SDRAM to 0) In case of GCC the function "test_function_in_sdram()" would be placed in SDRAM during runtime and would be executed. It is a simple function which turns ON the four LED's
For copying and executing complete binary from SDRAM
Set EXECUTE_CODE_IN_SDRAM to 1 in conf_sdram.h (EXECUTE_FUNCTION_IN_SDRAM to 0) The example binary "external_sdram_binary.bin" can be loaded either from external dataflash as well as SD/MMC card. Select BOOT_OPTION = DATA_FLASH to copy bin file from Data flash Select BOOT_OPTION = SD_MMC_CARD to copy bin file from SD MMC card and then build the project. To copy the bin file to Data Flash,download the USB Mass Storage example in the on the EVK1104 kit.Perform a hard reset. The data flash (8 MB) will appear as disk drive on your Computer (PC). Copy the external_sdram_binary.bin file to disk drive represented by Data Flash. The same method can be used to copy bin file to SD/MMC card
Make sure to name the externally generated binary as "external_sdram_binary.bin" since this has been hard coded.
This software is written for GNU GCC for AVR32 and IAR
All AVR32 devices with EBI and SDRAMC can be used.
This example has been tested with the following configuration:
SDRAM should be initialized with same speed as Main Clock for CPU
For further information, visit Atmel AVR32.
Support and FAQ: http://support.atmel.no/
1.7.1