|
本帖最后由 ln08136207 于 2014-4-4 11:47 编辑
根据datasheet,要软件复位:
6.2.2.6 Software reset (SW)
The SYSRESETREQ field in the NVIC application interrupt and reset control register
can be set to force a software reset on the device. (See ARM's NVIC documentation for
the full description of the register fields, especially the VECTKEY field requirements.)
Setting SYSRESETREQ generates a software reset request. This reset forces a system
reset of all major components except for the debug module.
这里说用NVIC这个标志位就可以复位。
具体怎么操作呢?是不是NVIC_EnableIRQ(SCB_AIRCR_SYSRESETREQ_Pos);?
顺便问一句,书还没发吗? |
|