Hi,
I'm experimenting with the C6720 on a custom built board and I'm booting in parallel flash mode via an 8-bit parallel flash(SST39LF040). It boots up fine and some sample programs have worked ok, but when I try to read a word from the flash by saying something like this(not actual code, just an example):
#define TOP_OF_ASYNCHRONOUS 0x90000000
#define TOP_OF_INTERNAL_RAM 0x10000000
LDW .D1 A0, 0x90000004 //Load the contents of memory location 0x90000004 into A0
//4 junk instructions in between to satisfy functional unit latency for the load instruction
LDW .D1 A1, 0x10000004 //Load Contents of memory location 0x10000004 into A1
Since I'm booting in parallel flash mode, shouldn't the contents of 0x90000004 and 0x100000004 be the same right after boot up? I have verified that they are not and I'm not really sure why, I've programmed A1CR with its proper values, I've also programmed all of the SDRAM registers accordingly. I can read and write from SDRAM fine, but I can't seem to be able to read from my flash. I also viewed the EM_CS[2] pin on the oscilloscope, while running an infinite loop which tried reading from flash, and the EM_CS[2] pin NEVER went low, while the EM_CS[0] pin was low all the time. I never touch the cache registers, I also never touch the CSR(control register) which has the settings for the cache. Could that have something to do with my problem?
Any comments/tips/answers would be greatly appreciated