我以前遇到过这个情况 flash没有坏的 参考 这个我是在IAR里面设置的 你改到JTAG中吧
__message "Init Memory
"; __writeMemory32(0x00000000, 0x01D30000, "Memory"); //close the dog __writeMemory32(0x00000fff, 0x01D8000c, "Memory"); //设置PLL lock time __writeMemory32(0x00048032, 0x01D80000, "Memory"); //10M IN 40M OUT __writeMemory32(0x00007ff8, 0x01D80004, "Memory"); //设定内部器件的时钟
__writeMemory32(0x11111110, 0x01c80000, "Memory"); // __writeMemory32(0x00000600, 0x01c80004, "Memory"); __writeMemory32(0x00007ffc, 0x01c80008, "Memory"); __writeMemory32(0x000086fc, 0x01c8000c, "Memory"); __writeMemory32(0x00007ffc, 0x01c80010, "Memory"); __writeMemory32(0x00007ffc, 0x01c80014, "Memory"); __writeMemory32(0x00007ffc, 0x01c80018, "Memory"); __writeMemory32(0x00018000, 0x01c8001c, "Memory"); __writeMemory32(0x00018000, 0x01c80020, "Memory"); __writeMemory32(0x00A60591, 0x01c80024, "Memory"); __writeMemory32(0x00000010, 0x01C80028, "Memory"); //__writeMemory32(0x00000020, 0x01C8002C, "Memory"); //__writeMemory32(0x00000020, 0x01C80030, "Memory");
__message "Init Completed
"; |