Hi,
could someone give me some advice to build another dataflash algorithm to download code via jtag to the dataflash connected at the spi interface (for the AT91RM9200 controller).
I just take a look into the AT91SAM9_DF_P1056_CS0 file, but I don't know where I can get the "Run User Programs After Build / Rebuild" (Options-for-target->User) flx-file.
And is it right, that I have to choose the internal RAM for the ROM definitions under options-for-target->Target, too?
best regards Hans
all algorithms in the Keil installation use far less then 4kB of memory
When I right, then I have to download the dataflash algorithm (first) in the internal RAM to enable the spi controller (and the spi connection).
RAM Size = RW Data + ZI Data = 12 + 132 ROM Size = Code + RO Data + RW Data = 1948 + 4256 + 12
But I found my error for this error message (I forgot to change the RAM size in the uvision project (within the Flash Download Setup window).
So now the software told me that there are no errors during the download to the spi dataflash. But when I try to start the programm, then I get a error messages (within the registers) access violation at 0xFFFFFFFC for example. These errors occured when I run the startup-script.
I don't think that the write progress is successful - because when I restart the processor no data will be transmitted to the processor from the dataflash - there's only one short peak (when the processors searchs for a valid sequence).
Within the FlashPrg.c file: I use the start addr from the internal RAM for
#define SDRAM_START
and the offset is 0xE00.
I'm sitting in front of the data flash code but I don't see the error / responsible for the errors.
Reinhard, could you give me a example for the AT91RM9200 together with the AT45DB021B data flash from Atmel? I've only the internal RAM from the controller to test the data flash.
Send your projects (Data Flash algorithm and example application) with detailed description of the problem to support.intl@keil.com