We're bringing up some Hercules based platforms, and are attempting to use the EMIF in async mode to access some external UART modules. I created a snippet of code to update chip select configurations, and they seem to be setting properly, but when I read from the CS2 address space, the chip select doesn't toggle. I have updated the mode of the pin to GPIOB4 and toggled it successfully, but cannot get the EMIF to toggle the pin when set as CS2.
We have been digging through the ref manual to see if there is anything else that must be configured, but cannot find anything obvious. I have disabled the cache, the MPU is disabled, and everything else in the system (UART, ADC, RTI, etc.) are working fine with interrupts. Is there something in the co-processor registers or other arch regs we need to setup for this to work?
Here is the output from the test code.
Configuring CS2 [0x60000000-0x63ffffff] with 96MHz base clock
RD (Setup, Access, Hold): 1, 3, 1
WR (Setup, Access, Hold): 1, 3, 1
zee:>read 0xfcffe800
Reading 64 words of data starting at address 0xfcffe800
0xfcffe800 :0x40000205 :0xf0000080 :0x00000620 :0x00000080 :0x00200100 :0x3ffffffd :0x3ffffffd :0x3ffffffd :
0xfcffe820 :0x31214610 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000007 :
0xfcffe840 :0x00000004 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000400 :
0xfcffe860 :0x00000000 :0x00000001 :0xfcfcfcfc :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :
0xfcffe880 :0x00000000 :0x00000000 :0x00002091 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :
0xfcffe8a0 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000003 :0x00000000 :0x00000000 :0x00000000 :
0xfcffe8c0 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :
0xfcffe8e0 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :
zee:>read 0x60000000
Reading 64 words of data starting at address 0x60000000
0x60000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :
0x60000020 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :
0x60000040 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :
0x60000060 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :
0x60000080 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :
0x600000a0 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :
0x600000c0 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :
0x600000e0 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :0x00000000 :