cancel
Showing results for 
Search instead for 
Did you mean: 

System reboot without NRST low

Peter Rabold
Associate II
Posted on February 27, 2018 at 11:02

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-pin
8 REPLIES 8
Andrew Neil
Evangelist
Posted on February 27, 2018 at 12:03

Isn't that what 

HAL_NVIC_SystemReset()

  does ?

Andrew Neil
Evangelist
Posted on February 27, 2018 at 12:04

Yes, you can call the reset vector - IIRC, the IAP app notes do that.

But this will not give you a full hardware reset

Andrew Neil
Evangelist
Posted on February 27, 2018 at 12:06

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 ...

http://www.catb.org/~esr/faqs/smart-questions.html#goal

 
Posted on February 27, 2018 at 12:13

Because I have another MCU on that NRST reset line (on Arduino shield) which must not be reset.

Posted on February 27, 2018 at 12:15

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 ?

Posted on February 27, 2018 at 13:05

See the Product Page - 

http://www.st.com/en/microcontrollers/stm32l152vb.html

  - it has a full list of App Notes and other support materials
Posted on February 27, 2018 at 13:05

So don't do that, then?

Posted on February 27, 2018 at 14:49

That does sound like a peculiar design. You pretty much created the problem you are trying to solve now.