|
引用 17 楼 sxweibiao 的回复:
这是初始化脚本文件:
SetJTAGSpeed(30);
//Reset(0);? ? ? ? ? ? ? ? ? ? ? ? ? ? // Reset target
Write32(0x53000000, 0x00000000);? ? ? ? // Disable the watchdog
Write32(0x4A000008, 0xFFFFFFFF);? ? ? ? // Disable all interrupt
Write32(0x4A00001C, 0x00007FFF);? ? ? ? // Disable all sub interrupt
Write32(0x4C000000, 0x00FFFFFF);? ? ? ? // Set PLL lock time
Write32(0x4C000014, 0x00000007);? ? ? ? // CLKDIVN
Write32(0x4C000008, 0x00040042);? ? ? ? // UPLLCON
Delay(1);
Write32(0x4C000004, 0x00061012);? ? ? ? // MPLLCON
Write32(0x48000000, 0x22111120);? ? ? ? // BWSCON
Write32(0x48000004, 0x00002F50);? ? ? ? // BANKCAON0
Write32(0x48000008, 0x00000700); // BANKCAON1
Write32(0x4800000C, 0x00000700); // BANKCAON2
Write32(0x48000010, 0x00000700); // BANKCAON3
Write32(0x48000014, 0x00000700); // BANKCAON4
Write32(0x48000018, 0x00007FFC); // BANKCAON5
Write32(0x4800001C, 0x00018005); // BANKCAON6
Write32(0x48000020, 0x00018005); // BANKCAON7
Write32(0x48000024, 0x008E0459); // Refresh
Write32(0x48000028, 0x00000032); // Banksize
Write32(0x4800002C, 0x00000030); // Mode register
Write32(0x48000030, 0x00000030); // Mode register
SetJTAGSpeed(4000);
我在前4K代码中也做了这样的设置,为什么就不行?
期待大犇Veabol搞定,学习学习… |
|