The OP
Published on 2018-1-18 11:34
Only look at the author
This post is from stm32/stm8
Latest reply
(1) I have never used these two functions in the library and I don't know if they can achieve the effect of software reset, but in fact, you can directly read the STM32 reference manual to know how to set the registers to achieve the effect of software reset. Of course, you can also read the library manual. (2) There are two ways to jump from App to Bootloader without generating a low level on the RST pin. 1. Through function call, directly force the address at the beginning of the Bootloader to be converted into a function pointer for calling (this method requires resetting the stack pointer, but it is not a big problem if it is not set); 2. Through inline assembly, use C inline assembly code to directly set the content of the PC pointer to the starting address of the Bootloader. In fact, the above two methods are essentially the same. Both methods achieve the purpose by changing the content of the PC pointer, but one involves the change of the stack pointer and the other does not.
Details
Published on 2018-1-18 22:37
| ||
|
||
2
Published on 2018-1-18 14:34
Only look at the author
This post is from stm32/stm8
| ||
Personal signature我在想
我知道什么 |
||
|
This post is from stm32/stm8
| ||
|
||
|
5
Published on 2018-1-18 22:37
Only look at the author
This post is from stm32/stm8
| ||
|
||
|
论坛测评队员
EEWorld Datasheet Technical Support
EEWorld
subscription
account
EEWorld
service
account
Automotive
development
circle
About Us Customer Service Contact Information Datasheet Sitemap LatestNews
Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190