Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NVIC_SystemReset () not working for STM32F4

I am working on STM32F4 board. My IDE is IAR Embedded Work bench. I am trying to do a software reset from code. For that i used API ' NVIC_SystemReset(); ' defined in core_cm4.h header. But the system reset is not happening.

I tried the same thing in STM32F3, same IDE . I used the function NVIC_SystemReset(); from core_sc300.h header. Using that software reset is happening. I found the definition of functions in both file are same and both controllers are Cortex M4 only.What is the problem with STM32F4 board.? Can any one help me in solving this or can any one suggest an alternative way for system reset in STM32F4.

Please help. Thanks in advance

like image 933
yemans Avatar asked Dec 21 '25 02:12

yemans


1 Answers

In the HAL You can use

HAL_NVIC_SystemReset();
like image 196
Vladimir Avatar answered Dec 23 '25 19:12

Vladimir



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!