I am trying to perform a software reset of my STM32F2. (Reference manual available here.) The relevant page of the reference manual (page 80) gives little information. Basically, the SYSRESETREQ
bit of the Application Interrupt and Reset Control Register
must be set.
Now this page explains that to be able to modify the SYSRESETREQ
, a specific "key" needs to be written to the VECTKEY
bits.
Neither document explains where this Application Interrupt and Reset Control Register
is. What is its address, and how can I access it?
Best Answer
Why don't you use the CMSIS library? There is a specific function for that.
Moreover, This is the Code taken from CMSIS Library for System Software Reset: