-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ext_RAM2.ini
39 lines (28 loc) · 1.71 KB
/
Ext_RAM2.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/******************************************************************************/
/* Ext_RAM.INI: External RAM (SDRAM) Initialization File */
/******************************************************************************/
// <<< Use Configuration Wizard in Context Menu >>> //
/******************************************************************************/
/* This file is part of the uVision/ARM development tools. */
/* Copyright (c) 2005-2008 Keil Software. All rights reserved. */
/* This software may only be used under the terms of a valid, current, */
/* end user licence from KEIL for a compatible version of KEIL software */
/* development tools. Nothing else gives you the right to use this software. */
/******************************************************************************/
FUNC void Init (void) {
_WDWORD(0x4A000008, 0xFFFFFFFF); // Disable All Interrupts
_WDWORD(0x53000000, 0x00000000); // Disable Watchdog Timer
// Memory Controller Setup for SDRAM
_WDWORD(0x48000000, 0x22011110); // BWSCON
_WDWORD(0x4800001C, 0x00018005); // BANKCON6
_WDWORD(0x48000020, 0x00018005); // BANKCON7
_WDWORD(0x48000024, 0x008404F3); // REFRESH
_WDWORD(0x48000028, 0x00000031); // BANKSIZE
_WDWORD(0x4800002C, 0x00000030); // MRSRB6
_WDWORD(0x48000030, 0x00000030); // MRSRB7
_WDWORD(0x56000000, 0xFFFFFF); // GPACON: Enable Address lines for SDRAM
}
Init();
LOAD .\xxx.axf INCREMENTAL // Download program
PC = 0x33E00000; // Setup for Running
//g, main // Goto Main