现在修改了一下DTQ2440\Src\Bootloader\Stepldr\startup.s文件,想stepldr.nb1不论那种情况,都按照冷启动来执行.
修改如下:
第一处:
- ; Are we waking up from a suspended state?
- ;
- ldr r1, =0x01 ;重启全部设置为冷启类型_chang by Rn 20100415
- ;ldr r1, =GSTATUS2
- ldr r0, [r1]
- tst r0, #0x2
- ; Yes? Then go to the resume handler code...
- bne WAKEUP_POWER_OFF
第二处:
- ; If this is a cold boot or a warm reset, clear RAM because the RAM filesystem may be
- ; bad. If this is a software reboot (triggered by the watchdog timer), don't clear RAM.
- ;
- ldr r1, =0x01 ;重启全部设置为冷启类型_chang by Rn 20100415
- ;ldr r1, =GSTATUS2 ; Determine why we're in the startup code.
- ldr r10, [r1] ;
- str r10, [r1] ; Clear GPSTATUS2.
- tst r10, #0x4 ; Watchdog (software) reboot? Skip code that clears RAM.
- bne %F40
重新生成stepldr.nb1,烧录到硬件,CE系统中的应用软件执行看门狗复位或是执行热启指令,是可以让硬件“冷启动”[至少通过LCD上的画面和等待时间表现和手动按下RESET健触发重启的效果一样],能正常进入CE系统,但是网络还是无法正常ping通,
郁闷!!!