2018-02-27 02:02 AM
I'm using an STM32L152 with IAR embedded workbench.
This MCU has an external reset pin (NRST) which is bidirectional. The MCU outputs a low signal if its reset system detects a watchdog reset, software reset or low-power management reset. With other words: If I reboot the system using HAL_NVIC_SystemReset() the NRST pin is taken low.Question: How can I reboot the system by software without signalling it at the NRST pin? Can I inhibit the NRST output pin or is there a way to call the reset vector to reboot?
Thanks for your support.
#reset #nrst-pin2018-02-27 03:03 AM
Isn't that what
HAL_NVIC_SystemReset()
does ?
2018-02-27 03:04 AM
Yes, you can call the reset vector - IIRC, the IAP app notes do that.
But this will not give you a full hardware reset
2018-02-27 03:06 AM
How can I reboot the system by software without signalling it at the NRST pin?
Why do you want to do that?
If you explain what you're trying to achieve, people may be able to suggest ways to reach that goal ...
2018-02-27 04:13 AM
Because I have another MCU on that NRST reset line (on Arduino shield) which must not be reset.
2018-02-27 04:15 AM
What is the IAP app ?
Can I just make a call to the reset vecor at address 0 or how should that work ?And what is not reset in that case ?
2018-02-27 05:05 AM
See the Product Page -
- it has a full list of App Notes and other support materials2018-02-27 05:05 AM
So don't do that, then?
2018-02-27 06:49 AM
That does sound like a peculiar design. You pretty much created the problem you are trying to solve now.