Hi,
We are still unable to solve the problem. We have tried everything we can think of. If register settings are wrong, why does it affect only the 2nd half of SDRAM memory space?
Hope someone can advise us.
here is a script we have used :
;;;;;;;;Clock module Chapter 7
;Crystal Frequency = 13.56MHz
;Sets the Core Frequency = 10 * 13.56MHz =135.6MHz
;Internal Bus Frequency = 75MHz
MM.L 0x40120000 0x03000000
DELAY 100
;;;;;;;;GPIO module Chapter 12
;A[23:21] pin configured for address bit 23-21
;D[15:0] pins configured for data 15-0 functions
MM.B 0x40100040 0xE0
;Only CS1 pin is configured for CS function
;The rest of CS pins are used for GPIO functions
MM.B 0x40100045 0x02
;SD_WE pin configured for SDRAMC WE function
;SD_CAS pin configured for SDRAMC CAS function
;SD_SRAS pin configured for SDRAMC SRAS function
;SD_CKE pin configured for SDRAMC CKE function
;SD_CS pin configured for SDRAMC CS function
;CS2 abd CS3 are NOT configured for SDRAMC function
MM.B 0x40100046 0x3F
;;;;;;;;;; SDRAM module Chapter 18
;Refresh Timing = 6 clocks
;Refresh Count = 0x42
MM.W 0x40000040 0x0242
;set RAM base address to 0x10000000
;CBM set to 3
;CASL set to bit value 01
;set Port Size 32 bit
MM.L 0x40000048 0x10001320
;set RAM base address mask to allow for 16M range
;set bit V to initialize registers controlling DRAM block
MM.L 0x4000004C 0x00fc0001
;set IP bit to initiate Precharge All command
MM.L 0x40000048 0x10001328
;DELAY 10
; Write to SDRAM to initiate precharge
MM.w 0x10800000 0xA596
; Turn On Refresh Enable bit
MM.L 0x40000048 0x10009328
;DELAY 1
;Initiate Mode Register Set command
MM.L 0x40000048 0x10009368
;Write to the SDRAM Mode Register
MM.W 0x10800200 0xA596