资源简介
mini2440在MDK上完整启动代码,已经一直好,可以直接使用
代码片段和文件信息
/************************************************
NAME : MMU.C
DESC :
Revision: 2002.2.28 ver 0.0
************************************************/
#include “def.h“
#include “2440addr.h“
#include “mmu.h“
// 1) Only the section table is used.
// 2) The cachable/non-cachable area can be changed by MMT_DEFAULT value.
// The section size is 1MB.
extern char __ENTRY[];
void MMU_Init(void)
{
int ij;
//========================== IMPORTANT NOTE =========================
//The current stack and code area can‘t be re-mapped in this routine.
//If you want memory map mapped freely your own sophiscated MMU
//initialization code is needed.
//===================================================================
MMU_DisableDCache();
MMU_DisableICache();
//If write-back is usedthe DCache should be cleared.
for(i=0;i<64;i++)
for(j=0;j<8;j++)
MMU_CleanInvalidateDCacheIndex((i<<26)|(j<<5));
MMU_InvalidateICache();
#if 0
//To complete MMU_Init() fast Icache may be turned on here.
MMU_EnableICache();
#endif
MMU_DisableMMU();
MMU_InvalidateTLB();
//MMU_SetMTT(int vaddrStartint vaddrEndint paddrStartint attr)
//MMU_SetMTT(0x000000000x07f000000x00000000RW_CNB); //bank0
MMU_SetMTT(0x000000000x03f00000(int)__ENTRYRW_CB); //bank0
MMU_SetMTT(0x040000000x07f000000RW_NCNB); //bank0
MMU_SetMTT(0x080000000x0ff000000x08000000RW_CNB); //bank1
MMU_SetMTT(0x100000000x17f000000x10000000RW_NCNB); //bank2
MMU_SetMTT(0x180000000x1ff000000x18000000RW_NCNB); //bank3
//MMU_SetMTT(0x200000000x27f000000x20000000RW_CB); //bank4
MMU_SetMTT(0x200000000x27f000000x20000000RW_CNB); //bank4 for STRATA Flash
MMU_SetMTT(0x280000000x2ff000000x28000000RW_NCNB); //bank5
//30f00000->30100000 31000000->30200000
MMU_SetMTT(0x300000000x301000000x30000000RW_CB); //bank6-1
MMU_SetMTT(0x302000000x33e000000x30200000RW_NCNB); //bank6-2
//
MMU_SetMTT(0x33f000000x33f000000x33f00000RW_CB); //bank6-3
MMU_SetMTT(0x380000000x3ff000000x38000000RW_NCNB); //bank7
MMU_SetMTT(0x400000000x47f000000x40000000RW_NCNB); //SFR
MMU_SetMTT(0x480000000x5af000000x48000000RW_NCNB); //SFR
MMU_SetMTT(0x5b0000000x5b0000000x5b000000RW_NCNB); //SFR
MMU_SetMTT(0x5b1000000xfff000000x5b100000RW_FAULT);//not used
MMU_SetTTbase(_MMUTT_STARTADDRESS);
MMU_SetDomain(0x55555550|DOMAIN1_ATTR|DOMAIN0_ATTR);
//DOMAIN1: no_access DOMAIN02~15=client(AP is checked)
MMU_SetProcessId(0x0);
MMU_EnableAlignFault();
MMU_EnableMMU();
MMU_EnableICache();
MMU_EnableDCache(); //DCache should be turned on after MMU is turned on.
}
// attr=RW_CBRW_CNBRW_NCNBRW_FAULT
void ChangeRomCacheStatus(int attr)
{
int ij;
MMU_DisableDCache();
MMU_DisableICa
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 40639 2013-03-17 17:20 startcode\2440addr.h
文件 3563 2013-02-11 18:48 startcode\2440addr.inc
文件 20420 2013-03-17 17:14 startcode\2440init.s
文件 7436 2013-02-11 18:47 startcode\2440slib.s
文件 1256 2013-02-11 18:47 startcode\def.h
文件 2578 2013-03-13 19:56 startcode\Memcfg.inc
文件 3753 2013-03-17 16:39 startcode\mmu.c
文件 1176 2013-03-14 15:27 startcode\mmu.h
文件 3996 2013-03-17 17:12 startcode\nand.c
文件 913 2013-03-17 16:38 startcode\nand.h
文件 5332 2013-02-11 18:47 startcode\option.h
文件 2540 2013-02-11 18:48 startcode\option.inc
文件 416 2013-03-17 21:00 startcode\两个C文件说明.txt
目录 0 2013-03-17 18:42 startcode
----------- --------- ---------- ----- ----
94018 14
- 上一篇:logistic回归测试数据
- 下一篇:非晶硅太阳能电池AMPS仿真
相关资源
- 简单、规范的Linux下的ds18b20驱动基于
- mini2440的u-boot.bin 2012.04.01版
- Keil Mdk5.15下移植ucosii到mini2440s3c2440
-
用Jli
nk烧写bootloader到mini2440的Nor f - 模板工程_MDK5.14_F103C8T6
- Keil.STM32F4xx_DFP.2.11.0.pack
- mini2440裸机实现简易u-boot代码.rar
- mini2440实现采集摄像头数据在开发板的
- MDK_keil5注册机不含软件
- 嵌入式linux之mini2440的hc-sr04超声波驱动
- MDK3.8 ARM 注册机
- Keil MDK 4.11 破解及注册机
- MDK529.txt
- MDK配色方案-仿照Notepad++主题色
- mini2440简易bootloader源码
- VMware vmdk镜像文件
- Keil mdk 5.18 破解文件 crack
- MDK_5.25.30版本 KEIL5 网盘链接.txt
- MDKCM524.EXE
- 仿Sublime Text 3的Keil MDK背景颜色配置
- mini2440的按键,led灯裸机程序,不使用
- MDK5.26开发软件
- GigaDevice.GD32F10x_DFP.2.0.2MDKLib.rar
- 模板工程_MDK5.14_F103RCT6
- S32K144移植S32DS工程到KEIL MDK史上最详细
- mini2440 vxworks bsp
- 基于mini2440 NFS挂载图文并茂
- MDK 4.71破解
- 基于mini2440的USB视频采集
- UC/OSII MINI2440移植
评论
共有 条评论