Hi,
I want to know if there is a cleaner way to do the following. i.e. I would like to avoid modifying the ASF code as shown below, because when I upgrade ASF in months/years to come I'm sure I will have forgotten why I did this, and end up breaking it...
To move the (USB) RAMdisk to SDRAM, I have changed asf/common/components/memory/virtual_mem/virtual_mem.c from this:
Code:
static uint8_t vmem_data[VMEM_NB_SECTOR * VMEM_SECTOR_SIZE];
to this:
Code:
__attribute__((__section__(".bss_sdram")))
static uint8_t vmem_data[VMEM_NB_SECTOR * VMEM_SECTOR_SIZE];
I'm using an EVK1100.
Many thanks,
Thomas |