|
Hi,
I made some modifications to the BasicLCD example for AT91SAM9261-EK so that the code is copied from the dataflash to the external SDRAM and run from there. Only the init code loaded by the AT91SAM9261 boot program and the stack is at the internal RAM.
A test code that runs normally in 25 seconds when run in the internal memory takes about 100 seconds when run from the SDRAM. Is a performance hit of this magnitude something to be expected? Turning LCD controller DMA on and off has effect of about 10%. The following observation makes me think I'm missing something:
After loading the code into the dataflash, running the same test in the internal RAM (debugger shows the code really is running there) takes about 50 seconds. If I use SAM-BA to clear the dataflash, the same code again runs in 25 seconds.
Any ideas?
|