LM原配的函数中的ResetISR()把菜农迷糊了,倒塌了~~~可气!!! 请看: void ResetISR(void) { unsigned long *pulSrc, *pulDest, *pulEnd;
// // Copy the data segment initializers from flash to SRAM. // pulSrc = __segment_begin("DATA_ID"); pulDest = __segment_begin("DATA_I"); pulEnd = __segment_end("DATA_I"); while(pulDest < pulEnd) { *pulDest++ = *pulSrc++; }
// // Zero fill the bss segment. // pulDest = __segment_begin("DATA_Z"); pulEnd = __segment_end("DATA_Z"); while(pulDest < pulEnd) { *pulDest++ = 0; }
// // Call the application's entry point. // main();//真是倒塌了!!! }
IAR本身有一套完善的初始化系统,不知IAR的例程为何要用这个ResetISR()来管闲事???不解...
菜农被ResetISR()的的调用main()晕沉了整整一天的时间,可以说几乎崩溃放弃~~~ 不甘心呀!!!
终于想出了放弃ResetISR()的妙计~~~终于将其倒塌!!! 相关链接:https://bbs.21ic.com/upfiles/img/20081/200812415349467.rar |