|
再补充几个信息
这个是运行异常的寄存器地址
#define rADCCON (*(volatile unsigned *)0x58000000) //ADC control
正常的比如是
#define rCLKDIVN (*(volatile unsigned *)0x4c000014) //Clock divider control
我开发板上的SDRAM一共64MB,挂于系统内存空间的0x30000000处
MMU_SetMTT(0x00000000,0x07f00000,0x00000000,RW_CNB); //bank0 //128MB
MMU_SetMTT(0x08000000,0x0ff00000,0x08000000,RW_CNB); //bank1
MMU_SetMTT(0x10000000,0x17f00000,0x10000000,RW_NCNB); //bank2
MMU_SetMTT(0x18000000,0x1ff00000,0x18000000,RW_NCNB); //bank3
MMU_SetMTT(0x20000000,0x27f00000,0x20000000,RW_NCNB); //bank4
MMU_SetMTT(0x28000000,0x2ff00000,0x28000000,RW_NCNB); //bank5
MMU_SetMTT(0x30000000,0x33ffffff,0x30000000,RW_NCNB);
MMU_SetMTT(0x38000000,0x3ff00000,0x38000000,RW_NCNB); //bank7 //128MB,
MMU_SetMTT(0x40000000,0x47f00000,0x40000000,RW_NCNB); //SFR //128MB,物理寄存器,noncached nonbuffered
MMU_SetMTT(0x48000000,0x5af00000,0x48000000,RW_NCNB); //SFR //48MB,
MMU_SetMTT(0x5b000000,0xfff00000,0x5b000000,RW_FAULT);//not used //如果应用层访问到该区域MMU会报错
MMU_SetTTBase(_MMUTT_STARTADDRESS);
。。。。。。
|
|