cancel
Showing results for 
Search instead for 
Did you mean: 

Software reset issue

Jiannong Zhou
Associate II

1. HAL_NVIC_SystemReset() does not work. it always stays at __NOP(), no reset

 for(;;)                              /* wait until reset */

 {

  __NOP();

 }

2. Before I implemented ADC with DMA, the soft reset below works. But after implemented ADC with DMA. it does not work.

__set_PRIMASK(1);

SCB->AIRCR = ((uint32_t)0x05FA0000) | ((uint32_t)0x01);

Q1. Is there a delay to reset after implemented ADC with DMA?

Q2. If not reset, what is the problem to cause no reset.

Jiannong

5 REPLIES 5

Make sure the NRST is NOT driven high by some other push-pull circuit in the design.

Watch what's happening with the VDDA/VSSA supply

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
gbm
Lead III

Some microcontroller models do not implement the SystemReset - check in the Ref Man. On these microcontrollers you may trigger the reset using watchdog timer.

There might be a problem in your code with a constantly-pending interrupt (interrupt flag not reset in an ISR). This suspends the execution of any thread or lower-priority interrupt code.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

> Some microcontroller models do not implement the SystemReset - check in the Ref Man.

Can you give an example, please?

JW

gbm
Lead III

NXP LPC17xx.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice

OK, thanks.

JW